Пример #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();
        }
Пример #2
0
        public KeywordListNode(string Name)
        {
            name  = Name;
            color = new EditorHighlightColor();
            UpdateNodeText();

            panel = new KeywordListOptionPanel(this);
        }
Пример #3
0
		public KeywordListNode(string Name)
		{
			name = Name;
			color = new EditorHighlightColor();
			UpdateNodeText();

			panel = new KeywordListOptionPanel(this);
		}
Пример #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();
			
		}