Exemple #1
0
 public AddPatientViewModel(Patient patient, IPatientsRepository pRepo)
 {
     _repoPatient = pRepo;
     PatientTests = patient;
     PatientW     = new PatientW(_patientTests);
     SetCommands();
 }
Exemple #2
0
 public AddPatientViewModel()
 {
     // var p = new Patient();
     PatientTests = SimpleIoc.Default.GetInstance <IPatientsRepository>().GetWithChildren(1);
     PatientW     = new PatientW(PatientTests)
     {
         RefBy = "Self", Sex = "Male"
     };
 }
Exemple #3
0
        public AddPatientViewModel(IPatientsRepository pRepo)
        {
            _repoPatient = pRepo;

            PatientTests = new Patient();
            PatientW     = new PatientW(_patientTests)
            {
                PatientID = LoadId(),
                RefBy     = "Self",
                Sex       = "Male"
            };
            SetCommands();
        }
 public PatientTestVM()
 {
     _patientw = new PatientW(new Patient());
 }
 public PatientTestVM(IModelCommon patient)
 {
     _patientw = new PatientW(patient as Patient);
 }