Esempio n. 1
0
        protected virtual void OnLoading(LoadingDataRepositoryItemEventArgs e)
        {
            EventHandler <LoadingDataRepositoryItemEventArgs> handler = Loading;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Esempio n. 2
0
        /// <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);
                }
            }
        }