private bool DisplayConvertLexEntry(object commandObject)
{
// We may not have any data set up yet. See LT-9712.
if (Cache == null || m_dataEntryForm == null || m_dataEntryForm.Root == null)
return false;
Command command = (Command)commandObject;
string className = XmlUtils.GetManditoryAttributeValue(command.Parameters[0], "className");
if (className != m_dataEntryForm.Root.ClassName)
return false;
string restrictToTool = XmlUtils.GetOptionalAttributeValue(command.Parameters[0], "restrictToTool");
if (restrictToTool != null && restrictToTool != m_mediator.PropertyTable.GetStringProperty("currentContentControl", String.Empty))
return false;
return m_dataEntryForm.Root is ILexEntry;
}