private void OpenSettingsAction() { // Save current language code if (string.IsNullOrEmpty(_cultureCode)) { _cultureCode = SettingsManager.Current.Localization_CultureCode; } // Init settings view if (_settingsView == null) { _settingsView = new SettingsView(SelectedApplication.Name); contentControlSettings.Content = _settingsView; } else // Change view { _settingsView.ChangeSettingsView(SelectedApplication.Name); } // Show the view (this will hide other content) ShowSettingsView = true; // Bring window to front ShowWindowAction(); }