Example #1
0
        private void OnListenerPositionChanged(object sender, PositionEventArgs e)
        {
            if (!IsListening)             // ignore anything that might come in afterwards
            {
                return;
            }

            lock (positionSync)
            {
                lastPosition = e.Position;
                OnPositionChanged(e);
            }
        }
Example #2
0
 void OnPositionChanged(PositionEventArgs e) => PositionChanged?.Invoke(this, e);
Example #3
0
 protected virtual void OnPositionChanged(PositionEventArgs e)
 => PositionChanged?.Invoke(this, e);