Exemplo n.º 1
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;
        }
Exemplo n.º 2
0
 public ExportService(
     IClientConfigurationProvider clientConfigurationProvider,
     IDTOService dtoService,
     ILoadService loadService,
     IFormService formService)
 {
     this.formService = formService;
     this.clientConfigurationProvider = clientConfigurationProvider;
     this.dtoService  = dtoService;
     this.loadService = loadService;
 }
Exemplo n.º 3
0
        public ClientManager(string hubName, string providerName)
        {
            //var configProvider = CommonServiceLocator<IClientConfigurationProvider>.GetService(providerName);

            IClientConfigurationProvider configProvider = null;

            this._hubName = hubName;

            this._urlList       = configProvider.GetAll();
            this._containerList = new List <HubContainer>();
            this._channelList   = new Dictionary <string, IList <IListener> >();
        }
Exemplo n.º 4
0
        public LoadService(IDTOService dtoService,
                           IClientConfigurationProvider clientConfigurationProvider,
                           IMapService mapService,
                           IFormService formService,
                           IGeoJsonService geoJsonService,
                           IProgressService progressService)
        {
            this.formService     = formService;
            this.dtoService      = dtoService;
            this.mapService      = mapService;
            this.geoJsonService  = geoJsonService;
            this.progressService = progressService;

            Action action = new Action(() => InspektionsroutenDictionary = new ObservableCollection <XMLKeyValuePair <Guid, string> >());

            Application.Current.Dispatcher.Invoke(action);
            this.clientConfigurationProvider = clientConfigurationProvider;
        }
Exemplo n.º 5
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;
 }
 public ConfigurationController(IClientConfigurationProvider configurationProvider)
 {
     this.configurationProvider = configurationProvider;
 }
Exemplo n.º 7
0
        public void SetConfigurationProvider(IClientConfigurationProvider _provider)
        {
            provider = _provider;

            SetDefaultRequestHeader("User-Agent", provider.getUserAgent());
        }
Exemplo n.º 8
0
 public WindowService(IClientConfigurationProvider clientConfigurationProvider, IMessageBoxService messageBoxService)
 {
     this.clientConfigurationProvider = clientConfigurationProvider;
     this.messageBoxService           = messageBoxService;
     currentOpenLegendWindows         = new List <LegendWindow>();
 }
Exemplo n.º 9
0
 public SaveService(IImportService importService, IClientConfigurationProvider clientConfigurationProvider, IPackageService packageService)
 {
     this.clientConfigurationProvider = clientConfigurationProvider;
     this.importService  = importService;
     this.packageService = packageService;
 }
Exemplo n.º 10
0
 public DTOService(IClientConfigurationProvider clientConfigurationProvider,
                   IMessageBoxService messageBoxService)
 {
     this.clientConfigurationProvider = clientConfigurationProvider;
     this.messageBoxService           = messageBoxService;
 }