Beispiel #1
0
 public HistoricalMedicalRecordsViewModel(PhysicianShellViewModel containingVm, string patientId, Physician physician)
 {
     this.containingVm        = containingVm;
     this.medicalRecordM      = new MedicalRecordModel(patientId, physician);
     MedicalRecordsCollection = new ObservableCollection <MedicalRecord>(medicalRecordM.MedicalRecordsList);
     BackCommand        = new BackCommand(this);
     EditingItemCommand = new EditingItemCommand(this);
     this.physician     = physician;
     this.patientId     = patientId;
 }
 public PhysiciansManagementViewModel(AdminShellViewModel shellViewModel)
 {
     physiciansManagementM = new PhysiciansManagementModel();
     Items = new ObservableCollection <Physician>(physiciansManagementM.Physicians);
     Items.CollectionChanged += PhysiciansChanged;
     this.containingShellVm   = shellViewModel;
     EditCommand              = new EditingItemCommand(this);
     DeleteCommand            = new DeleteItemCommand(this);
     SearchCommand            = new SearchItemCommand(this);
     ScreenReplacementCommand = new ScreenReplacementCommand(this);
 }
Beispiel #3
0
 public DrugsManagementViewModel(AdminShellViewModel shellViewModel)
 {
     drugsManagementM         = new DrugsManagementModel();
     Items                    = new ObservableCollection <Drug>(drugsManagementM.Drugs);
     Items.CollectionChanged += DrugsChanged;
     this.containingShellVm   = shellViewModel;
     EditCommand              = new EditingItemCommand(this);
     DeleteCommand            = new DeleteItemCommand(this);
     SearchCommand            = new SearchItemCommand(this);
     ScreenReplacementCommand = new ScreenReplacementCommand(this);
 }