//Closes form and returns to Add_Edit_Class_Times private void Cancel_Click(object sender, EventArgs e) { Global.addNewTimeOpen = false; this.Hide(); Add_Edit_Class_Times classes = new Add_Edit_Class_Times(); classes.ShowDialog(); classes.Focus(); }
//Creates new Class Time and returns to Add_Edit_Class_Times private void Create_Time_Click(object sender, EventArgs e) { bool saveSuccess = Class_Database.SaveTime(Dropdown_1, Dropdown_2, Global.newTimeDay, Dropdown_3); if (saveSuccess == true) { Global.addNewTimeOpen = false; Global.editingExistingClassTime = false; this.Hide(); Add_Edit_Class_Times classes = new Add_Edit_Class_Times(); classes.ShowDialog(); classes.Focus(); } }