Ejemplo n.º 1
0
 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";
 }
Ejemplo n.º 2
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();
        }
Ejemplo n.º 3
0
        private void button3_Click(object sender, EventArgs e)
        {
            frmJeu game = new frmJeu(false);

            game.Show();
        }
Ejemplo n.º 4
0
        private void button2_Click(object sender, EventArgs e)
        {
            frmJeu gameOnline = new frmJeu(true);

            gameOnline.Show();
        }
Ejemplo n.º 5
0
 public onlineGame(frmJeu online) : base(frm)
 {
     checkForPartner();
     frm = online;
 }
Ejemplo n.º 6
0
 public game(frmJeu frm)
 {
 }