コード例 #1
0
 void FinishDrag(bool delete)
 {
     Widget.DragEnd        -= HandleWidgetDragEnd;
     Widget.DragDataGet    -= HandleWidgetDragDataGet;
     Widget.DragFailed     -= HandleDragFailed;
     Widget.DragDataDelete -= HandleDragDataDelete;
     Widget.DragBegin      -= HandleDragBegin;
     eventSink.OnDragFinished(new DragFinishedEventArgs(delete));
 }
コード例 #2
0
 void FinishDrag(bool delete)
 {
     EventsRootWidget.DragEnd        -= HandleWidgetDragEnd;
     EventsRootWidget.DragDataGet    -= HandleWidgetDragDataGet;
     EventsRootWidget.DragFailed     -= HandleDragFailed;
     EventsRootWidget.DragDataDelete -= HandleDragDataDelete;
     EventsRootWidget.DragBegin      -= HandleDragBegin;        // This event is subscribed only when manualy starting a drag
     ApplicationContext.InvokeUserCode(delegate {
         eventSink.OnDragFinished(new DragFinishedEventArgs(delete));
     });
 }
コード例 #3
0
ファイル: WidgetBackend.cs プロジェクト: joncham/xwt
 void FinishDrag(bool delete)
 {
     Widget.DragEnd        -= HandleWidgetDragEnd;
     Widget.DragDataGet    -= HandleWidgetDragDataGet;
     Widget.DragFailed     -= HandleDragFailed;
     Widget.DragDataDelete -= HandleDragDataDelete;
     Widget.DragBegin      -= HandleDragBegin;        // This event is subscribed only when manualy starting a drag
     Toolkit.Invoke(delegate {
         eventSink.OnDragFinished(new DragFinishedEventArgs(delete));
     });
 }