public SchemeNode(XmlElement el, bool readChildren) { content = el.OuterXml; name = el.Attributes["name"].InnerText; if (el.Attributes["extensions"] != null) { extensions = el.Attributes["extensions"].InnerText.Split('|'); } UpdateNodeText(); OptionPanel = new SchemeOptionPanel(this); if (!readChildren) return; envNode = new EnvironmentNode(el["Environment"]); digitsNode = new DigitsNode(el["Digits"]); propNode = new PropertiesNode(el["Properties"]); rulesetsNode = new RuleSetsNode(el); Nodes.Add(envNode); Nodes.Add(digitsNode); Nodes.Add(propNode); Nodes.Add(rulesetsNode); }
public SchemeNode(XmlElement el, bool readChildren) { content = el.OuterXml; name = el.Attributes["name"].InnerText; if (el.Attributes["extensions"] != null) { extensions = el.Attributes["extensions"].InnerText.Split('|'); } UpdateNodeText(); OptionPanel = new SchemeOptionPanel(this); if (!readChildren) { return; } envNode = new EnvironmentNode(el["Environment"]); digitsNode = new DigitsNode(el["Digits"]); propNode = new PropertiesNode(el["Properties"]); rulesetsNode = new RuleSetsNode(el); Nodes.Add(envNode); Nodes.Add(digitsNode); Nodes.Add(propNode); Nodes.Add(rulesetsNode); }
public EnvironmentOptionPanel(EnvironmentNode parent) : base(parent) { SetupFromXmlFile(System.IO.Path.Combine(PropertyService.DataDirectory, @"resources\panels\HighlightingEditor\Environment.xfrm")); button = (Button)ControlDictionary["button"]; button.Click += new EventHandler(EditButtonClicked); listView = (ListView)ControlDictionary["listView"]; listView.Font = new Font(listView.Font.FontFamily, 10); }