예제 #1
0
        void UpdateTOCNodeListAndRefreshTableView()
        {
            if (TOCNodeList == null)
            {
                return;
            }

            if (TOCNodeList != null && TOCNodeList.Count > 0)
            {
                var parentNode = TOCNodeList [0].ParentNode;

                while (parentNode != null)
                {
                    if (parentNode.NodeLevel == 0)
                    {
                        parentNode.Title = "Table of Contents";
                    }
                    //TOCNodeList.Insert (0, parentNode);
                    l.Add(parentNode);
                    parentNode = l [0].ParentNode;
                }
                l.AddRange(TOCNodeList);
                TOCNodeList.Clear();
                TOCNodeList.AddRange(l);
            }
            else
            {
            }

            PanelController.RefreshTOCViewData();
        }
        void UpdateTOCNodeListAndRefreshTableView()
        {
            if (TOCNodeList != null && TOCNodeList.Count > 0)
            {
                var parentNode = TOCNodeList [0].ParentNode;
                while (parentNode != null)
                {
                    TOCNodeList.Insert(0, parentNode);
                    parentNode = TOCNodeList [0].ParentNode;
                }

                var rootNode = new TOCNode();
                rootNode.Title     = "Table of Contents";
                rootNode.NodeLevel = 0;
                TOCNodeList.Insert(0, rootNode);
            }
            else
            {
            }

            PanelController.RefreshTOCViewData();
        }