Ejemplo n.º 1
0
 public void CreateLabelInfoTexts(Node node)
 {
     SuspendTextChanges();
     try
     {
         Texts.Clear();
         if (node is GroupNode)
         {
             AddLabelInfoText(OperationHelper.GetMenuStringByType(((GroupNode)node).NodeType), new FilterControlFocusInfo(node, 0), Owner.OwnerControl.AppearanceGroupOperatorColor, ElementType.Group, true);
             if (node.OwnerControl.ShowGroupCommandsIcon)
             {
                 AddLabelInfoText("@*", new FilterControlFocusInfo(node, 0), Color.Empty, ElementType.NodeAction, true);
             }
             AddLabelInfoText("@+", new FilterControlFocusInfo(node, 0), Color.Empty, ElementType.NodeAdd, true);
         }
         ClauseNode clauseNode = node as ClauseNode;
         if (clauseNode != null)
         {
             AddLabelInfoText(GetDisplayText(clauseNode.FirstOperand), new FilterControlFocusInfo(clauseNode, 0), Owner.OwnerControl.AppearanceFieldNameColor, ElementType.Property, true);
             AddSpace();
             AddLabelInfoText(OperationHelper.GetMenuStringByType(clauseNode.Operation), new FilterControlFocusInfo(clauseNode, 1), Owner.OwnerControl.AppearanceOperatorColor, ElementType.Operation, true);
             AddSpace();
             AddAdditionalOperands(clauseNode);
             AddLabelInfoText("@-", new FilterControlFocusInfo(node, 0), Color.Empty, ElementType.NodeRemove, true);
         }
     }
     finally
     {
         ResumeTextChanges();
     }
     Invalidate();
 }