コード例 #1
0
        //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);
        }
コード例 #2
0
        //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);
        }
コード例 #3
0
        //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);
        }
コード例 #4
0
        //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);
        }