public void OnEvent(object element, object parent) { if (_doc != null && element is IMap) { FormMapDatasets dlg = new FormMapDatasets((IMap)element); dlg.ShowDialog(); } }
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(); } } }
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)); }