Commit e3a046aa authored by 潘栩锋's avatar 潘栩锋 🚴

修复 gageinfo 异常

parent 4fe9dfa2
......@@ -88,7 +88,10 @@ namespace FLY.Thick.Base.UI
var reponse = retData as GetGageInfoResponse;
int index = (int)asyncContext;
SeriesInfos[index].Datas.Clear();
if (reponse.Data != null)
{
SeriesInfos[index].Datas.AddRange(reponse.Data);
}
SeriesInfos[index].UpdateTime = reponse.UpdateTime;
DataBindAll();
......@@ -159,7 +162,10 @@ namespace FLY.Thick.Base.UI
var reponse = retData as GetGageInfoResponse;
int index = (int)asyncContext;
SeriesInfos[index].Datas.Clear();
if (reponse.Data != null)
{
SeriesInfos[index].Datas.AddRange(reponse.Data);
}
SeriesInfos[index].UpdateTime = reponse.UpdateTime;
DataBindAll();
......
......@@ -81,6 +81,7 @@ namespace FLY.Thick.Base.Server
scanMotion.EndEvent += GM_GageInfo_EndEvent;
scanMotion.PropertyChanged += GM_GageInfo_PropertyChanged;
UpdateTimes = new DateTime[2];
updateDataOK();
initParam.PropertyChanged += new PropertyChangedEventHandler(initParam_PropertyChanged);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment