/// <summary> /// Navigate back /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnBack_Click(object sender, EventArgs e) { var testMenu = new TestMenu(); testMenu.Show(); Hide(); }
/// <summary> /// Either create a new unit or load one which already exists. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void button1_Click(object sender, EventArgs e) { var test = new TestCreate(); var testMenu = new TestMenu(); UnitCode = txtUName.Text; if (txtUName.Text == null) MessageBox.Show(@"Please enter a unit code"); else if (IsAdd) test.Show(); else if (!IsAdd) { _examDetails.LoadFromFile("Exams.xml", _examDetailsList); testMenu.Show(); } }