public MainMapViewModel( IRequestService requestService, ILayerService layerService, IGeolocatorService geolocatorService, INavigationService navigationService, IHexagonal hexagonal, IHeatGradientService heatGradientService, IZoneService zoneService) { _requestService = requestService; _layerService = layerService; _geolocatorService = geolocatorService; _navigationService = navigationService; _hexagonal = hexagonal; _heatGradientService = heatGradientService; _zoneService = zoneService; Initialized = false; _layerLast = 0; _currentPositionTag = String.Empty; _currentPosition = _geolocatorService.LastRecordedPosition; //MainMapInitialCameraUpdate = CameraUpdateFactory.NewPositionZoom(_currentPosition, 12.0); // zoom can be within: [2,21] CameraPosition cp = new CameraPosition(_currentPosition, 12.0, 0.0, 60.0); MainMapInitialCameraUpdate = CameraUpdateFactory.NewCameraPosition(cp); }
public TableEditorPresenter(IAppContext context, ITableEditorView view, IFileDialogService dialogService, ILayerService layerService) : base(view) { if (context == null) { throw new ArgumentNullException("context"); } if (dialogService == null) { throw new ArgumentNullException("dialogService"); } if (layerService == null) { throw new ArgumentNullException("layerService"); } _context = context; _dialogService = dialogService; _layerService = layerService; _tables = new Dictionary <int, TablePanelInfo>(); View.Initialize(context); View.Panels.BeforePanelClosed += (s, e) => CloseTable(e.LayerHandle); View.Panels.PanelActivated += (s, e) => View.OnActivateDockingPanel(); }
public AdminController( IContentManager contentManager, IContentItemDisplayManager contentItemDisplayManager, ISiteService siteService, ILayerService layerService, IAuthorizationService authorizationService, ISession session, IUpdateModelAccessor updateModelAccessor, IVolatileDocumentManager <LayerState> layerStateManager, IDisplayManager <Condition> conditionDisplayManager, IDisplayManager <Rule> ruleDisplayManager, IConditionIdGenerator conditionIdGenerator, IEnumerable <IConditionFactory> conditionFactories, IStringLocalizer <AdminController> stringLocalizer, IHtmlLocalizer <AdminController> htmlLocalizer, INotifier notifier) { _contentManager = contentManager; _contentItemDisplayManager = contentItemDisplayManager; _siteService = siteService; _layerService = layerService; _authorizationService = authorizationService; _session = session; _updateModelAccessor = updateModelAccessor; _layerStateManager = layerStateManager; _conditionDisplayManager = conditionDisplayManager; _ruleDisplayManager = ruleDisplayManager; _conditionIdGenerator = conditionIdGenerator; _conditionFactories = conditionFactories; _notifier = notifier; S = stringLocalizer; H = htmlLocalizer; }
public LayerEditingService(IAppContext context, ILayerService layerService, IFileDialogService dialogService, IBroadcasterService _broadcaster) { if (context == null) { throw new ArgumentNullException("context"); } if (layerService == null) { throw new ArgumentNullException("layerService"); } if (dialogService == null) { throw new ArgumentNullException("dialogService"); } if (_broadcaster == null) { throw new ArgumentNullException("_broadcaster"); } _context = context; _layerService = layerService; _dialogService = dialogService; this._broadcaster = _broadcaster; }
public AdminController( ISignal signal, IAuthorizationService authorizationService, ISession session, ILayerService layerService, IContentManager contentManager, IContentItemDisplayManager contentItemDisplayManager, ISiteService siteService, IStringLocalizer <AdminController> stringLocalizer, IHtmlLocalizer <AdminController> htmlLocalizer, INotifier notifier, IUpdateModelAccessor updateModelAccessor) { _signal = signal; _authorizationService = authorizationService; _session = session; _layerService = layerService; _contentManager = contentManager; _contentItemDisplayManager = contentItemDisplayManager; _siteService = siteService; _notifier = notifier; _updateModelAccessor = updateModelAccessor; S = stringLocalizer; H = htmlLocalizer; }
public LegendPresenter(IAppContext context, ILayerService layerService, IBroadcasterService broadcaster, LegendDockPanel legendDockPanel) : base(legendDockPanel) { if (context == null) { throw new ArgumentNullException("context"); } if (layerService == null) { throw new ArgumentNullException("layerService"); } if (broadcaster == null) { throw new ArgumentNullException("broadcaster"); } if (legendDockPanel == null) { throw new ArgumentNullException("legendDockPanel"); } _context = context; _layerService = layerService; _broadcaster = broadcaster; _legendDockPanel = legendDockPanel; View.LegendKeyDown += OnLegendKeyDown; }
public void Dispose() { var row = 2; var col = 4; this.LayerService = this.InitializeLayerService(row, col); }
public TasksPresenter(IAppContext context, ILayerService layerService, TasksDockPanel view, ITaskCollection tasks) : base(view) { if (context == null) { throw new ArgumentNullException("context"); } if (layerService == null) { throw new ArgumentNullException("layerService"); } if (tasks == null) { throw new ArgumentNullException("tasks"); } _context = context; _layerService = layerService; _tasks = tasks; View.Initialize(tasks); tasks.TaskChanged += TaskChanged; View.TreeViewKeyDown += OnTreeViewKeyDown; }
public OutputManager(ILayerService layerService) { if (layerService == null) { throw new ArgumentNullException("layerService"); } _layerService = layerService; }
public DatabaseLayersPresenter(IDatabaseLayersView view, ILayerService layerService) : base(view) { if (layerService == null) { throw new ArgumentNullException("layerService"); } _layerService = layerService; }
public ToolboxGenerator(IAppContext context, ToolboxPlugin plugin, ILayerService layerService) { _context = context ?? throw new ArgumentNullException(nameof(context)); _plugin = plugin ?? throw new ArgumentNullException(nameof(plugin)); _layerService = layerService ?? throw new ArgumentNullException(nameof(layerService)); Init(); }
// I hate this about DI, oh well public FolderViewModel(ProfileElement folder, IProfileEditorService profileEditorService, IDialogService dialogService, ILayerService layerService, IFolderViewModelFactory folderViewModelFactory, ILayerViewModelFactory layerViewModelFactory) : base(null, folder, profileEditorService, dialogService, layerService, folderViewModelFactory, layerViewModelFactory) { }
public Migrations( ILayerService layerService, IConditionIdGenerator conditionIdGenerator, IRuleMigrator ruleMigrator) { _layerService = layerService; _conditionIdGenerator = conditionIdGenerator; _ruleMigrator = ruleMigrator; }
public MainZoneViewModel( ILayerService layerService, IZoneService zoneService, INavigationService navigationService) { _layerService = layerService; _zoneService = zoneService; _navigationService = navigationService; IsBusy = true; }
public FolderViewModel(TreeItemViewModel parent, ProfileElement folder, IProfileEditorService profileEditorService, IDialogService dialogService, ILayerService layerService, IFolderViewModelFactory folderViewModelFactory, ILayerViewModelFactory layerViewModelFactory) : base(parent, folder, profileEditorService, dialogService, layerService, folderViewModelFactory, layerViewModelFactory) { }
public LayerStep( ILayerService layerService, IRuleMigrator ruleMigrator, IConditionIdGenerator conditionIdGenerator, IEnumerable <IConditionFactory> factories) { _layerService = layerService; _ruleMigrator = ruleMigrator; _conditionIdGenerator = conditionIdGenerator; _factories = factories; }
internal ProfileService(IPluginService pluginService, ISurfaceService surfaceService, ILayerService layerService, IProfileRepository profileRepository) { _pluginService = pluginService; _surfaceService = surfaceService; _layerService = layerService; _profileRepository = profileRepository; _surfaceService.ActiveSurfaceConfigurationChanged += OnActiveSurfaceConfigurationChanged; _surfaceService.SurfaceConfigurationUpdated += OnSurfaceConfigurationUpdated; _pluginService.PluginLoaded += OnPluginLoaded; }
//private readonly IDialogService _dialogService; public ZoneMapViewModel( ILayerService layerService, IGeolocatorService geolocatorService, INavigationService navigationService) //IDialogService dialogService) { _layerService = layerService; _geolocatorService = geolocatorService; _navigationService = navigationService; //_dialogService = dialogService; IsBusy = true; var cp = _geolocatorService.LastRecordedPosition; MapRegion = MapSpan.FromCenterAndRadius(cp, Distance.FromKilometers(1.2)); }
public MapListener(IAppContext context, IBroadcasterService broadcaster, ILayerService layerService, ContextMenuPresenter contextMenuPresenter, IProjectService projectService) { _context = context ?? throw new ArgumentNullException(nameof(context)); _broadcaster = broadcaster ?? throw new ArgumentNullException(nameof(broadcaster)); _layerService = layerService ?? throw new ArgumentNullException(nameof(layerService)); _contextMenuPresenter = contextMenuPresenter ?? throw new ArgumentNullException(nameof(contextMenuPresenter)); _projectService = projectService ?? throw new ArgumentNullException(nameof(projectService)); _map = _context.Map as IMap; if (_map == null) { throw new ApplicationException("Invalid map state."); } RegisterEvents(); }
public LayerFilter( ILayerService layerService, ILayoutAccessor layoutAccessor, IContentItemDisplayManager contentItemDisplayManager, IUpdateModelAccessor modelUpdaterAccessor, IScriptingManager scriptingManager, IServiceProvider serviceProvider, IMemoryCache memoryCache, ISignal signal) { _layerService = layerService; _layoutAccessor = layoutAccessor; _contentItemDisplayManager = contentItemDisplayManager; _modelUpdaterAccessor = modelUpdaterAccessor; _scriptingManager = scriptingManager; _serviceProvider = serviceProvider; _memoryCache = memoryCache; _signal = signal; }
public LegendListener(IAppContext context, IBroadcasterService broadcaster, ILayerService layerService) { _context = context; _broadcaster = broadcaster; _layerService = layerService; if (_broadcaster == null || _context == null || layerService == null) { throw new NullReferenceException("Failed to initialize map listener."); } _legend = _context.Legend as ILegend; if (_legend == null) { throw new NullReferenceException("Legend reference is null."); } RegisterEvents(); }
public ProjectLoaderLegacy(IAppContext context, ImageSerializationService imageSerializationService, ILayerService layerService) { if (imageSerializationService == null) { throw new ArgumentNullException("imageSerializationService"); } if (layerService == null) { throw new ArgumentNullException("layerService"); } _imageSerializationService = imageSerializationService; _layerService = layerService; _context = context as ISecureContext; if (_context == null) { throw new InvalidCastException("Application context must support ISerializable_context interface."); } }
public RepositoryPresenter( IAppContext context, RepositoryDockPanel view, TmsImporter tmsImporter, ILayerService layerService, IRepository repository, MainPlugin plugin) : base(view) { if (context == null) { throw new ArgumentNullException("context"); } if (tmsImporter == null) { throw new ArgumentNullException("tmsImporter"); } if (layerService == null) { throw new ArgumentNullException("layerService"); } if (repository == null) { throw new ArgumentNullException("repository"); } if (plugin == null) { throw new ArgumentNullException("plugin"); } _context = context; _layerService = layerService; _repository = repository; _view = view; _tmsImporter = tmsImporter; _view.ItemDoubleClicked += ViewItemDoubleClicked; _view.RepositoryKeyDown += OnRepositoryKeyDown; view.Tree.UpdateTmsState(_context.Map.Tiles.ProviderId); plugin.TmsProviderChanged += OnTmsProviderChanged; }
public ContextMenuPresenter(IAppContext context, ILayerService layerService, IGeoprocessingService geoService, ContextMenuView view) : base(view) { if (context == null) { throw new ArgumentNullException("context"); } if (layerService == null) { throw new ArgumentNullException("layerService"); } if (geoService == null) { throw new ArgumentNullException("geoService"); } _context = context; _layerService = layerService; _geoService = geoService; }
protected TreeItemViewModel(TreeItemViewModel parent, ProfileElement profileElement, IProfileEditorService profileEditorService, IDialogService dialogService, ILayerService layerService, IFolderViewModelFactory folderViewModelFactory, ILayerViewModelFactory layerViewModelFactory) { _profileEditorService = profileEditorService; _dialogService = dialogService; _layerService = layerService; _folderViewModelFactory = folderViewModelFactory; _layerViewModelFactory = layerViewModelFactory; Parent = parent; ProfileElement = profileElement; Children = new BindableCollection <TreeItemViewModel>(); UpdateProfileElements(); }
public WelcomePresenter(IWelcomeView view, ILayerService layerService, IProjectService projectService) : base(view) { if (layerService == null) { throw new ArgumentNullException("layerService"); } if (projectService == null) { throw new ArgumentNullException("projectService"); } _layerService = layerService; _projectService = projectService; view.GettingStartedClicked += () => PathHelper.OpenUrl("http://www.mapwindow.org/documentation/mapwindow5/getting-started.html"); view.DocumentsClicked += () => PathHelper.OpenUrl("https://mapwindow5.codeplex.com/documentation"); view.DonateClicked += () => PathHelper.OpenUrl("http://www.mapwindow.org/documentation/mapwindow5/support.html"); view.LogoClicked += () => PathHelper.OpenUrl("http://mapwindow5.codeplex.com"); view.OpenLayerClicked += OpenLayerClicked; view.OpenProjectClicked += OpenProjectClicked; }
public LayerFilter( ILayerService layerService, ILayoutAccessor layoutAccessor, IContentItemDisplayManager contentItemDisplayManager, IUpdateModelAccessor modelUpdaterAccessor, IScriptingManager scriptingManager, IMemoryCache memoryCache, ISignal signal, IThemeManager themeManager, IAdminThemeService adminThemeService) { _layerService = layerService; _layoutAccessor = layoutAccessor; _contentItemDisplayManager = contentItemDisplayManager; _modelUpdaterAccessor = modelUpdaterAccessor; _scriptingManager = scriptingManager; _memoryCache = memoryCache; _signal = signal; _themeManager = themeManager; _adminThemeService = adminThemeService; }
public LayerFilter( ILayerService layerService, ILayoutAccessor layoutAccessor, IContentItemDisplayManager contentItemDisplayManager, IUpdateModelAccessor modelUpdaterAccessor, IScriptingManager scriptingManager, IMemoryCache memoryCache, IThemeManager themeManager, IAdminThemeService adminThemeService, IVolatileDocumentManager <LayerState> layerStateManager) { _layerService = layerService; _layoutAccessor = layoutAccessor; _contentItemDisplayManager = contentItemDisplayManager; _modelUpdaterAccessor = modelUpdaterAccessor; _scriptingManager = scriptingManager; _memoryCache = memoryCache; _themeManager = themeManager; _adminThemeService = adminThemeService; _layerStateManager = layerStateManager; }
public ToolboxGenerator(IAppContext context, ToolboxPlugin plugin, ILayerService layerService) { if (context == null) { throw new ArgumentNullException("context"); } if (plugin == null) { throw new ArgumentNullException("plugin"); } if (layerService == null) { throw new ArgumentNullException("layerService"); } _context = context; _plugin = plugin; _layerService = layerService; Init(); }
public MenuListener( IAppContext context, ILayerService layerService, IProjectService projectService, IGeoDatabaseService databaseService) { Logger.Current.Trace("In MenuListener"); if (context == null) { throw new ArgumentNullException("context"); } if (layerService == null) { throw new ArgumentNullException("layerService"); } if (projectService == null) { throw new ArgumentNullException("projectService"); } if (databaseService == null) { throw new ArgumentNullException("databaseService"); } _context = context; _layerService = layerService; _projectService = projectService; _databaseService = databaseService; var appContext = context as AppContext; if (appContext != null) { appContext.Broadcaster.MenuItemClicked += MenuItemClicked; } TilesMenuHelper.TileProviderSelected += OnTileProviderSelected; TilesMenuHelper.ChooseActiveProvider += OnChooseActiveProvider; }