Exemple #1
0
 void treeView_DragOver(object sender, System.Windows.Forms.DragEventArgs e)
 {
     DragOver?.Invoke(this, new Gui.Controls.DragEventArgs(
                          e.Data, e.KeyState, e.X, e.Y,
                          (Gui.Controls.DragDropEffects)e.AllowedEffect,
                          (Gui.Controls.DragDropEffects)e.Effect));
 }
Exemple #2
0
        /// <inheritdoc/>
        HRESULT IDropTarget.DragOver(MouseButtonState grfKeyState, POINT pt, ref DROPEFFECT pdwEffect)
        {
            System.Diagnostics.Debug.WriteLine($"IDropTarget.DragOver: effect={pdwEffect}");
            var drgevent = CreateDragEventArgs(null, grfKeyState, pt, pdwEffect);

            DragOver?.Invoke(this, drgevent);
            lastEffect = pdwEffect = drgevent.Effect;
            return(HRESULT.S_OK);
        }
Exemple #3
0
        internal protected void RaiseDragEvent(string ev, DragEventArgs e)
        {
            switch (ev)
            {
            case "DragEnter":
                DragEnter?.Invoke(this, e);
                break;

            case "DragOver":
                DragOver?.Invoke(this, e);
                break;

            case "DragLeave":
                DragLeave?.Invoke(this, e);
                break;

            case "Drop":
                Drop?.Invoke(this, e);
                break;

            case "PreviewDragEnter":
                PreviewDragEnter?.Invoke(this, e);
                break;

            case "PreviewDragOver":
                PreviewDragOver?.Invoke(this, e);
                break;

            case "PreviewDragLeave":
                PreviewDragLeave?.Invoke(this, e);
                break;

            case "PreviewDrop":
                PreviewDrop?.Invoke(this, e);
                break;

            default:
                break;
            }
        }
Exemple #4
0
 protected virtual void OnDragOver(object?sender, DragEventArgs e)
 => DragOver?.Invoke(sender, e);
Exemple #5
0
 public void SendDragOver(DragEventArgs args)
 {
     DragOverCommand?.Execute(DragOverCommandParameter);
     DragOver?.Invoke(this, args);
 }
Exemple #6
0
 private void Edit_DragOver(object sender, DragEventArgs e)
 {
     DragOver?.Invoke(sender, e);
 }
Exemple #7
0
 public void OnDragOver(DragEventArgs e) => DragOver?.Invoke(e);
Exemple #8
0
 void treeView_DragOver(object sender, DragEventArgs e)
 {
     DragOver?.Invoke(this, e);
 }
 internal void HandleDragOver(object sender, DragEventArgs e)
 {
     DragOver?.Invoke(sender, e);
 }
Exemple #10
0
 protected virtual void OnDragOver(FilesDragEventArgs e)
 {
     DragOver?.Invoke(this, e);
 }
 public void OnDragOver(DragEventArgs dragEventArgs)
 {
     DragOver?.Invoke(dragEventArgs);
 }