private void ScriptEditor_DragLeave(object sender, EventArgs e)
 {
     // If a drag backup was set, restore the backup
     if (Tree_DragBackup != null)
     {
         Tree_CurrentDragObject.SetData(Tree_DragBackup);
     }
 }
Exemplo n.º 2
0
        private void TreeView_DragLeave(object sender, EventArgs e)
        {
            if (Handler == null)
            {
                return;
            }

            if (draggedNodes != null && Tree_CurrentDragObject != null && Tree_CurrentDragObject.GetDataPresent(typeof(TreeNodeAdv[])))
            {
                draggedNodes = Tree_CurrentDragObject.GetData(typeof(TreeNodeAdv[])) as TreeNodeAdv[];
                Tree_CurrentDragObject.SetData(typeof(TreeNodeAdv[]), null);
            }
        }