private int _selectedDoctorID; // Has a default value of 0!!!! #endregion Fields #region Constructors public SampleAddViewModel(PatientViewModel patient) { this._patient = patient; _patientName = patient.Name + " " + patient.Surname; this._doctorsVM = new DoctorsViewModel(); this._allDoctors = _doctorsVM.AllDoctors; _labWorker = new LabWorker(); }
public ScheduleAppointmentWindowViewModel(CaseViewModel caseVM) { this._caseViewModel = caseVM; this._database = new Database(); this._doctorsVM = new DoctorsViewModel(); this._allDoctors = _doctorsVM.AllDoctors; _patientName = caseVM.PatientName + " " + caseVM.PatientSurname; _receptionist = new Receptionist(); List<String> appointmentTimes = this.getListOfAppointmentTimes(); _appointmentTimes = this.createObservableCollectionOfAppointmentTimes(appointmentTimes); }