示例#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);
        }
        private void OnUpdatedEvent()
        {
            if (_groups.Any(g => !g.Updated))
            {
                return;
            }

            UpdatedEvent?.Invoke();
        }
        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();
 }