//Method to take you back to the selection window private void Button_Click(object sender, RoutedEventArgs e) { SelectionWindow selectionWindow = new SelectionWindow(); selectionWindow.Show(); this.Close(); }
//Method to go to the selection menu private void GoToSelectionWindow(object sender, RoutedEventArgs e) { // Makes sure username and password is correct if (username_box.Text == "home" && password_box.Text.ToString() == "1234") { SelectionWindow selectionWindow = new SelectionWindow(); selectionWindow.Show(); this.Close(); } else { Console.WriteLine("Wrong username or password. Please try again."); } }