public MedicalFileViewModel(PhysicianShellViewModel containingShellVm, string patientId, Physician physicianUser) { this.containingShellVm = containingShellVm; medicalFileM = new MedicalFileModel(patientId); AddToDbCommand = new AddToDbCommand(this); ScreenReplacementCommand = new ScreenReplacementCommand(this); this.physicianUser = physicianUser; }
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 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 AdminShellViewModel(MainWidowViewModel containingVm, Admin user) { this.containingVm = containingVm; this.Admin = user; SignOutCommand = new BackCommand(this); ScreenReplacementCommand = new ScreenReplacementCommand(this); Message = ""; DecisionMessage = ""; IsDecisionMessageShown = false; DecisionCommand = new DecisionCommand(this); CurrentVM = null; }
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; }
public ActionsMenuViewModel(MainWidowViewModel mainWindowVM) { this.mainWindowVM = mainWindowVM; this.ScreenReplacementCommand = new ScreenReplacementCommand(this); }