public void AddEvent(QueuedToolEventArgs args) { lock (eventQueue) { eventQueue.Enqueue(args); } OnEventQueued(); }
private void QueuedMouseDown(QueuedToolEventArgs args) { OnMouseDown(args); if (MouseDown != null) { MouseDown(this, args); } }
private void QueuedMouseMove(QueuedToolEventArgs args) { OnMouseMove(args); if (MouseMove != null) { MouseMove(this, args); } }
private void QueuedMouseUp(QueuedToolEventArgs args) { OnMouseUp(args); if (MouseUp != null) { MouseUp(this, args); } }
private void QueuedMouseHold(QueuedToolEventArgs args) { OnMouseHold(args); if (MouseHold != null) { MouseHold(this, args); } }
private void QueuedCustomEvent(QueuedToolEventArgs args) { OnCustomEvent(args); if (CustomEvent != null) { CustomEvent(this, args); } }
protected virtual void OnMouseDown(QueuedToolEventArgs args) { }
protected virtual void OnCustomEvent(QueuedToolEventArgs args) { }