示例#1
0
 private void DisableCustomFolder_CheckBox_Click(object sender, RoutedEventArgs e)
 {
     if (DisableCustomFolder_CheckBox.IsChecked == true)
     {
         Reg.Set(DisableCustomFolderKey, DisableCustomFolderValue, 1, RegistryValueKind.DWord);
     }
     else
     {
         Reg.Delete(DisableCustomFolderKey, DisableCustomFolderValue);
     }
 }
示例#2
0
 private void ExcludeMRT_CheckBox_Click(object sender, RoutedEventArgs e)
 {
     if (ExcludeMRT_CheckBox.IsChecked == true)
     {
         Reg.Set(ExcludeMRTKey, ExcludeMRTValue, 1, RegistryValueKind.DWord);
     }
     else
     {
         Reg.Delete(ExcludeMRTKey, ExcludeMRTValue);
     }
 }
示例#3
0
 private void DisableCortana_CheckBox_Click(object sender, RoutedEventArgs e)
 {
     if (DisableCortana_CheckBox.IsChecked == true)
     {
         Reg.Set(DisableCortanaKey, AllowCortanaValue, 0, RegistryValueKind.DWord);
     }
     else
     {
         Reg.Delete(DisableCortanaKey, AllowCortanaValue);
     }
 }