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(); }
public KeywordListNode(string Name) { name = Name; color = new EditorHighlightColor(); UpdateNodeText(); OptionPanel = new KeywordListOptionPanel(this); }