Browse Source

地轨 时差中心 初值计算

zhangzhiming 1 year ago
parent
commit
3bc66e9089

+ 5 - 0
XzXdDw.App/TestData.cs

@@ -35,6 +35,11 @@ namespace XzXdDw.App
             }
         }
 
+        public static string tleleo1 = "1 43170U 18011B   24009.70815711  .00003439  00000-0  32010-3 0  9999;2 43170  34.9959 138.8050 0005557 135.6481 224.4670 14.93841912324625";
+        public static string tleleo2 = "1 43171U 18011C   24009.76940483  .00003593  00000-0  33439-3 0  9998;2 43171  34.9949 138.2428 0003116 182.1384 177.9309 14.93840901324703";
+
+        public readonly static DateTime leoTime = new DateTime(2024, 1, 11, 11, 18, 0, 0);
+
         //MUOS2-172°
         public static string TleMain = "1 39206U 13036A   23202.42807559  .00000070  00000+0  00000+0 0  9997;2 39206   3.1191  34.4939 0054311 175.9148  65.5730  1.00271529 36651";
 

+ 16 - 3
XzXdDw.App/UserControl/CtrlPosXz.cs

@@ -35,6 +35,10 @@ namespace XzXdDw.App.UserControl
     /// </summary>
     public partial class CtrlPosXz : DevExpress.XtraEditors.XtraUserControl
     {
+        /// <summary>
+        /// 时差初值 范围计算
+        /// </summary>
+        DtSXLParam dtsxlctrl = null;
 
         public CtrlPosXz()
         {
@@ -91,7 +95,10 @@ namespace XzXdDw.App.UserControl
                //.UseExportCsv()
                .UseDrawRect(rect =>
                {
-                   (double startLon, double startLat, double centerLon, double centerLat, double endLon, double endLat, double lonRange, double latRange) = rect;
+                   if (dtsxlctrl != null)
+                   {
+                       dtsxlctrl.rect = rect;
+                   }
                });
 
 
@@ -110,8 +117,14 @@ namespace XzXdDw.App.UserControl
                         //参考星地的
                     })
                     .AddRectMenu<PosRes>("时差初值预估", SvgHelper.LoadFromFile("Image\\初值预估.svg"), items =>
-                    { 
-                        //参考星地的
+                    {
+                        var rect = mapControl1.GetCurrentRect();
+                        if (dtsxlctrl == null)
+                        {
+                            dtsxlctrl = new DtSXLParam();
+                        }
+                        dtsxlctrl.rect = rect;
+                        PopupHelper.ShowPopup(dtsxlctrl, mapControl1, mapControl1.Width / 4);
                     });
 
 

+ 299 - 0
XzXdDw.App/UserControl/DtSXLParam.Designer.cs

@@ -0,0 +1,299 @@
+
+namespace XdCxRhDW.App.UserControl
+{
+    partial class DtSXLParam
+    {
+        /// <summary> 
+        /// 必需的设计器变量。
+        /// </summary>
+        private System.ComponentModel.IContainer components = null;
+
+        /// <summary> 
+        /// 清理所有正在使用的资源。
+        /// </summary>
+        /// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
+        protected override void Dispose(bool disposing)
+        {
+            if (disposing && (components != null))
+            {
+                components.Dispose();
+            }
+            base.Dispose(disposing);
+        }
+
+        #region 组件设计器生成的代码
+
+        /// <summary> 
+        /// 设计器支持所需的方法 - 不要修改
+        /// 使用代码编辑器修改此方法的内容。
+        /// </summary>
+        private void InitializeComponent()
+        {
+            this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl();
+            this.mainTle = new DevExpress.XtraEditors.TextEdit();
+            this.adajTle = new DevExpress.XtraEditors.TextEdit();
+            this.captime = new DevExpress.XtraEditors.DateEdit();
+            this.sxdtcetner = new DevExpress.XtraEditors.TextEdit();
+            this.sxdtrange = new DevExpress.XtraEditors.TextEdit();
+            this.btnOk = new DevExpress.XtraEditors.SimpleButton();
+            this.btnClose = new DevExpress.XtraEditors.SimpleButton();
+            this.Root = new DevExpress.XtraLayout.LayoutControlGroup();
+            this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem();
+            this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem();
+            this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem();
+            this.layoutControlItem7 = new DevExpress.XtraLayout.LayoutControlItem();
+            this.layoutControlItem11 = new DevExpress.XtraLayout.LayoutControlItem();
+            this.emptySpaceItem1 = new DevExpress.XtraLayout.EmptySpaceItem();
+            this.layoutControlItem12 = new DevExpress.XtraLayout.LayoutControlItem();
+            this.layoutControlItem8 = new DevExpress.XtraLayout.LayoutControlItem();
+            ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit();
+            this.layoutControl1.SuspendLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.mainTle.Properties)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.adajTle.Properties)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.captime.Properties)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.captime.Properties.CalendarTimeProperties)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.sxdtcetner.Properties)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.sxdtrange.Properties)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.Root)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem11)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem12)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).BeginInit();
+            this.SuspendLayout();
+            // 
+            // layoutControl1
+            // 
+            this.layoutControl1.Controls.Add(this.mainTle);
+            this.layoutControl1.Controls.Add(this.adajTle);
+            this.layoutControl1.Controls.Add(this.captime);
+            this.layoutControl1.Controls.Add(this.sxdtcetner);
+            this.layoutControl1.Controls.Add(this.sxdtrange);
+            this.layoutControl1.Controls.Add(this.btnOk);
+            this.layoutControl1.Controls.Add(this.btnClose);
+            this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill;
+            this.layoutControl1.Location = new System.Drawing.Point(0, 0);
+            this.layoutControl1.Name = "layoutControl1";
+            this.layoutControl1.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new System.Drawing.Rectangle(1222, 123, 1300, 800);
+            this.layoutControl1.Root = this.Root;
+            this.layoutControl1.Size = new System.Drawing.Size(926, 707);
+            this.layoutControl1.TabIndex = 1;
+            this.layoutControl1.Text = "layoutControl1";
+            // 
+            // mainTle
+            // 
+            this.mainTle.Location = new System.Drawing.Point(11, 44);
+            this.mainTle.Margin = new System.Windows.Forms.Padding(4);
+            this.mainTle.Name = "mainTle";
+            this.mainTle.Size = new System.Drawing.Size(904, 48);
+            this.mainTle.StyleController = this.layoutControl1;
+            this.mainTle.TabIndex = 4;
+            // 
+            // adajTle
+            // 
+            this.adajTle.Location = new System.Drawing.Point(11, 129);
+            this.adajTle.Margin = new System.Windows.Forms.Padding(4);
+            this.adajTle.Name = "adajTle";
+            this.adajTle.Size = new System.Drawing.Size(904, 48);
+            this.adajTle.StyleController = this.layoutControl1;
+            this.adajTle.TabIndex = 5;
+            // 
+            // captime
+            // 
+            this.captime.EditValue = null;
+            this.captime.Location = new System.Drawing.Point(11, 214);
+            this.captime.Margin = new System.Windows.Forms.Padding(4);
+            this.captime.Name = "captime";
+            this.captime.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
+            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
+            this.captime.Properties.CalendarTimeProperties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
+            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
+            this.captime.Size = new System.Drawing.Size(904, 48);
+            this.captime.StyleController = this.layoutControl1;
+            this.captime.TabIndex = 6;
+            // 
+            // sxdtcetner
+            // 
+            this.sxdtcetner.Location = new System.Drawing.Point(11, 299);
+            this.sxdtcetner.Margin = new System.Windows.Forms.Padding(4);
+            this.sxdtcetner.Name = "sxdtcetner";
+            this.sxdtcetner.Size = new System.Drawing.Size(462, 48);
+            this.sxdtcetner.StyleController = this.layoutControl1;
+            this.sxdtcetner.TabIndex = 10;
+            // 
+            // sxdtrange
+            // 
+            this.sxdtrange.Location = new System.Drawing.Point(477, 299);
+            this.sxdtrange.Margin = new System.Windows.Forms.Padding(4);
+            this.sxdtrange.Name = "sxdtrange";
+            this.sxdtrange.Size = new System.Drawing.Size(438, 48);
+            this.sxdtrange.StyleController = this.layoutControl1;
+            this.sxdtrange.TabIndex = 11;
+            // 
+            // btnOk
+            // 
+            this.btnOk.Location = new System.Drawing.Point(11, 351);
+            this.btnOk.Name = "btnOk";
+            this.btnOk.Size = new System.Drawing.Size(462, 44);
+            this.btnOk.StyleController = this.layoutControl1;
+            this.btnOk.TabIndex = 14;
+            this.btnOk.Text = "计算";
+            this.btnOk.Click += new System.EventHandler(this.btnOk_Click);
+            // 
+            // btnClose
+            // 
+            this.btnClose.Location = new System.Drawing.Point(477, 351);
+            this.btnClose.Name = "btnClose";
+            this.btnClose.Size = new System.Drawing.Size(438, 44);
+            this.btnClose.StyleController = this.layoutControl1;
+            this.btnClose.TabIndex = 15;
+            this.btnClose.Text = "关闭";
+            this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
+            // 
+            // Root
+            // 
+            this.Root.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True;
+            this.Root.GroupBordersVisible = false;
+            this.Root.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
+            this.layoutControlItem1,
+            this.layoutControlItem2,
+            this.layoutControlItem7,
+            this.layoutControlItem11,
+            this.emptySpaceItem1,
+            this.layoutControlItem12,
+            this.layoutControlItem8,
+            this.layoutControlItem3});
+            this.Root.Name = "Root";
+            this.Root.Size = new System.Drawing.Size(926, 707);
+            this.Root.TextVisible = false;
+            // 
+            // layoutControlItem1
+            // 
+            this.layoutControlItem1.Control = this.mainTle;
+            this.layoutControlItem1.Location = new System.Drawing.Point(0, 0);
+            this.layoutControlItem1.Name = "layoutControlItem1";
+            this.layoutControlItem1.Size = new System.Drawing.Size(908, 85);
+            this.layoutControlItem1.Text = "主星星历";
+            this.layoutControlItem1.TextLocation = DevExpress.Utils.Locations.Top;
+            this.layoutControlItem1.TextSize = new System.Drawing.Size(152, 29);
+            // 
+            // layoutControlItem2
+            // 
+            this.layoutControlItem2.Control = this.adajTle;
+            this.layoutControlItem2.Location = new System.Drawing.Point(0, 85);
+            this.layoutControlItem2.Name = "layoutControlItem2";
+            this.layoutControlItem2.Size = new System.Drawing.Size(908, 85);
+            this.layoutControlItem2.Text = "邻星星历";
+            this.layoutControlItem2.TextLocation = DevExpress.Utils.Locations.Top;
+            this.layoutControlItem2.TextSize = new System.Drawing.Size(152, 29);
+            // 
+            // layoutControlItem3
+            // 
+            this.layoutControlItem3.Control = this.captime;
+            this.layoutControlItem3.CustomizationFormText = "时间";
+            this.layoutControlItem3.Location = new System.Drawing.Point(0, 170);
+            this.layoutControlItem3.Name = "layoutControlItem3";
+            this.layoutControlItem3.Size = new System.Drawing.Size(908, 85);
+            this.layoutControlItem3.Text = "时             间";
+            this.layoutControlItem3.TextLocation = DevExpress.Utils.Locations.Top;
+            this.layoutControlItem3.TextSize = new System.Drawing.Size(152, 29);
+            // 
+            // layoutControlItem7
+            // 
+            this.layoutControlItem7.Control = this.sxdtcetner;
+            this.layoutControlItem7.Location = new System.Drawing.Point(0, 255);
+            this.layoutControlItem7.Name = "layoutControlItem7";
+            this.layoutControlItem7.Size = new System.Drawing.Size(466, 85);
+            this.layoutControlItem7.Text = "双星时差中心";
+            this.layoutControlItem7.TextLocation = DevExpress.Utils.Locations.Top;
+            this.layoutControlItem7.TextSize = new System.Drawing.Size(152, 29);
+            // 
+            // layoutControlItem11
+            // 
+            this.layoutControlItem11.Control = this.btnOk;
+            this.layoutControlItem11.Location = new System.Drawing.Point(0, 340);
+            this.layoutControlItem11.Name = "layoutControlItem11";
+            this.layoutControlItem11.Size = new System.Drawing.Size(466, 48);
+            this.layoutControlItem11.TextSize = new System.Drawing.Size(0, 0);
+            this.layoutControlItem11.TextVisible = false;
+            // 
+            // emptySpaceItem1
+            // 
+            this.emptySpaceItem1.AllowHotTrack = false;
+            this.emptySpaceItem1.Location = new System.Drawing.Point(0, 388);
+            this.emptySpaceItem1.Name = "emptySpaceItem1";
+            this.emptySpaceItem1.Size = new System.Drawing.Size(908, 301);
+            this.emptySpaceItem1.TextSize = new System.Drawing.Size(0, 0);
+            // 
+            // layoutControlItem12
+            // 
+            this.layoutControlItem12.Control = this.btnClose;
+            this.layoutControlItem12.Location = new System.Drawing.Point(466, 340);
+            this.layoutControlItem12.Name = "layoutControlItem12";
+            this.layoutControlItem12.Size = new System.Drawing.Size(442, 48);
+            this.layoutControlItem12.TextSize = new System.Drawing.Size(0, 0);
+            this.layoutControlItem12.TextVisible = false;
+            // 
+            // layoutControlItem8
+            // 
+            this.layoutControlItem8.Control = this.sxdtrange;
+            this.layoutControlItem8.Location = new System.Drawing.Point(466, 255);
+            this.layoutControlItem8.Name = "layoutControlItem8";
+            this.layoutControlItem8.Size = new System.Drawing.Size(442, 85);
+            this.layoutControlItem8.Text = "双星时差范围";
+            this.layoutControlItem8.TextLocation = DevExpress.Utils.Locations.Top;
+            this.layoutControlItem8.TextSize = new System.Drawing.Size(152, 29);
+            // 
+            // DtSXLParam
+            // 
+            this.AutoScaleDimensions = new System.Drawing.SizeF(13F, 29F);
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+            this.Controls.Add(this.layoutControl1);
+            this.Name = "DtSXLParam";
+            this.Size = new System.Drawing.Size(926, 707);
+            this.Load += new System.EventHandler(this.DtXDParam_Load);
+            ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit();
+            this.layoutControl1.ResumeLayout(false);
+            ((System.ComponentModel.ISupportInitialize)(this.mainTle.Properties)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.adajTle.Properties)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.captime.Properties.CalendarTimeProperties)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.captime.Properties)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.sxdtcetner.Properties)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.sxdtrange.Properties)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.Root)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem11)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem12)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).EndInit();
+            this.ResumeLayout(false);
+
+        }
+
+        #endregion
+
+        private DevExpress.XtraLayout.LayoutControl layoutControl1;
+        private DevExpress.XtraLayout.LayoutControlGroup Root;
+        private DevExpress.XtraEditors.TextEdit mainTle;
+        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem1;
+        private DevExpress.XtraEditors.TextEdit adajTle;
+        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem2;
+        private DevExpress.XtraEditors.DateEdit captime;
+        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem3;
+        private DevExpress.XtraEditors.TextEdit sxdtcetner;
+        private DevExpress.XtraEditors.TextEdit sxdtrange;
+        private DevExpress.XtraEditors.SimpleButton btnOk;
+        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem7;
+        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem8;
+        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem11;
+        private DevExpress.XtraEditors.SimpleButton btnClose;
+        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem12;
+        private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem1;
+    }
+}

