상속: ViewModelBase
예제 #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();
     }
 }