コード例 #1
0
 public SamplesWindowViewModel(PatientViewModel patient)
 {
     this._patient = patient;
     this._samplesVM = new SamplesViewModel();
     this._allSamples = _samplesVM.AllSamples;
     this._patientSamples = this.getSamplesByPatientId(patient.PatientID);
 }
コード例 #2
0
        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();
        }
コード例 #3
0
 public CaseAddPageViewModel(PatientViewModel patient)
 {
     this._patient = patient;
     this._patientName = "" + patient.Name + " " + patient.Surname;
     this._receptionist = new Receptionist();
 }
コード例 #4
0
 public WriteEmailViewModel(PatientViewModel patient)
 {
     this._patient = patient;
     this._patientName = patient.Name + " " + patient.Surname;
 }