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();
}