/* opens the user's main menu */ private void OpenMainMenu(Account acct) { MainMenu menu = new MainMenu(acct, atm, this); this.Hide(); AcctNumBox.Clear(); PinBox.Clear(); menu.Show(); Console.WriteLine("Showing Main Menu"); }
private void TabControl_SelectionChanged(object sender, SelectionChangedEventArgs e) { if (((FrameworkElement)e.Source).GetType() == typeof(System.Windows.Controls.TabControl)) { if (PINTabItem.IsSelected) { PinBox.Focus(); Properties.Settings.Default.LastLoginMethod = 1; } else { Properties.Settings.Default.LastLoginMethod = 0; } } }