예제 #1
0
        public MainViewModel(PageService pageService,
                             DbContextLoader contextLoader,
                             ClientPipeHanlder pipeHanlder,
                             EventBus eventBus,
                             ConnectorService connectorService,
                             ValuteGetterService valuteGetter,
                             SplashScreenService splashScreenService,
                             SourceService sourceService,
                             Services.UpdateHandlerService handlerService, IConfiguration configuration)
        {
            this.pageService         = pageService;
            this.contextLoader       = contextLoader;
            this.pipeHanlder         = pipeHanlder;
            this.eventBus            = eventBus;
            this.updaterService      = connectorService;
            this.valuteGetter        = valuteGetter;
            this.splashScreenService = splashScreenService;
            this.sourceService       = sourceService;
            this.handlerService      = handlerService;
            this.configuration       = configuration;
            pageService.PageChanged += PageService_PageChanged;

            splashScreenService.OverlapScreen += SplashScreenService_OverlapScreen;
            splashScreenService.ShowPromtBtn  += SplashScreenService_ShowPromtBtn;
            splashScreenService.ClearScreen   += SplashScreenService_ClearScreen;


            Init();
        }
예제 #2
0
        public MainViewModel(PageManager pageService,
                             DbContextLoader contextLoader,
                             ClientPipeHanlder pipeHanlder,
                             EventBus eventBus,
                             Services.UpdateHandlerService handlerService)
        {
            this.pageService         = pageService;
            this.contextLoader       = contextLoader;
            this.pipeHanlder         = pipeHanlder;
            this.eventBus            = eventBus;
            this.handlerService      = handlerService;
            pageService.PageChanged += PageService_PageChanged;


            Init();
        }