From 511e0f225a5e7f098c6e03eb1224ab82156f0342 Mon Sep 17 00:00:00 2001 From: Michael Oborne Date: Mon, 16 Dec 2019 07:53:56 +0800 Subject: [PATCH] GridUI: fix cross thread --- Grid/GridUI.cs | 4 ++-- Log/LogBrowse.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Grid/GridUI.cs b/Grid/GridUI.cs index c9f75dcaa6..b26c7daa99 100644 --- a/Grid/GridUI.cs +++ b/Grid/GridUI.cs @@ -570,7 +570,7 @@ private async void domainUpDown1_ValueChanged(object sender, EventArgs e) (double)NUM_Distance.Value, (double)NUM_spacing.Value, (double)NUM_angle.Value, (double)NUM_overshoot.Value, (double)NUM_overshoot2.Value, (Utilities.Grid.StartPosition)Enum.Parse(typeof(Utilities.Grid.StartPosition), CMB_startfrom.Text), false, - (float)NUM_Lane_Dist.Value, (float)NUM_leadin.Value, MainV2.comPort.MAV.cs.HomeLocation).ConfigureAwait(false); + (float)NUM_Lane_Dist.Value, (float)NUM_leadin.Value, MainV2.comPort.MAV.cs.HomeLocation); } else { @@ -578,7 +578,7 @@ private async void domainUpDown1_ValueChanged(object sender, EventArgs e) (double)NUM_Distance.Value, (double)NUM_spacing.Value, (double)NUM_angle.Value, (double)NUM_overshoot.Value, (double)NUM_overshoot2.Value, (Utilities.Grid.StartPosition)Enum.Parse(typeof(Utilities.Grid.StartPosition), CMB_startfrom.Text), false, - (float)NUM_Lane_Dist.Value, (float)NUM_leadin.Value, MainV2.comPort.MAV.cs.HomeLocation).ConfigureAwait(false); + (float)NUM_Lane_Dist.Value, (float)NUM_leadin.Value, MainV2.comPort.MAV.cs.HomeLocation); } map.HoldInvalidation = true; diff --git a/Log/LogBrowse.cs b/Log/LogBrowse.cs index da0bbbabad..411d614d06 100644 --- a/Log/LogBrowse.cs +++ b/Log/LogBrowse.cs @@ -1055,7 +1055,7 @@ void GraphItem_GetList(string fieldname, string type, DFLog dflog, DataModifer d double b = 0; DateTime screenupdate = DateTime.MinValue; double value_prev = 0; - + foreach (var item in logdata.GetEnumeratorType(type)) { b = item.lineno;