+ 59 - 0
XzXdDw.App/UserControl/DtSXLParam.cs

@@ -0,0 +1,59 @@
+using DxHelper;
+using ExtensionsDev;
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+using XdCxRhDW.App.Api.时差粗值预测;
+using XdCxRhDW.App.Api.星历推算;
+using XzXdDw.App;
+
+namespace XdCxRhDW.App.UserControl
+{
+    public partial class DtSXLParam : DevExpress.XtraEditors.XtraUserControl
+    {
+        public (double starLon, double startLat, double centerLon, double centerLat, double endLon, double endLat, double lonRange, double latRange) rect
+        { get; set; }
+
+        public DtSXLParam()
+        {
+            InitializeComponent();
+        }
+
+        private void DtXDParam_Load(object sender, EventArgs e)
+        {
+            captime.UseDefault();
+            mainTle.Text = TestData.tleleo1;
+            adajTle.Text = TestData.tleleo2;
+            captime.DateTime = TestData.leoTime;
+        }
+
+        private void btnOk_Click(object sender, EventArgs e)
+        {
+
+            double[] center = new double[3];
+            center[0] = rect.centerLon;
+            center[1] = rect.centerLat;
+
+            //1.计算星历
+            var geo1 = Tle2XYZ.GetXyz(mainTle.Text, captime.DateTime);
+            var geo2 = Tle2XYZ.GetXyz(adajTle.Text, captime.DateTime);
+            //输出
+            double[] resule = new double[2];
+            DtApi.GetLEOTime(geo1, geo2, center, rect.lonRange, rect.latRange, resule);
+
+            sxdtcetner.Text = $"{resule[0] * 1e6:F2}";
+            sxdtrange.Text = $"{resule[1] * 1e6:F2}";
+        }
+
+        private void btnClose_Click(object sender, EventArgs e)
+        {
+            PopupHelper.HidePopup(this);
+        }
+    }
+}

