|
@@ -57,19 +57,19 @@ namespace DataSimulation.Forms.EditForms
|
|
|
.UseExportImg()
|
|
|
.UseExportXlsx()
|
|
|
.UseExportCsv()
|
|
|
- .UseFlightLine(res =>
|
|
|
- {
|
|
|
- (bool isShowPopup, XtraUserControl frm) = res;
|
|
|
- if (isShowPopup)
|
|
|
- {
|
|
|
- DxHelper.PopupHelper.ShowPopup(frm, mapControl, 400);
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
+ //.UseFlightLine(res =>
|
|
|
+ //{
|
|
|
+ // (bool isShowPopup, XtraUserControl frm) = res;
|
|
|
+ // if (isShowPopup)
|
|
|
+ // {
|
|
|
+ // DxHelper.PopupHelper.ShowPopup(frm, mapControl, 400);
|
|
|
+ // }
|
|
|
+ // else
|
|
|
+ // {
|
|
|
|
|
|
- DxHelper.PopupHelper.HidePopup(frm);
|
|
|
- }
|
|
|
- })
|
|
|
+ // DxHelper.PopupHelper.HidePopup(frm);
|
|
|
+ // }
|
|
|
+ //})
|
|
|
.SetMapLayerType(null)
|
|
|
.UseDrawRect(rect =>
|
|
|
{
|
|
@@ -77,15 +77,12 @@ namespace DataSimulation.Forms.EditForms
|
|
|
});
|
|
|
|
|
|
var hjList = await SimulationCache.GetAllAsync();
|
|
|
- // this.txtHj.UseDefault();
|
|
|
- // this.txtHj.SetData(hjList, nameof(SimulationInfo.SimulationName));
|
|
|
this.txtHj.Properties.DataSource = hjList;
|
|
|
this.txtHj.Properties.ValueMember = nameof(SimulationInfo);
|
|
|
// this.txtHj.Properties.KeyMember = nameof(SimulationInfo.CreateTime);
|
|
|
this.txtHj.Properties.DisplayMember = nameof(SimulationInfo.SimulationName);
|
|
|
this.txtHj.SetSearchGridLookUpEditMultiSelected<SimulationInfo>();
|
|
|
|
|
|
-
|
|
|
using (SimulationContext db = new SimulationContext())
|
|
|
{
|
|
|
var sats = await db.SatInfos.ToListAsync();
|
|
@@ -235,7 +232,6 @@ namespace DataSimulation.Forms.EditForms
|
|
|
var fpoinits = simulationPonitInfo.Select(s => new FlightData(s.SimulationLon, s.SimulationLat));
|
|
|
flinfo.flights.AddRange(fpoinits);
|
|
|
flightInfos.Add(flinfo);
|
|
|
-
|
|
|
}
|
|
|
mapControl.SetFlightLine(flightInfos);
|
|
|
}
|