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"); } } }
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"); } }
private void Logout() { controller.Logout(); loginForm.Show(); Hide(); }
private void LoginMenuItem_Click(object sender, EventArgs e) { LoginForm loginForm = new LoginForm(); loginForm.Show(); }