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