protected virtual void OnGottenLayers(GottenLayersLayerPluginEventArgs e) { EventHandler <GottenLayersLayerPluginEventArgs> handler = GottenLayers; if (handler != null) { handler(this, e); } }
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); }