コード例 #1
0
 public LinkedTreeView(LinkedTreeViews trees)
 {
     this.trees        = trees;
     this.AllowDrop    = true;
     this.ItemDrag    += new ItemDragEventHandler(this.handleItemDrag);
     this.DragDrop    += new DragEventHandler(this.handleDragDrop);
     this.DragOver    += new DragEventHandler(this.handleDragOver);
     this.AfterSelect += new TreeViewEventHandler(this.handleAfterSelect);
 }
コード例 #2
0
        public LinkedTreeNodes(LinkedTreeViews tree, Mapping mapping)
        {
            this.Mapping = mapping;
            this.trees   = tree;

            this.sourceNode = this.trees.SourceTree.AddNode(
                this.Mapping.source.fullMappingPath.Split('.').ToList()
                );
            this.sourceNode.MappedEnd = mapping.source;
            this.targetNode           = this.trees.TargetTree.AddNode(
                this.Mapping.target.fullMappingPath.Split('.').ToList()
                );
            this.targetNode.MappedEnd = mapping.target;
        }