+ 120 - 0
XzXdDw.App/UserControl/DtSXLParam.resx

@@ -0,0 +1,120 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+  <!-- 
+    Microsoft ResX Schema 
+    
+    Version 2.0
+    
+    The primary goals of this format is to allow a simple XML format 
+    that is mostly human readable. The generation and parsing of the 
+    various data types are done through the TypeConverter classes 
+    associated with the data types.
+    
+    Example:
+    
+    ... ado.net/XML headers & schema ...
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
+    <resheader name="version">2.0</resheader>
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
+    </data>
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+        <comment>This is a comment</comment>
+    </data>
+                
+    There are any number of "resheader" rows that contain simple 
+    name/value pairs.
+    
+    Each data row contains a name, and value. The row also contains a 
+    type or mimetype. Type corresponds to a .NET class that support 
+    text/value conversion through the TypeConverter architecture. 
+    Classes that don't support this are serialized and stored with the 
+    mimetype set.
+    
+    The mimetype is used for serialized objects, and tells the 
+    ResXResourceReader how to depersist the object. This is currently not 
+    extensible. For a given mimetype the value must be set accordingly:
+    
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
+    that the ResXResourceWriter will generate, however the reader can 
+    read any of the formats listed below.
+    
+    mimetype: application/x-microsoft.net.object.binary.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
+            : and then encoded with base64 encoding.
+    
+    mimetype: application/x-microsoft.net.object.soap.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+            : and then encoded with base64 encoding.
+
+    mimetype: application/x-microsoft.net.object.bytearray.base64
+    value   : The object must be serialized into a byte array 
+            : using a System.ComponentModel.TypeConverter
+            : and then encoded with base64 encoding.
+    -->
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
+    <xsd:element name="root" msdata:IsDataSet="true">
+      <xsd:complexType>
+        <xsd:choice maxOccurs="unbounded">
+          <xsd:element name="metadata">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
+              </xsd:sequence>
+              <xsd:attribute name="name" use="required" type="xsd:string" />
+              <xsd:attribute name="type" type="xsd:string" />
+              <xsd:attribute name="mimetype" type="xsd:string" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="assembly">
+            <xsd:complexType>
+              <xsd:attribute name="alias" type="xsd:string" />
+              <xsd:attribute name="name" type="xsd:string" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="data">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="resheader">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" />
+            </xsd:complexType>
+          </xsd:element>
+        </xsd:choice>
+      </xsd:complexType>
+    </xsd:element>
+  </xsd:schema>
+  <resheader name="resmimetype">
+    <value>text/microsoft-resx</value>
+  </resheader>
+  <resheader name="version">
+    <value>2.0</value>
+  </resheader>
+  <resheader name="reader">
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <resheader name="writer">
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+</root>

