Exemplo n.º 1
0
		private TreePath GetPath(BaseItem item)
		{
			Stack<object> stack = new Stack<object>();
			while (item != null)
			{
				stack.Push(item);
				item = item.Parent;
			}
			return new TreePath(stack.ToArray());
		}
Exemplo n.º 2
0
		public FolderItem(string name, BaseItem parent)
		{
			ItemPath = name;
			Parent = parent;
		}