using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; namespace Clifton.Windows.Forms.XmlTree { public class Node : ISupportInitialize { protected string name; protected string refName; protected bool isReadOnly; protected string text; protected bool isRequired; protected string iconFilename; protected Icon icon; protected List<Popup> parentPopupItems; protected List<Popup> popupItems; protected List<Node> nodes; public string Name { get { return name; } set { name = value; } } public string RefName { get { return refName; } set { refName = value; } } public bool IsReadOnly { get { return isReadOnly; } set { isReadOnly = value; } } public string Text { get { return text; } set { text = value; } } public bool IsRequired { get { return isRequired; } set { isRequired = value; } } public List<Popup> ParentPopupItems { get { return parentPopupItems; } } public List<Popup> PopupItems { get { return popupItems; } } public List<Node> Nodes { get { return nodes; } } public bool IsRef { get { return refName != null; } } public string IconFilename { get { return iconFilename; } set { iconFilename = value; } } public Icon Icon { get { return icon; } set { icon = value; } } public Node() { parentPopupItems = new List<Popup>(); popupItems = new List<Popup>(); nodes = new List<Node>(); } public virtual void BeginInit() { } public virtual void EndInit() { if (iconFilename != null) { icon = new Icon(iconFilename); } } } }
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)