private void button4_Click(object sender, EventArgs e)
        {
            FrmTitle frmTitle = new FrmTitle(userName);

            frmTitle.Show();
            Hide();
        }
        /// <summary>
        /// Handles hotkeys
        /// </summary>
        /// <param name="msg"></param>
        /// <param name="keyData"></param>
        /// <returns></returns>
        protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
        {
            switch (keyData)
            {
            case (Keys.Shift | Keys.M):
                mulliganButtonClick();
                return(true);

            case (Keys.Shift | Keys.D):
                redealButtonClick();
                return(true);

            case (Keys.Shift | Keys.R):
                button2.Enabled = false;
                button3.Enabled = false;
                dealer.showCards();
                getWin();
                return(true);

            case (Keys.Shift | Keys.Q):
                FrmTitle frmTitle = new FrmTitle(userName);
                frmTitle.Show();
                Hide();
                return(true);

            default:
                return(base.ProcessCmdKey(ref msg, keyData));
            }
        }
Ejemplo n.º 3
0
 private void buttonReturn_Click(object sender, EventArgs e)
 {
     returnTitleForm.Show();
     Hide();
 }