Example #1
0
        void ShowSettings()
        {
            var viewModel = new EditConfigViewModel(Config);

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