private void btnNewGame_Click(object sender, EventArgs e) { FrmGame Game = new FrmGame(); this.Hide(); Game.ShowDialog(); }
private void newGameToolStripMenuItem_Click(object sender, EventArgs e) { this.Dispose(); FrmGame Game = new FrmGame(); this.Hide(); Game.ShowDialog(); //FrmHome Home = new FrmHome(); //this.Hide(); //Home.ShowDialog(); //player.Cards.Clear(); //computer.Cards.Clear(); //deck = new Deck(); //player = new Hand(hand, deck); //computer = new Hand(hand, deck); //lblPlayerScore.Text = " "; //lblComputerScore.Text = " "; //lblWinAmount.Text = " "; //lblTieAmount.Text = " "; //lblLossesAmount.Text = " "; //lblPlayerScore.BackColor = Color.Transparent; //computerSum = 0; //playerSum = 0; //win = 0; //loss = 0; //draw = 0; //x = 40; //y = 40; //hand = 2; //computerHand = 2; //btnDeal.Enabled = true; //btnHit.Enabled = false; //btnStay.Enabled = false; //ClearCards(); }