예제 #1
0
        public void SetDataSource(string dsType)
        {
            this.dsType = dsType;

            int nodesCount = 0;

            if (dsType == "conflict")
            {
                grpHeader.Text = "ID重复的节点";
                nodesCount     = MyTrees.GetIdConflictNodesCount();
            }
            else if (dsType == "leaf")
            {
                grpHeader.Text = "孤立的叶子节点";
                nodesCount     = MyTrees.GetLeafAloneNodesCount();
            }
            else if (dsType == "ring")
            {
                grpHeader.Text = "构成闭环的节点";
                nodesCount     = MyTrees.GetRingNodesCount();
            }

            pager.Init(nodesCount);
        }