static ITreeNodeData[] GetNodes(IMenuItemContext context) { if (context.CreatorObject.Guid != new Guid(MenuConstants.GUIDOBJ_ANALYZER_TREEVIEW_GUID)) { return(null); } return(RemoveAnalyzeCommand.GetNodes(context.Find <ITreeNodeData[]>())); }
public override void Execute(IMenuItemContext context) => RemoveAnalyzeCommand.DeleteNodes(GetNodes(context));