private void btnSetPlane1_Click(object sender, EventArgs e) { player1 = new XepMayBay(this); player1.pnlAirport.BackgroundImage = BanMayBay.Properties.Resources.pubgmap_erangel_500x500_new; player1.grpBoxPlayer.Text = "Player 1"; player1.Show(); btnSetPlane2.Enabled = false; }
private void btnSetPlane2_Click(object sender, EventArgs e) { player2 = new XepMayBay(this); player2.pnlAirport.BackgroundImage = BanMayBay.Properties.Resources.miramar; player2.grpBoxPlayer.Text = "Player 2"; player2.Show(); btnSetPlane1.Enabled = false; }
public SanDau(XepMayBay XMBform1, XepMayBay XMBform2) { playerTurn = turn.player1; // player1 chơi trước player1 = XMBform2; // đổi 2 player player2 = XMBform1; // đổi 2 player InitializeComponent(); count = countDown; lbTimer.Text = count.ToString(); arrow.Image = BanMayBay.Properties.Resources.leftArrow; }