public HospitalCollectionViewModel(IHospitalDataService service) { EventAggregator.GetEvent <HospitalCollectionChangedEvent>().Subscribe(UpdateHospitalCollection); EventAggregator.GetEvent <HospitalCategorySelectionEvent>().Subscribe(UpdateSelectionTrigger); EntityType = typeof(Hospital); CommitCategoryAssigment = new DelegateCommand(OnCommitted); AssignCategoryCommand = new DelegateCommand <string>(OnAssignCategoryCommand, CanCommiteCategory); AddHospitalCommand = new DelegateCommand(OnAddHospital, () => true); ImportHospitalDataCommand = new DelegateCommand(OnImportHospitalData, () => true); ExportHospitalDataCommand = new DelegateCommand(OnExportHospitalData, CanExportData); DeleteHospitalDataCommand = new DelegateCommand(OnDeleteHospitalData, CanDeleteData); EditHospitalCommand = new DelegateCommand <object>(OnEdit, CanEdit); DeleteHospitalCommand = new DelegateCommand <object>(OnDeleteHospital, CanDeleteHospital); FilterEnumerations = new ObservableCollection <string> { "Hospital Name", "Category", "Region", "CMS Provider", "State" }; SelectedFilter = FilterEnumerations[0]; HospitalDataService = service; SelectedHospitals = new ObservableCollection <HospitalViewModel>(); }
public HospitalsTabDataViewModel(IRegionManager regionManager, IHospitalDataService hospitalDataService, IEventAggregator eventAggregator) { NewGeoContextCommand = new DelegateCommand(OnNewGeoContext); RegionManager = regionManager; HospitalDataService = hospitalDataService; }
public HospitalListController(DropDownListContext db, IMapper mapper) { _service = new HospitalDataService(db, mapper); }
public HospitalMainViewModel( IRegionManager regionManager, IHospitalDataService hospitalDataService) { RegionManager = regionManager; HospitalDataService = hospitalDataService; }
public HospitalBusinessService(IHospitalDataService _hospitalDataService) { hospitalDataService = _hospitalDataService; }
public HospitalController() { tbDataService = new HospitalDataService(); }
public HospitalCategoryCollectionViewModel(IHospitalDataService service) { EntityType = typeof(HospitalCategory); HospitalDataService = service; EventAggregator.GetEvent <HospitalCategoryCollectionChangedEvent>().Subscribe(_reconcile); }
public HospitalBusinessRule(IHospitalDataService _tbDataService) { tbDataService = _tbDataService; }