/// <summary> /// launch instance of durak form and close the main menu form /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnPlay_Click(object sender, EventArgs e) { // hidding frmMainMenu this.Hide(); // new frmGame instance frmGame game = new frmGame(); // show the frmGame form game.ShowDialog(); // close frmMainMenu this.Close(); }
/// <summary> /// launch instance of durak form and close the main menu form /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnPlay_Click(object sender, EventArgs e) { // hidding frmMainMenu this.Hide(); //new frmGame instance frmGame game = new frmGame(); //TESTING STATS PROMPT //StatsPrompt prompt = new StatsPrompt(); game.ShowDialog(); // show the frmGame form // game.ShowDialog(); // close frmMainMenu this.Close(); }