示例#1
0
 public LoadsController(IMapper mapper, ILoadService loadService, INotificationService notificationService, IUserContext userContext)
 {
     _mapper              = mapper;
     _loadService         = loadService;
     _notificationService = notificationService;
     _user = userContext;
 }
示例#2
0
 public FileDialogService(IMessageBoxService messageBoxService, ILoadService loadService)
 {
     this.messageBoxService       = messageBoxService;
     this.loadService             = loadService;
     loadService.PackageLoaded   += PackageServiceOnPackageLoaded;
     loadService.PackageUnloaded += PackageServiceOnPackageUnLoaded;
 }
示例#3
0
        public MapViewModel(IWindowService windowService,
                            IMapService mapService, IPackageService packageService, IImportService importService, ILoadService loadService,
                            IFormService formService, IClientConfigurationProvider clientConfigurationProvider)
        {
            this.loadService = loadService;
            this.formService = formService;
            this.clientConfigurationProvider = clientConfigurationProvider;
            this.windowService    = windowService;
            this.JSEventContainer = formService;
            this.ScriptingObject  = mapService;

            loadService.PackageLoaded            += LoadServiceOnPackageLoaded;
            loadService.PackageUnloaded          += LoadServiceOnPackageUnLoaded;
            loadService.PackageDescriptorChanged += new EventHandler(packageService_PackageDescriptorChanged);
            loadService.MobileChanged            += loadServiceMobileChanged;

            OpenHelpWindowCommand = new DelegateCommand(() => windowService.OpenHelpWindow(HelpFileNames.ZustandsabschnittMapHelpPage));
            //OpenLegendWindowAllCommand = new DelegateCommand(() => windowService.OpenLegendWindowAll());
            //all changes to an Observable Collection must be done by the same Thread it was created by, becaus of Thread Affinity
            Action action = new Action(() => { InspektionsroutenDictionary = new CollectionView(new ObservableCollection <XMLKeyValuePair <Guid, string> >()); });

            Application.Current.Dispatcher.Invoke(action);
            this.IsVisible = false;
            this.setDefaultHtmlSource();

            mapService.ShowLegend += onOpenLegendWindow;
        }
示例#4
0
 public LoadService(ILoadService <T> service, ITenant owner)
 {
     _owner   = owner;
     _filter  = e => ((ITenant)e).TenantId == _owner.TenantId;
     _service = service;
     _paths   = new List <string>();
 }
示例#5
0
 public LoadsController(IMapper mapper, ILoadService loadService, IConfigurationRoot configuration, IUserContext userContext)
 {
     _mapper        = mapper;
     _loadService   = loadService;
     _configuration = configuration;
     _user          = userContext;
 }
示例#6
0
 public SyncService(ILoadService loadService, ILoggerFactory loggerFactory, ISecurityService security, IUploader uploader)
 {
     _loadService   = loadService;
     _loggerFactory = loggerFactory;
     _security      = security;
     _uploader      = uploader;
 }
 public ILoadService <T> Include <TProperty>(Expression <Func <T, TProperty> > path)
     where TProperty : class
 {
     _paths.Add(path);
     _service = _service.Include(path);
     return(this);
 }
示例#8
0
 public LoadController(ILoadService loadService, IUnitOfWork unitOfWork)
 {
     Contract.Assert(loadService != null);
     Contract.Assert(unitOfWork != null);
     this.unitOfWork  = unitOfWork;
     this.loadService = loadService;
 }
        public MainWindowViewModel(ILogger logger, IServiceProvider serviceProvider)
            : base(logger)
        {
            _informationService = serviceProvider.GetService <ILoadService <Information> >();
            _viewModelFactory   = new ViewModelFactory(serviceProvider, logger, this);

            _informationService.LoadEvent += OnLoadCompleted;
        }
示例#10
0
            public LoadService(ILoadService <T> service, ILoadServiceProvider failoverProvider, Action <Exception> logger, FailoverStrategy strategy)
            {
                _service         = service;
                _failoverService = failoverProvider != null?failoverProvider.Load <T>() : null;

                _logger   = logger;
                _strategy = strategy;
            }
示例#11
0
            public LoadService(ILoadService <T> service, ILoadServiceProvider failoverProvider, Action <Exception> logger, FailoverStrategy strategy, bool allowInconsistentReplication)
            {
                _service         = service;
                _failoverService = failoverProvider != null?failoverProvider.Load <T>() : null;

                _logger   = logger;
                _strategy = strategy;
                _allowInconsistentReplication = allowInconsistentReplication;
            }
示例#12
0
 public LoadsController(IMapper mapper, ILoadService loadService, IUserProfileService userProfileService, IUserContext userContext, IConfigurationRoot configuration, Utilities util)
 {
     _mapper             = mapper;
     _loadService        = loadService;
     _userProfileService = userProfileService;
     _userContext        = userContext;
     _configuration      = configuration;
     _util = util;
 }
