Exemplo n.º 1
0
 public TagPainter(EditorConfig config, StandardNodeDimensionsAndColor dimensions, XmlNode node, bool isClosingTagVisible)
 {
     this.config              = config;
     this.dimensions          = dimensions;
     this.node                = node;
     this.isClosingTagVisible = isClosingTagVisible;
 }
Exemplo n.º 2
0
        public XmlElementStandardNode(XmlNode xmlNode, XmlEditor xmlEditor, EditorContext editorContext) : base(xmlNode, xmlEditor, editorContext)
        {
            var IsEndTagVisible    = this.XmlRules.HasEndTag(xmlNode);
            var colorTagBackground = this.XmlRules.NodeColor(this.XmlNode);

            this.nodeDimensions = new StandardNodeDimensionsAndColor(editorContext.EditorConfig, colorTagBackground);
            this.startTag       = new StandardNodeStartTagPainter(this.Config, this.nodeDimensions, xmlNode, IsEndTagVisible);
            if (IsEndTagVisible)
            {
                this.endTag = new StandardNodeEndTagPainter(this.Config, this.nodeDimensions, xmlNode, IsEndTagVisible);
            }
        }
 public StandardNodeStartTagPainter(EditorConfig config, StandardNodeDimensionsAndColor dimensions, XmlNode node, bool isClosingTagVisible) : base(config, dimensions, node, isClosingTagVisible)
 {
 }