Ejemplo n.º 1
0
        public KeywordListNode(XmlElement el)
        {
            Text  = ResNodeName("KeywordList");
            panel = new KeywordListOptionPanel(this);

            if (el == null)
            {
                return;
            }

            color = new EditorHighlightColor(el);

            XmlNodeList keys = el.GetElementsByTagName("Key");

            foreach (XmlElement node in keys)
            {
                if (node.Attributes["word"] != null)
                {
                    words.Add(node.Attributes["word"].InnerText);
                }
            }

            if (el.Attributes["name"] != null)
            {
                name = el.Attributes["name"].InnerText;
            }
            UpdateNodeText();
        }
Ejemplo n.º 2
0
        public KeywordListNode(string Name)
        {
            name  = Name;
            color = new EditorHighlightColor();
            UpdateNodeText();

            panel = new KeywordListOptionPanel(this);
        }
Ejemplo n.º 3
0
		public KeywordListNode(string Name)
		{
			name = Name;
			color = new EditorHighlightColor();
			UpdateNodeText();

			panel = new KeywordListOptionPanel(this);
		}
Ejemplo n.º 4
0
		public KeywordListNode(XmlElement el)
		{
			Text = ResNodeName("KeywordList");
			panel = new KeywordListOptionPanel(this);
			
			if (el == null) return;

			color = new EditorHighlightColor(el);
			
			XmlNodeList keys = el.GetElementsByTagName("Key");
			foreach (XmlElement node in keys) {
				if (node.Attributes["word"] != null) words.Add(node.Attributes["word"].InnerText);
			}
			
			if (el.Attributes["name"] != null) {
				name = el.Attributes["name"].InnerText;
			}
			UpdateNodeText();
			
		}