示例#1
0
 private void Receptionist_Load(object sender, EventArgs e)
 {
     datagrid_Patients.DataSource            = DataController.Instance().getPatientDataTable();
     datagrid_Appointments.DataSource        = DataController.Instance().getAppointmentDataTable();
     datagrid_Patients.AllowUserToDeleteRows = false;
 }
示例#2
0
 public void AddPatient(string first, string last, string address, string phone, string postcode, string dob)
 {
     Patients.Add(new Patient(first, last, address, phone, postcode, dob));
     DataController.Instance().InsertPatientData();
 }