private void updateTestType()
 {
     if (this.appointmentPage.SelectedLabTest.TestType.Code != this.SelectedTestType.Code)
     {
         LabTestDAL.RemoveLabTest(this.appointmentPage.SelectedLabTest.AppointmentID, this.appointmentPage.SelectedLabTest.TestType.Code);
         LabTestDAL.InsertLabTest(this.buildLabTest());
     }
 }
        private void handleSave()
        {
            if (this.IsEditingTest)
            {
                this.updateTestType();
            }
            else if (this.IsManagingTest)
            {
                this.handleManageSave();
            }
            else
            {
                LabTestDAL.InsertLabTest(this.buildLabTest());
            }

            this.Close();
        }