private void btnPlaySameUser_Click(object sender, EventArgs e) { frmRussianRoulette Same_User = new frmRussianRoulette(); this.Close(); Same_User.Show(); }
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(); } }