示例#1
0
        public override void Initialize(IAppContext context)
        {
            _context = context;

            _metadataService = context.Container.GetSingleton <SymbologyMetadataService>();
            _labelMover      = context.Container.GetSingleton <LabelMover>();
            _legendListener  = context.Container.GetInstance <LegendListener>();
            _menuGenerator   = context.Container.GetInstance <MenuGenerator>();
            _menuListener    = context.Container.GetInstance <MenuListener>();
        }
示例#2
0
        public LegendListener(IAppContext context, SymbologyPlugin plugin, SymbologyMetadataService metadataService)
        {
            if (plugin == null)
            {
                throw new ArgumentNullException("plugin");
            }
            _context         = context;
            _metadataService = metadataService;

            plugin.LayerDoubleClicked   += LayerDoubleClicked;
            plugin.LayerStyleClicked    += LayerStyleClicked;
            plugin.LayerLabelsClicked   += LayerLabelsClicked;
            plugin.LayerDiagramsClicked += LayerDiagramsClicked;
            plugin.LayerCategoryClicked += LayerCategoryClicked;
        }