/// <summary> /// Override to handle case of improper menu in the reversal cat list tool. /// </summary> /// <param name="commandObject"></param> /// <param name="display"></param> /// <returns></returns> public override bool OnDisplayJumpToTool(object commandObject, ref UIItemDisplayProperties display) { CheckDisposed(); Command command = (Command)commandObject; string tool = Utils.XmlUtils.GetMandatoryAttributeValue(command.Parameters[0], "tool"); string toolChoice = PropTable.GetStringProperty("currentContentControl", null); if (tool == "posEdit" && toolChoice == "reversalToolReversalIndexPOS") { display.Visible = display.Enabled = false; // we're already there! return(true); } else { return(base.OnDisplayJumpToTool(commandObject, ref display)); } }