public GeneralViewModel() { GeneralSettings = new GeneralSettings(Context.Instance.Settings.GeneralSettings ?? GeneralSettings.CreateDefaults()); BrowserFolders = commands.AddCommand(ExecuteOpenFolderDialog, CanExecuteOpenFolderDialog); BrowserFoldersSolutions = commands.AddCommand(ExecuteOpenFolderDialogSolutions, CanExecuteOpenFolderDialog); }
public Settings() { SettingsVersion = SETTINGS_VERSION_NUMBER; GeneralSettings = GeneralSettings.CreateDefaults(); ILSConfigurationSettings = ILSConfigurationSettings.CreateDefaults(); }
public void ExecuteRestoreDefaultValues() { GeneralSettings = GeneralSettings.CreateDefaults(); NotifyPropertyChanged(nameof(GeneralSettings)); }