Example #1
0
        private void testForm_click(object sender, System.EventArgs e)
        {
            System.Windows.Forms.Button pressedButton = (System.Windows.Forms.Button)sender;
            Form testSelectForm = (Form)pressedButton.Parent;

            testSelectForm.Close();

            TestModeScreen testWindow = new TestModeScreen(pressedButton.Name);

            testWindow.Show();
        }
        private void testForm_click(object sender, System.EventArgs e)
        {
            System.Windows.Forms.Button pressedButton = (System.Windows.Forms.Button)sender;
            Form testSelectForm = (Form) pressedButton.Parent;
            testSelectForm.Close();

            TestModeScreen testWindow = new TestModeScreen(pressedButton.Name);
            testWindow.Show();
        }