void ShowSettings() { var viewModel = new EditConfigViewModel(Config); if (SettingsDialogService.ShowDialog(MessageButton.OKCancel, "Settings", viewModel) == MessageResult.OK) { viewModel.UpdateConfig(); ConfigSerializer.SaveConfig(Config); Initialize(); UpdateAppearance(); } }
void ShowSettings() { var viewModel = new EditConfigViewModel(Config); if (SettingsDialogService.ShowDialog(MessageButton.OKCancel, "Settings", viewModel) == MessageResult.OK) { viewModel.UpdateConfig(); ConfigSerializer.SaveConfig(Config); Initialize(); UpdateDefaultTheme(); } }