private void runProgram(object sender, EventArgs e)
        {
            if (animationRadioButton.Checked)
            {
                // Tasks 5.1 and 5.2

                AnimationForm form = new AnimationForm();
                form.Show();
            }
            else if (flyMeRadioButton.Checked)
            {
                // Tasks 5.3, 5.4 and 5.5
                FlyMeForm form = new FlyMeForm();
                form.Show();
            }
            else if (graphicsRadioButton.Checked)
            {
                // Tasks 6.1 to 6.5
                GraphicsForm2 form = new GraphicsForm2();
                form.Show();
            }
            else if (ballRadioButton.Checked)
            {
                // Task 6.6
                Bouncing_ball form = new Bouncing_ball();
                form.Show();
            }
        }
Exemple #2
0
        private void runProgram(object sender, EventArgs e)
        {
            if (animationRadioButton.Checked)
            {
                // Tasks 5.1 and 5.2

                AnimationForm form = new AnimationForm();
                form.Show();
            }
            else if (flyMeRadioButton.Checked)
            {
                // Tasks 5.3, 5.4 and 5.5
                FlyMeForm form = new FlyMeForm();
                form.Show();
            }
            else if (unit6RadioButton.Checked)
            {
                // Tasks 6.1 to 6.6
                GraphicsForm form = new GraphicsForm();
                form.Show();
            }
            else if (bouncingBallRadio.Checked)
            {
                Bouncing_ball bouncing_Ball = new Bouncing_ball();
                bouncing_Ball.Show();
            }
            else if (unit7RadioButton.Checked)
            {
                SketchForm sketchForm = new SketchForm();
                sketchForm.Show();
            }
        }