示例#13
0
 public Utilities(LoadshopDataContext context, IConfigurationRoot config, HttpClient client, IUserContext userContext, ICommonService commonService, ILoadService loadService)
 {
     _config        = config;
     _client        = client;
     _context       = context;
     _userContext   = userContext;
     _commonService = commonService;
     _loadService   = loadService;
 }
示例#14
0
 public ExportService(
     IClientConfigurationProvider clientConfigurationProvider,
     IDTOService dtoService,
     ILoadService loadService,
     IFormService formService)
 {
     this.formService = formService;
     this.clientConfigurationProvider = clientConfigurationProvider;
     this.dtoService  = dtoService;
     this.loadService = loadService;
 }
示例#15
0
 public SynchronizeViewModel(IDomainContext domainContext)
 {
     DomainContext = domainContext;
     webService    = domainContext.WebService;
     loadService   = new LoadService(domainContext?.DataService,
                                     webService,
                                     domainContext?.BrandRepository,
                                     domainContext?.DirectoryRepository);
     CreateCommand();
     RefreshLastUpdate();
     InitProperties();
     SubscribeEvents();
 }
 public ShippingLoadController(IShippingService shippingService,
                               ILoadService loadService,
                               ILocationService locationService,
                               IUserContext userContext,
                               IUserProfileService userProfileService,
                               IMapper mapper)
 {
     _shippingService    = shippingService;
     _loadService        = loadService;
     _locationService    = locationService;
     _userContext        = userContext;
     _userProfileService = userProfileService;
     _mapper             = mapper;
 }
示例#17
0
 public RequestController(IRequestService requestService,
                          ICountryService countryService,
                          ICityService cityService,
                          ILoadService loadService,
                          IRequestTypeService requestTypeService,
                          IRequestStatusService requestStatusService,
                          ICompanyService companyService)
 {
     this.requestService       = requestService;
     this.countryService       = countryService;
     this.cityService          = cityService;
     this.loadService          = loadService;
     this.requestTypeService   = requestTypeService;
     this.requestStatusService = requestStatusService;
     this.companyService       = companyService;
 }
示例#18
0
        private void RegisterServices()
        {
            IUnityContainer container = new UnityContainer();

            container.RegisterType <IImageService, ImageService>();
            container.RegisterType <IFontsService, FontsService>();
            container.RegisterType <ISaveService, SaveService>();
            container.RegisterType <ILoadService, LoadService>();
            container.RegisterType <IPrintService, PrintService>();
            container.RegisterType <IUrlToHyperlinkService, UrlToHyperlinkService>();

            _imageService          = container.Resolve <ImageService>();
            _fontService           = container.Resolve <FontsService>();
            _saveService           = container.Resolve <SaveService>();
            _loadService           = container.Resolve <LoadService>();
            _printService          = container.Resolve <PrintService>();
            _urlToHyperlinkService = container.Resolve <UrlToHyperlinkService>();
        }
示例#19
0
 public PackageService(IMessageBoxService messageBoxService,
                       IClientConfigurationProvider clientConfigurationProvider,
                       ILanguageService languageService,
                       IExportService exportService,
                       IDTOService dtoService,
                       ILoadService loadService,
                       IGeoJsonService geoJsonService,
                       IFormService formService,
                       IWindowService windowService,
                       IProgressService progressService
                       )
 {
     this.dtoService                  = dtoService;
     this.exportService               = exportService;
     this.messageBoxService           = messageBoxService;
     this.clientConfigurationProvider = clientConfigurationProvider;
     this.languageService             = languageService;
     this.loadService                 = loadService;
     this.geoJsonService              = geoJsonService;
     this.formService                 = formService;
     this.windowService               = windowService;
     this.progressService             = progressService;
 }
示例#20
0
 public LoadService(InterceptorRepository repository, ILoadService <T> service, Func <InterceptorContext, IDisposable> interceptorFactory)
 {
     _repository         = repository;
     _service            = service;
     _interceptorFactory = interceptorFactory;
 }
 public ImageController()
 {
     _loadService  = new LoadService();
     _imageService = new ImageService();
 }
示例#22
0
 public LoadsController(ILoadService loadService)
 {
     _loadService = loadService;
 }
示例#23
0
 private void createServices()
 {
     timeService = new TimeService();
     eventService = new EventService();
     uiFactoryService = new UIFactoryService();
     wwwService = new FakeWwwService();//controller.GameObject.AddComponent<WwwService>();
     viewService = new ViewService(eventService, uiFactoryService);
     loadService = new LoadService(eventService);
     gameService = new GameService(pool, viewService);
     pathService = new PathService(pool, wwwService, eventService);
     levelService = new LevelService(wwwService, eventService);
     enemyService = new EnemyService(pool, wwwService, eventService);
     bonusService = new BonusService(pool, wwwService, eventService);
     difficultyService = new DifficultyService(pool, wwwService, eventService);
     infoService = new InfoService(viewService, uiFactoryService, eventService);
     settingsService = new SettingsService(pool);
     translationService = new TranslationService(settingsService);
     languageService = new LanguageService(wwwService, eventService);
     analyticsService = new AnalyticsService(settingsService);
     shipService = new ShipService(timeService, eventService);
     gamerService = new GamerService(eventService);
     currencyService = new CurrencyService(eventService, gamerService);
     iapService = new IAPService(eventService);
     adService = new AdService(currencyService);
     shopService = new ShopService(currencyService, eventService, iapService);
     updateables.Add(infoService);
 }
