Пример #1
0
 /// <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);
 }
Пример #3
0
 /// <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;
 }
Пример #4
0
 /// <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;
 }