/// <summary> /// Initializes a new instance of the <see cref="ViewLabTestForm" /> class. Use to view tests for a single appointment /// </summary> /// <param name="appt">The appointment.</param> public ViewLabTestForm(Appointment appt) { this.InitializeComponent(); this.appt = appt; this.patientId = 0; this.labTestOrderedController = new LabTestOrderedController(); this.labTestResultController = new LabTestResultController(); this.populateDataView(); }
/// <summary> /// Initializes a new instance of the <see cref="ViewLabTestForm" /> class. Use to view tests for a single patient /// </summary> /// <param name="patientId">The patient identifier.</param> public ViewLabTestForm(int patientId) { this.InitializeComponent(); this.appt = null; this.patientId = patientId; this.labTestOrderedController = new LabTestOrderedController(); this.labTestResultController = new LabTestResultController(); this.populateDataView(); }
/// <summary> /// Initializes a new instance of the <see cref="OrderLabTestForm" /> class. /// </summary> /// <param name="apt">The appointment to order a test for.</param> public OrderLabTestForm(Appointment apt) { this.InitializeComponent(); this.staffController = new StaffController(); this.ltController = new LabTestController(); this.ltoController = new LabTestOrderedController(); this.apt = apt; this.setUpForm(); }