Example #1
0
        public MenuListener(IAppContext context, ShapeEditor plugin, ILayerEditingService layerService,
                            IGeoprocessingService geoprocessingService)
        {
            _plugin               = plugin ?? throw new ArgumentNullException("plugin");
            _layerService         = layerService ?? throw new ArgumentNullException("layerService");
            _geoprocessingService = geoprocessingService ?? throw new ArgumentNullException("geoprocessingService");
            _context              = context ?? throw new ArgumentNullException("context");

            plugin.ItemClicked += Plugin_ItemClicked;
        }
Example #2
0
        public ProjectListener(IAppContext context, ShapeEditor plugin, ILayerEditingService layerService)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }
            if (layerService == null)
            {
                throw new ArgumentNullException("layerService");
            }

            _context      = context;
            _layerService = layerService;

            plugin.ProjectClosing    += plugin_ProjectClosing;
            plugin.BeforeRemoveLayer += plugin_BeforeRemoveLayer;
        }
Example #3
0
        public MenuListener(IAppContext context, ShapeEditor plugin, ILayerEditingService layerService,
                            IGeoprocessingService geoprocessingService)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }
            if (layerService == null)
            {
                throw new ArgumentNullException("layerService");
            }
            if (geoprocessingService == null)
            {
                throw new ArgumentNullException("geoprocessingService");
            }

            _layerService         = layerService;
            _geoprocessingService = geoprocessingService;
            _context = context;

            plugin.ItemClicked += Plugin_ItemClicked;
        }