Example #1
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);
 }
 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);
 }
 public PhysicianShellViewModel(MainWidowViewModel containingVm, Physician physicianUser)
 {
     Message = "";
     IsBusy  = false;
     IsDecisionMessageShown   = false;
     DecisionMessage          = "";
     DecisionCommand          = new DecisionCommand(this);
     this.containingVm        = containingVm;
     ScreenReplacementCommand = new ScreenReplacementCommand(this);
     SearchCommand            = new SearchItemCommand(this);
     SignOutCommand           = new BackCommand(this);
     physicianShellModel      = new PhysicianShellModel();
     //patientSearchVM = new PatientSearchViewModel(containingVm, physicianUser);
     this.PhysicianUser   = physicianUser;
     IsEnabledActionsMenu = false;
     CurrentVM            = null;
     //PersonalDetailsTab = patientDetailsVM;
     //AddReceptTab = addReceptVM;
     //AddMedicalRecordTab = addMedicalRecordVM;
     //MedicalFileTab = medicalFileVM;
 }