|
@@ -40,7 +40,7 @@ namespace XdCxRhDW.App.UserControl
|
|
|
this.txtCapTime.DateTime = item.SigTime;
|
|
|
this.txtDtousErr1.EditValue = 1;
|
|
|
this.txtSatLocErr1.EditValue = 10000;
|
|
|
- //List<string> xlall = new List<string>();
|
|
|
+ List<string> xlall = new List<string>();
|
|
|
string mainTle = string.Empty;
|
|
|
string adjaTle = string.Empty;
|
|
|
|
|
@@ -64,8 +64,9 @@ namespace XdCxRhDW.App.UserControl
|
|
|
this.txtStationLocation1.Text = $"{station.CdbTxLon},{station.CdbTxLat}";
|
|
|
this.txtRefLocation1.Text = $"{station.RefLon},{station.RefLat}";
|
|
|
}
|
|
|
- var xlList = XlCache.GetAll();
|
|
|
- if (xlList.Count == 0) return;
|
|
|
+ var xlList = XlCache.GetAllAsync().Result;
|
|
|
+ xlall.AddRange(xlList.Select(m => m.TwoLine));
|
|
|
+ if (xlall.Count == 0) return;
|
|
|
if (cg.MainCode.HasValue && xlList.Any(m => m.SatCode == cg.MainCode.Value))
|
|
|
{
|
|
|
mainTle = xlList.First(m => m.SatCode == cg.MainCode.Value).TwoLine;
|
|
@@ -83,9 +84,10 @@ namespace XdCxRhDW.App.UserControl
|
|
|
{
|
|
|
adjaTle = xlList.First().TwoLine;
|
|
|
}
|
|
|
- txtTleMain.UseDefault().SetStringData(xlList.Select(p => p.TwoLine)).Text = mainTle;
|
|
|
- txtTleAdja.UseDefault().SetStringData(xlList.Select(p => p.TwoLine)).Text = adjaTle;
|
|
|
}
|
|
|
+
|
|
|
+ txtTleMain.UseDefault().SetStringData(xlall).Text = mainTle;
|
|
|
+ txtTleAdja.UseDefault().SetStringData(xlall).Text = adjaTle;
|
|
|
}
|
|
|
|
|
|
|