protected void resetCardPictureBox(frmJeu frm) { cardImageIndex = 0; for (int i = 1; i < 6; i++) { PictureBox card = (PictureBox)frm.Controls ["picJ" + i]; card.Image = Image.FromFile(Directory.GetCurrentDirectory() + "/images/back.gif"); card = (PictureBox)frm.Controls ["picC" + i]; card.Image = Image.FromFile(Directory.GetCurrentDirectory() + "/images/back.gif"); } frm.lblCptJ.Text = "0"; }
public offlineGame(frmJeu online) : base(frm) { frm = online; DialogResult loadGameSave = MessageBox.Show("Do you want to load save?", "load game", MessageBoxButtons.YesNo, MessageBoxIcon.Information); if (loadGameSave == DialogResult.Yes) { loadGame(); } playTurnForCroupier(); inGamePlayer.listOfPlayer [1].getNewTotalPointFromHandOfCard(); frm.lblCptC.Text = inGamePlayer.listOfPlayer [1].totalPointInHand.ToString(); }
private void button3_Click(object sender, EventArgs e) { frmJeu game = new frmJeu(false); game.Show(); }
private void button2_Click(object sender, EventArgs e) { frmJeu gameOnline = new frmJeu(true); gameOnline.Show(); }
public onlineGame(frmJeu online) : base(frm) { checkForPartner(); frm = online; }
public game(frmJeu frm) { }