Esempio n. 1
0
 private void SetUpCommands()
 {
     ResetASettingCommand            = new ResetASettingCommand(this);
     SaveSettingsToRegistryCommand   = new SaveSettingsToRegistryCommand(this);
     SaveProfileCommand              = new SaveProfileCommand(this);
     LoadProfileCommand              = new LoadProfileCommand(this);
     OpenImagesDirectoryCommand      = new OpenImagesDirectoryCommand(this);
     ToggleSystemRegistryLockCommand = new ToggleSystemRegistryLockCommand(this);
     ResetASettingCommand.OnCanExecuteChanged();
 }
Esempio n. 2
0
 public void ResetASetting(string keyName)
 {
     if (keyName == "InterleavePattern")
     {
         _viewModelRegistryKeys["InterleavePattern0"].ResetToDefaultValue();
         _viewModelRegistryKeys["InterleavePattern1"].ResetToDefaultValue();
     }
     else
     {
         _viewModelRegistryKeys[keyName].ResetToDefaultValue();
     }
     OnPropertyChanged(keyName);
     ResetASettingCommand.OnCanExecuteChanged();
 }