コード例 #1
0
 /// <summary>
 /// Constructor for the edit appointment form
 /// </summary>
 /// <param name="theAppointment">The appointment to be edited</param>
 public EditAppointmentForm(AppointmentUserControl appointmentUserControl, Appointment theAppointment)
 {
     InitializeComponent();
     this.appointmentUserControl = appointmentUserControl;
     this.appointmentController  = new AppointmentController();
     this.doctorController       = new DoctorController();
     this.theAppointment         = theAppointment ?? throw new ArgumentNullException("theAppointment", "Appointment cannot be null for this form");
 }
コード例 #2
0
 /// <summary>
 /// Constructor for the make appointment form
 /// </summary>
 /// <param name="appointmentUserControl">the refering appointment user control</param>
 public MakeAppointmentForm(AppointmentUserControl appointmentUserControl)
 {
     InitializeComponent();
     this.appointmentUserControl = appointmentUserControl;
     this.appointmentController  = new AppointmentController();
     this.patientController      = new PatientController();
     this.doctorController       = new DoctorController();
 }