private void authenticationButton_Click(object sender, EventArgs e) { this.Hide(); AuthenticationForm authForm = new AuthenticationForm(); authForm.ShowDialog(); this.Show(); }
public MainForm() { InitializeComponent(); btnLogout.Enabled = false; btnSendMessage.Enabled = false; btnJoinGame.Enabled = false; btnCreateGame.Enabled = false; btnOfferGame.Enabled = false; btnCancelGame.Enabled = false; gameForm = new GameForm(this); authForm = new AuthenticationForm(this); }