public SearchViewModel(EventBus eventBus, IAutoListService listService, PageService pageService, DbContextLoader dbContextLoader) { this.eventBus = eventBus; this.listService = listService; this.pageService = pageService; this.dbContextLoader = dbContextLoader; eventBus.Subscribe <Events.DataUpdated <Evacuation>, SearchViewModel>(Updated, false); eventBus.Subscribe <Events.DataUpdated <Declaration>, SearchViewModel>(Updated, false); Init(); }
public DetailInfoViewModel(PageService pageservice, BL.IAutoListService listService, UserService userService, DeclarationService declarationService) : base(pageservice) { this.listService = listService; this.userService = userService; this.declarationService = declarationService; Evac = listService.SelectedEvac; init(); }