Example #1
0
        private void MainForm_Load(object sender, EventArgs e)
        {
            this._dtEmployees = this.CreateDataTable();

            // Call the BuildTree method to build the TreeView.
            CreateTreeViewFromDataTable.BuildTree(
                this._dtEmployees, this.treeView1,
                true, "LastName", "EmployeeID", "ReportsTo");
        }
Example #2
0
        private void MainForm_Load(object sender, EventArgs e)
        {
            this._dtEmployees = this.CreateDataTable();

            // 调用 BuildTree 方法来创建 TreeView
            CreateTreeViewFromDataTable.BuildTree(
                this._dtEmployees, this.treeView1,
                true, "名字", "员工标识", "上级");
        }