// This button will load the login window for a Two Player game
 private void Button_playerTwoGame_Click(object sender, RoutedEventArgs e)
 {
     // Create and display two player login form
    Login2 loginForm = new Login2(this);
     loginForm.Visibility = System.Windows.Visibility.Visible;
     // Hide welcome window
     this.Visibility = System.Windows.Visibility.Hidden;
 }
Example #2
0
        // This button will load the login window for a Two Player game
        private void Button_playerTwoGame_Click(object sender, RoutedEventArgs e)
        {
            // Create and display two player login form
            Login2 loginForm = new Login2(this);

            loginForm.Visibility = System.Windows.Visibility.Visible;
            // Hide welcome window
            this.Visibility = System.Windows.Visibility.Hidden;
        }