+ 1 - 1
XzXdDw.App/UserControl/DtXDParam.cs

@@ -36,7 +36,7 @@ namespace XdCxRhDW.App.UserControl
             adajrec.Text = TestData.Rec2Loc;
         }
 
-        private async void btnOk_Click(object sender, EventArgs e)
+        private void btnOk_Click(object sender, EventArgs e)
         {
             double[] mrec = new double[2];
             double[] arec = new double[2];

+ 9 - 0
XzXdDw.App/XzXdDw.App.csproj

@@ -260,6 +260,12 @@
     <Compile Include="UserControl\CtrlXl.Designer.cs">
       <DependentUpon>CtrlXl.cs</DependentUpon>
     </Compile>
+    <Compile Include="UserControl\DtSXLParam.cs">
+      <SubType>UserControl</SubType>
+    </Compile>
+    <Compile Include="UserControl\DtSXLParam.designer.cs">
+      <DependentUpon>DtSXLParam.cs</DependentUpon>
+    </Compile>
     <Compile Include="UserControl\DtXDParam.cs">
       <SubType>UserControl</SubType>
     </Compile>
@@ -287,6 +293,9 @@
     <EmbeddedResource Include="MainForm.resx">
       <DependentUpon>MainForm.cs</DependentUpon>
     </EmbeddedResource>
+    <EmbeddedResource Include="UserControl\DtSXLParam.resx">
+      <DependentUpon>DtSXLParam.cs</DependentUpon>
+    </EmbeddedResource>
     <EmbeddedResource Include="UserControl\DtXDParam.resx">
       <DependentUpon>DtXDParam.cs</DependentUpon>
     </EmbeddedResource>