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; }
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; }
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; }