/
githubmirror
/
PowerShell
Обзор
Документация
Войти
/
githubmirror
/
PowerShell
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/Microsoft.Management.UI.Internal/ShowCommand/Controls/AllModulesControl.xaml.cs
50 строк
1 KB
Steve Lee
Update copyright notice to latest guidance (#12190)
24 мар 2020, 21:08
Не верифицирован
24 мар 2020, 21:08
b7cb335
Код
Авторство
О чём код?
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using System.ComponentModel; using System.Windows; using System.Windows.Controls; namespace Microsoft.PowerShell.Commands.ShowCommandInternal { /// <summary> /// Interaction logic for AllModulesControl.xaml. /// </summary> public partial class AllModulesControl : UserControl { #region Construction and Destructor /// <summary> /// Initializes a new instance of the AllModulesControl class. /// </summary> public AllModulesControl() { InitializeComponent(); this.Loaded += (obj, args) => { this.ModulesCombo.Focus(); }; } #endregion /// <summary> /// Gets current control of the ShowModuleControl. /// </summary> 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(); } } }