private void save_Btn_Click(object sender, EventArgs e) { // Check if a Job Type name is not empty if (name_Txt.Text == "") { MessageBox.Show("Job Type Name can not be empty. Please input!"); name_Txt.Focus(); return; } jobTypeToEdit.typeName = name_Txt.Text; jobTypeToEdit.background = background_Lbl.Text; if (DatabaseControl.updateJobType(jobTypeToEdit)) { MessageBox.Show("Job type data has been updated successfuly!"); UIControl.newBookingForm.updateJobTypes(); UIControl.editBookingForm.updateJobTypes(); UIControl.bookingGridForm.updateColumnColor(); UIControl.jobTypesGridForm.showJobTypes(); UIControl.showForm(UIControl.jobTypesGridForm); } }