Пример #1
0
        private void OnPositionChanged(PositionEventArgs e)
        {
            var changed = PositionChanged;

            if (changed != null)
            {
                changed(this, e);
            }
        }
        private void OnListenerPositionChanged(object sender, PositionEventArgs e)
        {
            if (!IsListening) // ignore anything that might come in afterwards
            {
                return;
            }

            lock (_positionSync)
            {
                _lastPosition = e.Position;

                PositionChanged?.Invoke(this, e);
            }
        }
Пример #3
0
 void OnPositionChanged(PositionEventArgs e)
 {
     PositionChanged?.Invoke(this, e);
 }