예제 #1
0
        internal virtual void Update(TreeList treelist, TreeListItem parent, int level)
        {
            if (TreeList == null)
            {
                TreeList = treelist;
                Parent   = parent;

                for (var i = Cells.Count; i < TreeList.Columns.Count; i++)
                {
                    Cells.Add(new TreeListCell());
                }

                for (var i = 0; i < TreeList.Columns.Count; i++)
                {
                    Cells[i].Update(this, i);
                }

                for (var i = 0; i < Items.Count; i++)
                {
                    Items[i].Update(treelist, this, level + 1);
                }
            }
        }
예제 #2
0
 internal TreeListEditController(TreeList treelist)
 {
     this.treelist = treelist;
 }
 /// <summary>
 /// 初始化 <see cref="TreeListCheckedItemCollection"/> 类的新实例。
 /// </summary>
 /// <param name="treelist"></param>
 internal TreeListCheckedItemCollection(TreeList treelist)
 {
     _treelist = treelist;
 }
예제 #4
0
 /// <summary>
 /// 设置需要下拉显示的 <see cref="TreeList"/> 控件。
 /// </summary>
 /// <param name="treelist"></param>
 public void SetTreeList(TreeList treelist)
 {
     tree            = treelist;
     DropDownControl = treelist;
 }
예제 #5
0
 protected override void OnPopupOpened()
 {
     TreeList.Focus();
 }
 internal TreeListColumnCollection(TreeList treelist)
 {
     this.treelist = treelist;
 }
예제 #7
0
 internal void Update(TreeList treelist)
 {
     TreeList = treelist;
     Items    = new TreeListItemCollection(treelist, null, 0);
 }
예제 #8
0
 internal TreeListItemCollection(TreeList treelist, TreeListItem parent, int level)
 {
     _treelist = treelist;
     _parent   = parent;
     _level    = level;
 }
예제 #9
0
 public TreeListBound(TreeList treeList)
 {
     this.treeList = treeList;
 }
예제 #10
0
 internal TreeListRowNumberRenderEventArgs(TreeList treeList, int index, Graphics graphics, Rectangle rect)
     : base(graphics, rect)
 {
     TreeList = treeList;
     Index    = index;
 }
예제 #11
0
 internal TreeListItemCollection(TreeList treelist, TreeListItem parent, int level)
 {
     this.treelist = treelist;
     this.parent   = parent;
     this.level    = level;
 }
예제 #12
0
 internal TreeListRenderEventArgs(TreeList treelist, Graphics graphics, Rectangle rect)
     : base(graphics, rect)
 {
     TreeList = treelist;
 }
예제 #13
0
 internal ToolTipWrapper(TreeList treelist)
 {
     this.treelist = treelist;
 }
예제 #14
0
 public TreeListBound(TreeList treeList)
 {
     _treeList = treeList;
 }
 internal TreeListGroupCollection(TreeList treelist)
 {
     this.treelist = treelist;
 }
예제 #16
0
 /// <summary>
 /// 初始化 <see cref="TreeListSelectedItemCollection"/> 类的新实例。
 /// </summary>
 /// <param name="treelist"></param>
 internal TreeListSelectedItemCollection(TreeList treelist)
 {
     this.treelist = treelist;
 }