예제 #1
0
		public KeywordListNode(XmlElement el)
		{
			Text = ResNodeName("KeywordList");
			OptionPanel = 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();

			OptionPanel = new KeywordListOptionPanel(this);
		}