An implementation of a TreeNode for inclusion within the ListTree control.
Inheritance: TreeNode, IListItem, IHtmlFactory
        /// <summary>Constructor.</summary>
        /// <param name="container">The containing div.</param>
        public MethodListView(jQueryObject container) : base(container)
        {
            // Setup initial conditions.
            events = Common.Events;

            // Create the list-tree.
            listView = new ListTreeView(jQuery.Select(CssSelectors.MethodListContent));
            listView.Slide.Duration = SidebarView.SlideDuration;

            // Construct the data-model root.
            rootNode = new ListItem();
            listView.RootNode = rootNode;

            // Construct buttons.
            InsertButtons();
        }
        /// <summary>Constructor.</summary>
        public SidebarController()
        {
            // Setup initial conditions.
            events = Common.Events;
            listRoot = new ListItem();
            view = Common.Shell.Sidebar;
            view.RootList.RootNode = listRoot;

            // Create child controllers.
            methodListController = new MethodListController();

            // Insert the 'Add Package' list-item.
            listRoot.AddChild(new CustomListItem(CustomListItemType.AddPackage));

            // Wire up events.
            listRoot.ChildSelectionChanged += OnChildSelectionChanged;
            events.AddPackage += OnAddPackageRequest;
        }