Example #1
0
 public void ChangeResidence(IHospitalResidence newResidence)
 {
     this.Doctor    = ((Appointment)newResidence).Doctor;
     this.Patient   = ((Appointment)newResidence).Patient;
     this.Room      = ((Appointment)newResidence).Room;
     this.StartTime = ((Appointment)newResidence).StartTime;
     this.Type      = ((Appointment)newResidence).Type;
 }
Example #2
0
 public void ChangeHospitalResidence(IHospitalResidence oldHospitalResidence, IHospitalResidence newHospitalResidence)
 {
     _appointmentService.ChangeHospitalResidence(oldHospitalResidence, newHospitalResidence);
 }
 public void ChangeHospitalResidence(IHospitalResidence oldHospitalResidence, IHospitalResidence newHospitalResidence)
 {
     oldHospitalResidence.ChangeResidence(newHospitalResidence);
 }
 public void ChangeResidence(IHospitalResidence newResidence)
 {
     _hospitalResidence.ChangeResidence(newResidence);
 }
 public HospitalResidenceParticipants(IHospitalResidence hospitalResidence)
 {
     this._hospitalResidence             = hospitalResidence;
     this._hospitalResidenceParticipants = new List <Person>();
 }
 public void ChangeResidence(IHospitalResidence newResidence)
 {
     this.TreatmentStartDate = ((HospitalTreatment)newResidence).TreatmentStartDate;
     this.TreatmentEndDate   = ((HospitalTreatment)newResidence).TreatmentEndDate;
     this.TreatmentRoom      = ((HospitalTreatment)newResidence).TreatmentRoom;
 }