Пример #1
0
        private void authenticationButton_Click(object sender, EventArgs e)
        {
            this.Hide();
            AuthenticationForm authForm = new AuthenticationForm();

            authForm.ShowDialog();
            this.Show();
        }
Пример #2
0
 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);
 }