//zhangkaijun private void BuildTabPageForOne(ResourceType _resType) { TabPage _page = new TabPage(); NeuSplitter _splitter = new NeuSplitter(); NeuPanel _panel1 = new NeuPanel(); _page.Controls.Add(_panel1); _page.Controls.Add(_splitter); _page.Name = _resType.Id; _page.Text = _resType.Name; _page.UseVisualStyleBackColor = true; _page.ImageIndex = 8; _splitter.Cursor = Cursors.HSplit; _splitter.Dock = DockStyle.Bottom; _panel1.Dock = DockStyle.Fill; NeuTreeListView _treeList = GenTreeListView(); _treeList.SmallImageList = this.imageList1; _treeList.CheckBoxes = CheckBoxesTypes.Simple; _treeList.ItemChecked += new ItemCheckedEventHandler(_treeList_ItemChecked); _resTreeListMap.Add(_resType.Id, _treeList); _panel1.Controls.Add(_treeList); this.nTabControl1.TabPages.Add(_page); }
private void BuildTabPage(ResourceType _resType) { TabPage _page = new TabPage(); NeuPanel _panel = new NeuPanel(); NeuSplitter _splitter = new NeuSplitter(); NeuPanel _panel1 = new NeuPanel(); NeuGroupBox _groupBox = new NeuGroupBox(); _page.Controls.Add(_panel1); _page.Controls.Add(_splitter); _page.Controls.Add(_panel); _page.Name = _resType.Id; _page.Text = _resType.Name; _page.UseVisualStyleBackColor = true; _page.ImageIndex = 8; _panel.Dock = DockStyle.Bottom; _panel.Height = 100; _panel.Controls.Add(_groupBox); _groupBox.Text = "选择权限"; _groupBox.Dock = DockStyle.Fill; _resGroupBoxMap.Add(_resType.Id, _groupBox); _panel.Controls.Add(_groupBox); _splitter.Cursor = Cursors.HSplit; _splitter.Dock = DockStyle.Bottom; _panel1.Dock = DockStyle.Fill; NeuTreeListView _treeList = GenTreeListView(); _treeList.SmallImageList = this.imageList1; _resTreeListMap.Add(_resType.Id, _treeList); _panel1.Controls.Add(_treeList); CreateSelectOptions(_resType.Id, _groupBox); this.nTabControl1.TabPages.Add(_page); }