public CustomEdit(IntPtr handle, TreeListView 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);
 }
 public CustomEdit(IntPtr handle, TreeListView 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);
 }