Ejemplo n.º 1
0
 public async Task GetSpatTabsCb()
 {
     try
     {
         await ArcGIS.Desktop.Framework.Threading.Tasks.QueuedTask.Run(() =>
         {
             bool dpexists = FrameworkApplication.DockPaneManager.IsDockPaneCreated("QProSapAddIn_SpatialTableFinder");
             if (dpexists)
             {
                 SpatialTableFinderViewModel vm = FrameworkApplication.DockPaneManager.Find("QProSapAddIn_SpatialTableFinder") as SpatialTableFinderViewModel;
                 Task r = vm.GetSpatTabsCallback();
             }
         });
     }
     catch (Exception ex)
     { MessageBox.Show("Error  :  " + ex.Message.ToString() + " "); }
 }