protected virtual void OnLoaded(LoadedDataRepositoryItemEventArgs e) { EventHandler <LoadedDataRepositoryItemEventArgs> handler = Loaded; if (handler != null) { handler(this, e); } }
/// <summary> /// Loads current data repository onto active map. /// </summary> public void Load() { if (GisEditor.ActiveMap != null) { LoadingDataRepositoryItemEventArgs loadingArgs = new LoadingDataRepositoryItemEventArgs(); OnLoading(loadingArgs); if (!loadingArgs.Cancel) { LoadCore(); LoadedDataRepositoryItemEventArgs loadedArgs = new LoadedDataRepositoryItemEventArgs(); OnLoaded(loadedArgs); } } }