private void Receptionist_Load(object sender, EventArgs e) { datagrid_Patients.DataSource = DataController.Instance().getPatientDataTable(); datagrid_Appointments.DataSource = DataController.Instance().getAppointmentDataTable(); datagrid_Patients.AllowUserToDeleteRows = false; }
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(); }