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