예제 #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            //if botton is pressed, go back to PlayScreen
            Form f = this.FindForm();

            f.Controls.Remove(this);
            PlaySceen ps = new PlaySceen();

            f.Controls.Add(ps);

            ps.Focus();
        }
예제 #2
0
        private void playButton_Click(object sender, EventArgs e)
        {
            //assign the number selected to a variable
            colour = Convert.ToInt16(numericUpDown1.Value);

            //go to PlayScreen
            Form f = this.FindForm();

            f.Controls.Remove(this);
            PlaySceen ps = new PlaySceen();

            f.Controls.Add(ps);

            ps.Focus();
        }