/// <summary> /// Handles click on OK button /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private async void buttonOk_Click(object sender, RoutedEventArgs e) { bool issueReporterUpdated = this.connectionCtrl.UpdateConfigFromSelections(Configuration); this.appSettingsCtrl.UpdateConfigFromSelections(Configuration); IReadOnlyDictionary <string, object> diff = ConfigurationModel.Diff(this.configSnapshot, Configuration); if (diff.Count > 0) { MainWin.HandleConfigurationChanged(diff); } if (issueReporterUpdated) { MainWin.UpdateMainWindowConnectionFields(); } if (await HandleReleaseSwitch().ConfigureAwait(false)) { return; } Dispatcher.Invoke(() => MainWin.TransitionToSelectActionMode()); }
/// <summary> /// Handles click on OK button /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void buttonOk_Click(object sender, RoutedEventArgs e) { this.connectionCtrl.UpdateConfigFromSelections(Configuration); this.appSettingsCtrl.UpdateConfigFromSelections(Configuration); IReadOnlyDictionary <string, object> diff = ConfigurationModel.Diff(this.configSnapshot, Configuration); if (diff.Count > 0) { MainWin.HandleConfigurationChanged(diff); } }