public AddPatientViewModel(Patient patient, IPatientsRepository pRepo) { _repoPatient = pRepo; PatientTests = patient; PatientW = new PatientW(_patientTests); SetCommands(); }
public AddPatientViewModel() { // var p = new Patient(); PatientTests = SimpleIoc.Default.GetInstance <IPatientsRepository>().GetWithChildren(1); PatientW = new PatientW(PatientTests) { RefBy = "Self", Sex = "Male" }; }
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); }