예제 #1
0
 private void loginMenuItem_Click(object sender, EventArgs e)
 {
     if (loginForm != null)
     {
         showError("Login Form is already open");
     }
     else
     {
         if (currentPlayer == null)
         {
             loginForm = new LoginForm(this);
             loginForm.Show();
         }
         else
         {
             showError("Error: Please logout first");
         }
     }
 }
예제 #2
0
 private void loginMenuItem_Click(object sender, EventArgs e)
 {
     if (loginForm != null)
         showError("Login Form is already open");
     else
     {
         if (currentPlayer == null)
         {
             loginForm = new LoginForm(this);
             loginForm.Show();
         }
         else
             showError("Error: Please logout first");
     }
 }
예제 #3
0
 private void Logout()
 {
     controller.Logout();
     loginForm.Show();
     Hide();
 }
예제 #4
0
        private void LoginMenuItem_Click(object sender, EventArgs e)
        {
            LoginForm loginForm = new LoginForm();

            loginForm.Show();
        }