gongqiuhong 1 年之前
父节点
当前提交
53bf2ec9d1
共有 1 个文件被更改,包括 12 次插入16 次删除
  1. 12 16
      DataSimulation.Forms/EditForms/TaskEditor.cs

+ 12 - 16
DataSimulation.Forms/EditForms/TaskEditor.cs

@@ -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);
             }