Beispiel #1
0
        private void btn_open_current_Click(object sender, EventArgs e)
        {
            var testData = TestInAction[lst_current_Test.SelectedIndex];
            //Get the test that the user wants to edit
            var TestForm = new FormTest(testData);

            TestForm.Show();
            //Open it in a new form
        }
Beispiel #2
0
        private void btn_newEmptyTest_Click(object sender, EventArgs e)
        /// Create an empty new test and open a form to edit it
        {
            var testData = new CurrentTest();

            // create a new empty test
            TestInAction.Add(testData);
            //add this new test to the list of test currently happening
            var TestForm = new FormTest(testData);

            //create the form to edit the new test
            updateList();
            //update the list of peope doing a test
            TestForm.Show();
            //Show the form
        }