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