TreeView customized to work with KryptonPage drag and drop.
Inheritance: System.Windows.Forms.TreeView, IDragTargetProvider
Beispiel #1
0
            /// <summary>
            /// Release unmanaged and optionally managed resources.
            /// </summary>
            /// <param name="disposing">Called from Dispose method.</param>
            protected override void Dispose(bool disposing)
            {
                if (disposing)
                {
                    _treeView = null;
                }

                base.Dispose(disposing);
            }
            /// <summary>
            /// Release unmanaged and optionally managed resources.
            /// </summary>
            /// <param name="disposing">Called from Dispose method.</param>
            protected override void Dispose(bool disposing)
            {
                if (disposing)
                    _treeView = null;

                base.Dispose(disposing);
            }
Beispiel #3
0
 /// <summary>
 /// Initialize a new instance of the DragTargetTreeViewTransfer class.
 /// </summary>
 /// <param name="rect">Rectangle for hot and draw areas.</param>
 /// <param name="navigator">Control instance for drop.</param>
 public DragTargetTreeViewTransfer(Rectangle rect,
                                   PageDragTreeView treeView)
     : base(rect, rect, rect, DragTargetHint.Transfer, KryptonPageFlags.All)
 {
     _treeView = treeView;
 }
 /// <summary>
 /// Initialize a new instance of the DragTargetTreeViewTransfer class.
 /// </summary>
 /// <param name="rect">Rectangle for hot and draw areas.</param>
 /// <param name="navigator">Control instance for drop.</param>
 public DragTargetTreeViewTransfer(Rectangle rect,
                                   PageDragTreeView treeView)
     : base(rect, rect, rect, DragTargetHint.Transfer, KryptonPageFlags.All)
 {
     _treeView = treeView;
 }