コード例 #1
0
 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();
 }
コード例 #2
0
        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();
        }