TreeNode.cs

// Copyright � 2007 Jeffrey Bazinet, http://www.vwd-cms.com/
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Collections;
using System.Collections.Generic;

namespace VwdCms
{
    public enum TreeNodeType
    {
        Basic,
        Container
    }

    public class TreeNode
    {
        public string Key = null;
        public string Text = null;
        public string ImageUrl = null;
        public string ToolTip = null;
        public TreeNode Parent = null;
        public TreeNodeType NodeType = TreeNodeType.Basic;
        public string NavigateUrl = null;
        public string NavigateTarget = null;
        public string CssClass = null;
        public string CheckBoxValue = null;
        public string OnClick = null;

        private Dictionarystring, TreeNode _nodes = new Dictionarystring, TreeNode();

        public Dictionarystring, TreeNode Nodes
        {
            get { return _nodes; }
            set { _nodes = value; }
        }

    }
}