//Saves changes to new patient or existing patient private void Save_Click(object sender, EventArgs e) { if (Patient_Database.SavePatient(Dropdown_1, Input_1, Date_1, Date_2, Dropdown_2, Input_2, Input_3, Input_4, Input_5, Input_6, Input_7, Input_8, Input_9, Input_10, Input_11, Dropdown_3, Current_Patient, GP_Letter) == true) { AddOrEditFields(false); Add_Dropdown_1.Focus(); } }
//Saves changes to new patient or existing practice private void Save_Click(object sender, EventArgs e) { bool saveSuccess = Practice_Database.SavePractice(Dropdown_1, Input_1, Input_2, Input_3, Input_4, Input_5, Input_6, Input_7, Input_8); if (saveSuccess == true) { AddOrEditFields(false); //Changes fields to read only. User needs to select //add new patient or edit existing if they want to continue Add_Dropdown_1.Focus(); } }