/// <summary> /// Initializes a new instance of a <see cref="CustomDragDrop"/> object. /// </summary> /// <param name="tree"></param> public CustomDragDrop(C1TreeView tree) { Tree = tree; Effect = DragDropEffect.Move; tree.DragDrop += HandleDragDrop; tree.DragStart += HandleDragStart; }
void ShowPersonOnTree(Person p, C1TreeView t) { t.Items.Clear(); AddPersonToTree(p, t.Items); }
/// <summary> /// Initializes a new instance of a <see cref="CustomDragDrop"/> object. /// </summary> /// <param name="tree"></param> public CustomDragDrop(C1TreeView tree) { Tree = tree; Mark = new DropMark(); Effect = DragDropEffect.Move; }
/// <summary> /// The service of search a node by the value. /// </summary> /// <param name="tree"></param> public AutoSearchService(C1TreeView tree) { _tree = tree; DFS = true; ComparisonType = ComparisonType.StartsWith; }