private void SettingsButton_OnClick(object sender, RoutedEventArgs e) { var settingsViewModel = SettingsWindow.Show(this, _settingsWindowViewModel); if (settingsViewModel != null) { AccessTokenTextBox.Text = string.Empty; _settingsWindowViewModel = settingsViewModel; EnableControls(); } }
private void SettingsButton_OnClick(object sender, RoutedEventArgs e) { _clientSettings = SettingsWindow.Show(this, _clientSettings) ?? _clientSettings; }