예제 #1
0
        private void btnPlaySameUser_Click(object sender, EventArgs e)
        {
            frmRussianRoulette Same_User = new frmRussianRoulette();

            this.Close();
            Same_User.Show();
        }
예제 #2
0
 private void btnPlay_Click(object sender, EventArgs e)
 {
     if (txtPlayerName.Text != "")/* validating empty textbox */
     {
         frmRussianRoulette f2 = new frmRussianRoulette();
         //f2.Show();
         Login_Player_Name = txtPlayerName.Text;
         txtPlayerName.Clear(); txtPlayerName.Focus();
         f2.Show();
     }
     else
     {
         MessageBox.Show("Enter Player Name : ");
         txtPlayerName.Focus();
     }
 }