public void OnEvent(object element, object parent)
 {
     if (_doc != null && element is IMap)
     {
         FormMapDatasets dlg = new FormMapDatasets((IMap)element);
         dlg.ShowDialog();
     }
 }
Exemple #2
0
        public void OnEvent(object element, object parent)
        {
            if (_doc != null && element is IMap)
            {
                var map = (IMap)element;

                FormMapDatasets dlg = new FormMapDatasets(map);
                dlg.ShowDialog();

                if (_doc.Application is IMapApplication)
                {
                    ((IMapApplication)_doc.Application).RefreshTOC();
                }
            }
        }
Exemple #3
0
        public Task <bool> OnEvent(object element, object parent)
        {
            if (_doc != null && element is IMap)
            {
                var map = (IMap)element;

                FormMapDatasets dlg = new FormMapDatasets(map);
                dlg.ShowDialog();

                if (_doc.Application is IMapApplication)
                {
                    ((IMapApplication)_doc.Application).RefreshTOC();
                }
            }

            return(Task.FromResult(true));
        }