using System; using System.Windows.Forms; namespace Clifton.Windows.Forms.XmlTree { public class PlaceholderInstance : IXtreeNode { protected string name; protected IXtreeNode parent; /// <summary> /// Gets/sets parent /// </summary> public IXtreeNode Parent { get { return parent; } set { parent = value; } } /// <summary> /// Gets/sets name /// </summary> public string Name { get { return name; } set { name = value; } } public int IconIndex { get { return 0; } } public int SelectedIconIndex { get { return 0; } } public override string ToString() { return name; } public bool AddNode(IXtreeNode parentInstance, string tag) { return true; } public bool DeleteNode(IXtreeNode parentInstance) { return true; } public void AutoDeleteNode(IXtreeNode parentInstance) { } public void Select(TreeNode tn) { } public bool IsEnabled(string tag, bool defaultValue) { return defaultValue; } public void MoveTo(IXtreeNode newParent, IXtreeNode oldParent, int idx) { } public int Index(object obj) { return -1; } } }
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)