public Appointment(string appointmentId, Patient patient, TreatmentRoom room, string date, string time) { this.patient = patient; this.room = room; this.appointmentId = appointmentId; this.date = date; this.time = time; }
public Appointment(string appointmentId, Patient patient, TreatmentRoom room, string date, string time) //already has its own ID so doesnt need to generate one { this.patient = patient; this.room = room; this.appointmentId = appointmentId; this.date = date; this.time = time; }
public Appointment(Patient patient, TreatmentRoom room, DateTime dateTime) { string apptPath = DataIO.patientPath + $"\\{patient.getId()}\\Appointments"; //File path for appointments this.patient = patient; this.room = room; date = dateTime.ToString("D"); time = dateTime.ToString("t"); appointmentId = GeneralFunctions.generateId(apptPath, patient.getId()); //Generates its own ID }
public void setRoom(TreatmentRoom room) { this.room = room; }