예제 #1
0
 public TreeListViewItemEditControlHandle(CTreeListView treelistview, Control control, CustomEdit customedit)
 {
     _control      = control;
     _treelistview = treelistview;
     _customedit   = customedit;
     if (!control.Created)
     {
         control.CreateControl();
     }
     AssignHandle(control.Handle);
 }
예제 #2
0
        /// <summary>
        /// Remove an item from the collection and the TreeListView
        /// </summary>
        /// <param name="index"></param>
        public new void RemoveAt(int index)
        {
            CTreeListView treelistview = this.TreeListView;

            if (treelistview != null)
            {
                treelistview.BeginUpdate();
            }
            RemoveAtInternal(index);
            if (treelistview != null)
            {
                treelistview.EndUpdate();
            }
        }
예제 #3
0
        /// <summary>
        /// Remove an item from the collection and the TreeListView
        /// </summary>
        /// <param name="item"></param>
        public virtual void Remove(TreeListViewItem item)
        {
            CTreeListView treelistview = this.TreeListView;

            if (treelistview != null)
            {
                treelistview.BeginUpdate();
            }
            RemoveInternal(item);
            if (treelistview != null)
            {
                treelistview.EndUpdate();
            }
        }
예제 #4
0
        /// <summary>
        /// Removes each node of the collection
        /// </summary>
        public new void Clear()
        {
            CTreeListView treelistview = this.TreeListView;

            if (treelistview != null)
            {
                treelistview.BeginUpdate();
            }
            ClearInternal();
            if (treelistview != null)
            {
                treelistview.EndUpdate();
            }
        }
예제 #5
0
 public CustomEdit(IntPtr handle, CTreeListView treelistview, Control editor)
 {
     _treelistview = treelistview;
     _informations = _treelistview.EditedItem;
     if (editor == null)
     {
         _editor = new TextBox();
     }
     else
     {
         _editor = editor;
     }
     _editor.Hide();
     if (!_treelistview.Controls.Contains(_editor))
     {
         _treelistview.Controls.Add(_editor);
     }
     _editorhandle = new TreeListViewItemEditControlHandle(_treelistview, _editor, this);
     AssignHandle(handle);
 }
예제 #6
0
 /// <summary>
 /// Create a collection in the root of a TreeListView (first level items)
 /// </summary>
 /// <param name="owner"></param>
 public TreeListViewItemCollection(CTreeListView owner)
 {
     _owner = owner;
 }
 /// <summary>
 /// Create a new instance of a SelectedTreeListViewItemCollection
 /// </summary>
 /// <param name="TreeListView"></param>
 public SelectedTreeListViewItemCollection(CTreeListView TreeListView) : base((ListView)TreeListView)
 {
 }