private void PART_Mnu_New_Click(object sender, RoutedEventArgs e) { NewAuthWindow winNewAuth = new NewAuthWindow(); winNewAuth.Owner = App.MainAppWindow; winNewAuth.Topmost = App.MainAppWindow.Topmost; winNewAuth.ShowDialog(); if (winNewAuth.DialogResult == true) { Settings.SettingsDatabase.SelectedAuthenticatorIndex = Settings.SettingsDatabase.Authenticators.Count - 1; this.LoadAuthenticator(Settings.SettingsDatabase.SelectedAuthenticatorIndex); } }