Beispiel #1
0
 private void RemoveEvent(List<MouseClickHelper.MouseEventInfo> queuedEvents, MouseClickHelper.MouseEventInfo prevEvent)
 {
     if (prevEvent == null)
         return;
     queuedEvents.Remove(prevEvent);
 }
Beispiel #2
0
 public bool IsInProximity(MouseClickHelper.MouseEventInfo another)
 {
     return MouseClickHelper.MouseEventInfo.IsInProximity(this.Position, another.Position);
 }
Beispiel #3
0
 private void FireSingleClick(MouseClickHelper.MouseEventInfo info)
 {
     this._queuedMouseUpEvents.Remove(info);
     MouseClickHelper.MouseEventInfo @event = this.FindEvent(this._queuedMouseDownEvents, info.Sender);
     if (@event == null)
         return;
     this._queuedMouseDownEvents.Remove(@event);
     if (!info.IsInProximity(@event) || this._singleClickAction == null)
         return;
     this._singleClickAction(info.Sender, info.Args);
 }