/
githubmirror
/
PowerShell
Обзор
Документация
Войти
/
githubmirror
/
PowerShell
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/Microsoft.Management.UI.Internal/HelpWindow/SettingsDialog.xaml.cs
58 строк
3 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. namespace Microsoft.Management.UI { using System.Windows; using Microsoft.Management.UI.Internal; /// <summary> /// Dialog with settings for the help dialog. /// </summary> public partial class SettingsDialog : Window { /// <summary> /// Initializes a new instance of the SettingsDialog class. /// </summary> public SettingsDialog() { InitializeComponent(); this.Description.IsChecked = HelpWindowSettings.Default.HelpDescriptionDisplayed; this.Examples.IsChecked = HelpWindowSettings.Default.HelpExamplesDisplayed; this.Inputs.IsChecked = HelpWindowSettings.Default.HelpInputsDisplayed; this.Notes.IsChecked = HelpWindowSettings.Default.HelpNotesDisplayed; this.Outputs.IsChecked = HelpWindowSettings.Default.HelpOutputsDisplayed; this.Parameters.IsChecked = HelpWindowSettings.Default.HelpParametersDisplayed; this.RelatedLinks.IsChecked = HelpWindowSettings.Default.HelpRelatedLinksDisplayed; this.Remarks.IsChecked = HelpWindowSettings.Default.HelpRemarksDisplayed; this.Synopsys.IsChecked = HelpWindowSettings.Default.HelpSynopsysDisplayed; this.Syntax.IsChecked = HelpWindowSettings.Default.HelpSyntaxDisplayed; this.CaseSensitive.IsChecked = HelpWindowSettings.Default.HelpSearchMatchCase; this.WholeWord.IsChecked = HelpWindowSettings.Default.HelpSearchWholeWord; } /// <summary> /// Called when the OK button has been clicked. /// </summary> /// <param name="sender">Event sender.</param> /// <param name="e">Event arguments.</param> private void OK_Click(object sender, RoutedEventArgs e) { HelpWindowSettings.Default.HelpDescriptionDisplayed = this.Description.IsChecked == true; HelpWindowSettings.Default.HelpExamplesDisplayed = this.Examples.IsChecked == true; HelpWindowSettings.Default.HelpInputsDisplayed = this.Inputs.IsChecked == true; HelpWindowSettings.Default.HelpOutputsDisplayed = this.Outputs.IsChecked == true; HelpWindowSettings.Default.HelpNotesDisplayed = this.Notes.IsChecked == true; HelpWindowSettings.Default.HelpParametersDisplayed = this.Parameters.IsChecked == true; HelpWindowSettings.Default.HelpRelatedLinksDisplayed = this.RelatedLinks.IsChecked == true; HelpWindowSettings.Default.HelpRemarksDisplayed = this.Remarks.IsChecked == true; HelpWindowSettings.Default.HelpSynopsysDisplayed = this.Synopsys.IsChecked == true; HelpWindowSettings.Default.HelpSyntaxDisplayed = this.Syntax.IsChecked == true; HelpWindowSettings.Default.HelpSearchMatchCase = this.CaseSensitive.IsChecked == true; HelpWindowSettings.Default.HelpSearchWholeWord = this.WholeWord.IsChecked == true; HelpWindowSettings.Default.Save(); this.DialogResult = true; this.Close(); } } }