//Runs when the how to play button is clicked private void cmdHowToPlay_Click(object sender, EventArgs e) { //Create a new instance of the form 'frmHowToPlay' frmHowToPlay frmHowToPlay = new frmHowToPlay(); //Show the newly created form frmHowToPlay.ShowDialog(this); }
//Runs when menu strip how to play button is pressed private void howToPlayToolStripMenuItem_Click(object sender, EventArgs e) { //Create a new instance of the form 'frmAbout' frmHowToPlay frmHowToPlay = new frmHowToPlay(); //Show the newly created form frmHowToPlay.ShowDialog(this); }
//Runs when menu strip about button is pressed private void howToPlayToolStripMenuItem_Click(object sender, EventArgs e) { //Pause the game pauseGame(); //Create a new instance of the form 'frmAbout' frmHowToPlay frmHowToPlay = new frmHowToPlay(); //Show the newly created form frmHowToPlay.ShowDialog(this); }