private void Manager_AfterMessageReceived(MessageEventArgs e) { if (MS43AnalogValues.CanParse(e.Message)) { var av = new MS43JMGAnalogValues(); av.Parse(e.Message); Gauges.ForEach(g => g.Update(av)); } }
private async void Manager_AfterMessageReceived(MessageEventArgs e) { if (MS43AnalogValues.CanParse(e.Message)) { var av = new MS43BBAnalogValues(); av.Parse(e.Message); await Dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, () => { Gauges.ForEach(g => g.Update(av)); }); } }
private void Manager_AfterMessageReceived(MessageEventArgs e) { if (testTimer?.IsEnabled == true) { return; } if (MS43AnalogValues.CanParse(e.Message)) { var av = new MS43JMGAnalogValues(); av.Parse(e.Message); Gauges.ForEach(g => g.Update(av)); } }