示例#1
0
        protected virtual void OnGottenLayers(GottenLayersLayerPluginEventArgs e)
        {
            EventHandler <GottenLayersLayerPluginEventArgs> handler = GottenLayers;

            if (handler != null)
            {
                handler(this, e);
            }
        }
示例#2
0
        public Collection <Layer> GetLayers(GetLayersParameters getLayersParameters)
        {
            if (getLayersParameters == null)
            {
                getLayersParameters = new GetLayersParameters();
            }

            GettingLayersLayerPluginEventArgs gettingLayersEventArgs = new GettingLayersLayerPluginEventArgs(getLayersParameters);

            OnGettingLayers(gettingLayersEventArgs);
            getLayersParameters = gettingLayersEventArgs.Parameters;

            Collection <Layer> layers = GetLayersCore(getLayersParameters);

            GottenLayersLayerPluginEventArgs gotLayersEventArgs = new GottenLayersLayerPluginEventArgs(layers, getLayersParameters);

            OnGottenLayers(gotLayersEventArgs);
            return(gotLayersEventArgs.Layers);
        }