コード例 #1
0
        protected virtual void OnLoaded(LoadedDataRepositoryItemEventArgs e)
        {
            EventHandler <LoadedDataRepositoryItemEventArgs> handler = Loaded;

            if (handler != null)
            {
                handler(this, e);
            }
        }
コード例 #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);
                }
            }
        }