src/Misc/EFTools/DesignXmlCore/VirtualTreeGrid/UI/VirtualTreeControl.cs
/// <summary>
///     Send a QueryContinueDrag Cancel notification to all data source
///     owners so that they can clean up their own objects.
/// </summary>
Send a QueryContinueDrag Cancel notification to all data source
owners so that they can clean up their own objects.
Send a QueryContinueDrag Cancel notification to all data source owners so that they can clean up their own objects .
private void ForceCancelDataSources()
        {
            var singleSource = mySingleDragSource.Branch != null;
            var multipleSources = myDragSources != null && myDragSources.Count > 0;
            if (singleSource || multipleSources)
            {
                var args = new QueryContinueDragEventArgs(0, false, DragAction.Cancel);
                DragSourceOwner owner;
                if (singleSource)
                {
                    owner = mySingleDragSource;
                    mySingleDragSource.Clear();
                    owner.OnQueryContinueDrag(args);
                }
                if (multipleSources)
                {
                    var count = myDragSources.Count;
                    for (var i = 0; i < count; ++i)
                    {
                        owner = myDragSources[i];
                        myDragSources[i].Clear();
                        args.Action = DragAction.Cancel;
                        owner.OnQueryContinueDrag(args);
                    }
                    myDragSources.Clear();
                }
            }
        }
private void ForceCancelDataSources ( ) { var singleSource = mySingleDragSource . Branch != null ; var multipleSources = myDragSources != null && myDragSources . Count > 0 ; if ( singleSource || multipleSources ) { var args = new QueryContinueDragEventArgs ( 0 , false , DragAction . Cancel ) ; DragSourceOwner owner ; if ( singleSource ) { owner = mySingleDragSource ; mySingleDragSource . Clear ( ) ; owner . OnQueryContinueDrag ( args ) ; } if ( multipleSources ) { var count = myDragSources . Count ; for ( var i = 0 ; i < count ; ++ i ) { owner = myDragSources [ i ] ; myDragSources [ i ] . Clear ( ) ; args . Action = DragAction . Cancel ; owner . OnQueryContinueDrag ( args ) ; } myDragSources . Clear ( ) ; } } }
Send a QueryContinueDrag Cancel notification to all data source
owners so that they can clean up their own objects.
Send a QueryContinueDrag Cancel notification to all data source owners so that they can clean up their own objects .
// Make sure no one refuses