private static IsCtrlClickItem ( object item ) : bool | ||
item | object | |
Результат | bool |
private static bool IsCtrlClickItem(object item)
{
var command = item as CommandChoice;
if (command == null || command.Message != "JumpToTool")
return false;
var displayProps = command.GetDisplayProperties();
return (displayProps.Visible && displayProps.Enabled);
}