示例#24
0
 /// <summary>
 /// Creates new instance of <see cref="LoadCommand"/>
 /// </summary>
 /// <param name="loadService">Load service</param>
 public LoadCommand(ILoadService loadService)
 {
     this._loadService = loadService;
 }
示例#25
0
 public LoadController(ILoadService loadService)
 {
     this.loadService = loadService;
 }
示例#26
0
 /// <summary>
 /// Initialize service.
 /// </summary>
 /// <param name="application">The application.</param>
 /// <param name="providerFactory">The provider factory.</param>
 /// <param name="loadService">The load service.</param>
 internal void Initialize(XafApplication application,
     IDataStoreProviderFactory providerFactory, ILoadService loadService)
 {
     LoadService = loadService;
     setupCollector(application, providerFactory);
 }
示例#27
0
        public MainWindowViewModel(IFormViewModel formViewModel, IMapViewModel mapViewModel, IProgressViewModel progressViewModel,
                                   IFileDialogService fileDialogService, IPackageService packageService,
                                   IImportService importservice, ISaveService saveService, ILoadService
                                   loadService, ILogService logService, IWindowService windowService,
                                   IProgressService progressService)
        {
            Loggers.PerformanceLogger.Debug("MainWindowViewModel constructor started");

            this.loadService             = loadService;
            loadService.PackageLoaded   += PackageServiceOnPackageLoaded;
            loadService.PackageUnloaded += OnPackageUnloaded;
            this.saveService             = saveService;
            // this.gisService = gisService;
            this.windowService     = windowService;
            this.fileDialogService = fileDialogService;
            this.packageService    = packageService;
            this.importservice     = importservice;
            this.progressService   = progressService;
            MapViewModel           = mapViewModel;
            FormViewModel          = formViewModel;
            ProgressViewModel      = progressViewModel;

            ShowHideKarteCommand    = new DelegateCommand(() => MapViewModel.IsVisible = !MapViewModel.IsVisible);
            ShowHideFormularCommand = new DelegateCommand(() => FormViewModel.IsVisible = !FormViewModel.IsVisible);

            ExitCommand      = new DelegateCommand(App.Current.Shutdown);
            ImportCommand    = new DelegateCommand(startImportWorker);
            SaveCommand      = new DelegateCommand(() => fileDialogService.ShowSaveDialog(saveService.Save));
            ExportCommand    = new DelegateCommand(exportSingle);
            ExportAllCommand = new DelegateCommand(() => fileDialogService.ShowExportDialog(packageService.Export, true));
            ExportLogCommand = new DelegateCommand(() => fileDialogService.ShowExportLogDialog(logService.ExportLog));
            WindowTitle      = string.Format("{0} v{1}-{2}", LocalizationLocator.MobileLocalization.MainWindowTitle, typeof(MainWindow).Assembly.GetName().Version, VersionPostfix.Postfix);
            MenuItemsVisible = false;
            isEnabled        = true;
            fileDialogService.ImportStart    += new EventHandler(fileDialogServiceImportStart);
            fileDialogService.ImportFinished += new EventHandler(fileDialogServiceImportFinished);
            progressService.OnStart          += progressOnStart;
            progressService.OnStop           += progressOnStop;

            Loggers.PerformanceLogger.Debug("MainWindowViewModel constructor ended");
        }
示例#28
0
 public ProtocolService(XafDeltaModule owner, ILoadService loadService)
     : base(owner)
 {
     LoadService = loadService;
     Collector = new Collector(this);
 }
示例#29
0
 public MainViewModel(ILoadService service, IUpdateService saveService)
 {
     _loadService = service;
     _saveService = saveService;
 }
 public LoadService(ILoadService <T> service, GenerationalCachingRepository <TCache> cache)
 {
     _cache   = cache;
     _service = service;
     _paths   = new List <Expression>();
 }
示例#31
0
 public LoadController(ILoadService loadService)
 {
     _loadService = loadService;
     processor    = new ChartProcessor();
 }
示例#32
0
 public LoadController(ILoadService loadService)
 {
     this.loadService = loadService;
 }
示例#33
0
 public ApiAccessService(ILoadService loadService)
 {
     _loadService = loadService;
 }
示例#34
0
 public LoadsController(ILoadService service)
 {
     this._service = service;
 }