//Deletes patient private void Delete_Click(object sender, EventArgs e) { Patient_Database.DeletePatient(Delete_Existing_Dropdown, Input_1); if (Delete_Existing_Dropdown.DataSource == null) { Input_1.Clear(); Input_2.Clear(); Input_3.Clear(); Input_4.Clear(); Input_5.Clear(); Input_6.Clear(); Input_7.Clear(); Input_8.Clear(); Input_9.Clear(); Input_10.Clear(); Input_11.Clear(); Input_12.Clear(); Input_13.Clear(); Input_14.Clear(); Input_15.Clear(); Current_Patient.Checked = false; GP_Letter.Checked = false; } }
//Changes the way that the dropdown is sorted private void Sort_Lists_Click(object sender, EventArgs e) { if (Global.sortDropdown == Global.ID) { Global.sortDropdown = Global.NAME; } else if (Global.sortDropdown == Global.NAME) { Global.sortDropdown = Global.ID; } setSortedButtonText(); Delete_Existing_Dropdown.DataSource = null; Input_1.Clear(); Input_2.Clear(); Input_3.Clear(); Input_4.Clear(); Input_5.Clear(); Input_6.Clear(); Input_7.Clear(); Input_8.Clear(); Input_9.Clear(); Input_10.Clear(); Input_11.Clear(); Input_12.Clear(); Input_13.Clear(); Input_14.Clear(); Input_15.Clear(); Current_Patient.Checked = false; GP_Letter.Checked = false; }