//Populates practices to textboxes private void Delete_Existing_Dropdown_SelectionChangeCommitted(object sender, EventArgs e) { Practice_Database.PracticeSelected(Delete_Existing_Dropdown, Input_1, Input_2, Input_3, Input_4, Input_5, Input_6, Input_7, Input_8); //Allows user to delete record Delete.Enabled = true; }
//When a user clicks a selection from the dropdown box all the values of the selected practice will //populate the fields. The program will also know that this is an edit session and not a new Practice private void Dropdown_1_SelectionChangeCommitted(object sender, EventArgs e) { Practice_Database.PracticeSelected(Dropdown_1, Input_1, Input_2, Input_3, Input_4, Input_5, Input_6, Input_7, Input_8); AddOrEditFields(true); //Allows fields to be written in //Allows user to save record Save.Enabled = true; }