示例#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();
            }
        }
示例#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();
     }
 }