首页 > 其他分享 >ArcGIS Pro SDK二次开发目录的刷新

ArcGIS Pro SDK二次开发目录的刷新

时间:2022-09-18 22:33:05浏览次数:73  
标签:commandId1 Pro var ArcGIS 二次开发 null commandId

protected override void OnClick()
        { 
            var commandId = FrameworkApplication.GetPlugInWrapper(@"esri_core_exitApplicationButton") as ICommand;
            if (commandId != null)
            {
                if (commandId.CanExecute(null))
                    commandId.Execute(null);
            }

            var commandId1 = FrameworkApplication.GetPlugInWrapper(@"esri_itemInfoRefreshButton") as ICommand;
            if (commandId1 != null)
            {
                if (commandId1.CanExecute(null))
                    commandId1.Execute(null);  /******** Not Executing ***********/
            }
        }
foreach (var itm in Project.Current.Items.OfType<FolderConnectionProjectItem>())
{
    ((ArcGIS.Desktop.Internal.Core.IItemInternal)itm).RefreshChildren();
}

标签:commandId1,Pro,var,ArcGIS,二次开发,null,commandId
From: https://www.cnblogs.com/gisoracle/p/16706070.html

相关文章