//-----------------------------------------------------------------------
//
// Copyright © Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------
namespace Microsoft.PowerShell.Commands.ShowCommandInternal
{
using System.Windows.Controls;
///
/// Interaction logic for AllModulesControl.xaml
///
public partial class AllModulesControl : UserControl
{
#region Construction and Destructor
///
/// Initializes a new instance of the AllModulesControl class
///
public AllModulesControl()
{
InitializeComponent();
}
#endregion
///
/// Gets current control of the ShowModuleControl
///
internal ShowModuleControl CurrentShowModuleControl
{
get { return this.ShowModuleControl; }
}
private void RefreshButton_Click(object sender, System.Windows.RoutedEventArgs e)
{
AllModulesViewModel viewModel = this.DataContext as AllModulesViewModel;
if (viewModel == null)
{
return;
}
viewModel.OnRefresh();
}
}
}