Пример #1
0
 private void Image_MouseMove(object sender, MouseEventArgs e)
 {
     if (_dragSurface.IsMouseMoveStartingDrag(e))
     {
         var obj = PlotClipboardData.ToDataObject(Model.Device.DeviceId, Model.Device.ActivePlot.PlotId);
         DragDrop.DoDragDrop(this, obj, DragDropEffects.Copy | DragDropEffects.Move);
     }
     else
     {
         _dragSurface.MouseMove(e);
     }
 }
Пример #2
0
 private void HistoryListView_MouseMove(object sender, MouseEventArgs e)
 {
     if (_dragSurface.IsMouseMoveStartingDrag(e))
     {
         var plots = (DataContext as IRPlotHistoryViewModel)?.SelectedPlots?.Select(x => x.Plot).ToArray();
         if (plots != null && plots.Length > 0)
         {
             var obj = PlotClipboardData.ToDataObject(plots);
             DragDrop.DoDragDrop(HistoryListView, obj, DragDropEffects.Copy | DragDropEffects.Move);
             return;
         }
     }
     _dragSurface.MouseMove(e);
 }