예제 #1
0
 public void UpdatePosition(string Projection,
                            double North, double East, double Altitude)
 {
     Position = new GPSPosition(Projection, North, East, Altitude);
     PositionUpdatedEvent?.Invoke(Position);
     UpdatedEvent?.Invoke();
 }
예제 #2
0
        public async Task UpdateAsync(params T[] items)
        {
            Throw.IfNullOrEmpty(() => items);

            await _dataProviderWrapper.UpdateAsync(items);

            UpdatedEvent?.Invoke(items);
        }
예제 #3
0
        protected override void Append(log4net.Core.LoggingEvent loggingEvent)
        {
            // Append the event as usual
            base.Append(loggingEvent);

            // Then alert the Updated event that an event has occurred
            Updated?.Invoke(this, loggingEvent.RenderedMessage);
            UpdatedEvent?.Invoke(this, loggingEvent);
        }
예제 #4
0
        private void OnUpdatedEvent()
        {
            if (_groups.Any(g => !g.Updated))
            {
                return;
            }

            UpdatedEvent?.Invoke();
        }
예제 #5
0
        private void OnUpdatedEvent()
        {
            if (tags.Any(t => !t.Updated))
            {
                return;
            }

            Updated = true;
            UpdatedEvent?.Invoke();
        }
예제 #6
0
 public override void WriteLine(string format, params object[] arg)
 {
     UpdatedEvent?.Invoke();
     base.WriteLine(format, arg);
 }
예제 #7
0
 public override void WriteLine(string format, object arg0, object arg1, object arg2)
 {
     UpdatedEvent?.Invoke();
     base.WriteLine(format, arg0, arg1, arg2);
 }
예제 #8
0
 public override void WriteLine(string value)
 {
     UpdatedEvent?.Invoke();
     base.WriteLine(value);
 }
예제 #9
0
 public override void WriteLine()
 {
     UpdatedEvent?.Invoke();
     base.WriteLine();
 }
예제 #10
0
 public void OnUpdated()
 {
     UpdatedEvent?.Invoke();
 }