示例#1
0
 public void AddEvent(QueuedToolEventArgs args)
 {
     lock (eventQueue)
     {
         eventQueue.Enqueue(args);
     }
     OnEventQueued();
 }
示例#2
0
 private void QueuedMouseDown(QueuedToolEventArgs args)
 {
     OnMouseDown(args);
     if (MouseDown != null)
     {
         MouseDown(this, args);
     }
 }
示例#3
0
 private void QueuedMouseMove(QueuedToolEventArgs args)
 {
     OnMouseMove(args);
     if (MouseMove != null)
     {
         MouseMove(this, args);
     }
 }
示例#4
0
 private void QueuedMouseUp(QueuedToolEventArgs args)
 {
     OnMouseUp(args);
     if (MouseUp != null)
     {
         MouseUp(this, args);
     }
 }
示例#5
0
 private void QueuedMouseHold(QueuedToolEventArgs args)
 {
     OnMouseHold(args);
     if (MouseHold != null)
     {
         MouseHold(this, args);
     }
 }
示例#6
0
 private void QueuedCustomEvent(QueuedToolEventArgs args)
 {
     OnCustomEvent(args);
     if (CustomEvent != null)
     {
         CustomEvent(this, args);
     }
 }
示例#7
0
 protected virtual void OnMouseDown(QueuedToolEventArgs args)
 {
 }
示例#8
0
 protected virtual void OnCustomEvent(QueuedToolEventArgs args)
 {
 }