示例#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);
            }
        }
示例#2
0
 void OnPositionChanged(PositionEventArgs e) => PositionChanged?.Invoke(this, e);
示例#3
0
 protected virtual void OnPositionChanged(PositionEventArgs e)
 => PositionChanged?.Invoke(this, e);