private void Back_Button(object sender, RoutedEventArgs e)
        {
            Selection_Window selectionWindow = new Selection_Window();

            selectionWindow.Show();
            this.Close();
        }
Exemple #2
0
 private void selection_btn_click(object sender, RoutedEventArgs e) //Checks username and password
 {
     if (username.Text == GenericUser && password.Text == GenericPass)
     {
         Selection_Window selectionWindow = new Selection_Window(); //If correct moves to slection window
         selectionWindow.Show();
         this.Close();
     }
     else //If wrong prompts user to try again
     {
         username.Clear();
         password.Clear();
         introText.Content    = "Wrong Username or Password, please try again";
         introText.Foreground = Brushes.Red;
     }
 }