zoulei 1 anno fa
parent
commit
c25af2490a

+ 60 - 58
XdCxRhDW.App/EditForms/TaskEditor.Designer.cs

@@ -30,6 +30,7 @@
         {
             this.components = new System.ComponentModel.Container();
             this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl();
+            this.btnFreq = new DevExpress.XtraEditors.SimpleButton();
             this.btnSave = new DevExpress.XtraEditors.SimpleButton();
             this.txtTaskName = new DevExpress.XtraEditors.TextEdit();
             this.txtPosType = new DevExpress.XtraEditors.RadioGroup();
@@ -54,9 +55,8 @@
             this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup();
             this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem();
             this.layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem();
-            this.dxErrorProvider = new DevExpress.XtraEditors.DXErrorProvider.DXErrorProvider(this.components);
-            this.btnFreq = new DevExpress.XtraEditors.SimpleButton();
             this.layoutControlItem7 = new DevExpress.XtraLayout.LayoutControlItem();
+            this.dxErrorProvider = new DevExpress.XtraEditors.DXErrorProvider.DXErrorProvider(this.components);
             ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit();
             this.layoutControl1.SuspendLayout();
             ((System.ComponentModel.ISupportInitialize)(this.txtTaskName.Properties)).BeginInit();
@@ -82,8 +82,8 @@
             ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).BeginInit();
-            ((System.ComponentModel.ISupportInitialize)(this.dxErrorProvider)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.dxErrorProvider)).BeginInit();
             this.SuspendLayout();
             // 
             // layoutControl1
@@ -103,15 +103,25 @@
             this.layoutControl1.Name = "layoutControl1";
             this.layoutControl1.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new System.Drawing.Rectangle(784, 215, 650, 400);
             this.layoutControl1.Root = this.Root;
-            this.layoutControl1.Size = new System.Drawing.Size(501, 313);
+            this.layoutControl1.Size = new System.Drawing.Size(495, 301);
             this.layoutControl1.TabIndex = 0;
             this.layoutControl1.Text = "layoutControl1";
             // 
+            // btnFreq
+            // 
+            this.btnFreq.Location = new System.Drawing.Point(277, 260);
+            this.btnFreq.Name = "btnFreq";
+            this.btnFreq.Size = new System.Drawing.Size(96, 23);
+            this.btnFreq.StyleController = this.layoutControl1;
+            this.btnFreq.TabIndex = 14;
+            this.btnFreq.Text = "编辑频点";
+            this.btnFreq.Click += new System.EventHandler(this.btnFreq_Click);
+            // 
             // btnSave
             // 
-            this.btnSave.Location = new System.Drawing.Point(373, 260);
+            this.btnSave.Location = new System.Drawing.Point(387, 260);
             this.btnSave.Name = "btnSave";
-            this.btnSave.Size = new System.Drawing.Size(116, 26);
+            this.btnSave.Size = new System.Drawing.Size(96, 23);
             this.btnSave.StyleController = this.layoutControl1;
             this.btnSave.TabIndex = 6;
             this.btnSave.Text = "保存";
@@ -122,7 +132,7 @@
             this.txtTaskName.Location = new System.Drawing.Point(12, 39);
             this.txtTaskName.Name = "txtTaskName";
             this.txtTaskName.Properties.AutoHeight = false;
-            this.txtTaskName.Size = new System.Drawing.Size(317, 20);
+            this.txtTaskName.Size = new System.Drawing.Size(311, 20);
             this.txtTaskName.StyleController = this.layoutControl1;
             this.txtTaskName.TabIndex = 4;
             // 
@@ -134,7 +144,7 @@
             this.txtPosType.Properties.Appearance.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(244)))), ((int)(((byte)(244)))), ((int)(((byte)(244)))));
             this.txtPosType.Properties.Appearance.Options.UseBackColor = true;
             this.txtPosType.Properties.Columns = 3;
-            this.txtPosType.Size = new System.Drawing.Size(477, 79);
+            this.txtPosType.Size = new System.Drawing.Size(471, 79);
             this.txtPosType.StyleController = this.layoutControl1;
             this.txtPosType.TabIndex = 5;
             this.txtPosType.EditValueChanged += new System.EventHandler(this.txtPosType_EditValueChanged);
@@ -148,7 +158,7 @@
             this.txtMainSat.Properties.NullText = "";
             this.txtMainSat.Properties.PopupSizeable = false;
             this.txtMainSat.Properties.PopupView = this.searchLookUpEdit1View;
-            this.txtMainSat.Size = new System.Drawing.Size(156, 20);
+            this.txtMainSat.Size = new System.Drawing.Size(154, 20);
             this.txtMainSat.StyleController = this.layoutControl1;
             this.txtMainSat.TabIndex = 7;
             // 
@@ -161,14 +171,14 @@
             // 
             // txtAdja1Sat
             // 
-            this.txtAdja1Sat.Location = new System.Drawing.Point(172, 185);
+            this.txtAdja1Sat.Location = new System.Drawing.Point(170, 185);
             this.txtAdja1Sat.Name = "txtAdja1Sat";
             this.txtAdja1Sat.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
             new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
             this.txtAdja1Sat.Properties.NullText = "";
             this.txtAdja1Sat.Properties.PopupSizeable = false;
             this.txtAdja1Sat.Properties.PopupView = this.gridView1;
-            this.txtAdja1Sat.Size = new System.Drawing.Size(156, 20);
+            this.txtAdja1Sat.Size = new System.Drawing.Size(154, 20);
             this.txtAdja1Sat.StyleController = this.layoutControl1;
             this.txtAdja1Sat.TabIndex = 8;
             // 
@@ -181,14 +191,14 @@
             // 
             // txtAdja2Sat
             // 
-            this.txtAdja2Sat.Location = new System.Drawing.Point(332, 185);
+            this.txtAdja2Sat.Location = new System.Drawing.Point(328, 185);
             this.txtAdja2Sat.Name = "txtAdja2Sat";
             this.txtAdja2Sat.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
             new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
             this.txtAdja2Sat.Properties.NullText = "";
             this.txtAdja2Sat.Properties.PopupSizeable = false;
             this.txtAdja2Sat.Properties.PopupView = this.gridView2;
-            this.txtAdja2Sat.Size = new System.Drawing.Size(157, 20);
+            this.txtAdja2Sat.Size = new System.Drawing.Size(155, 20);
             this.txtAdja2Sat.StyleController = this.layoutControl1;
             this.txtAdja2Sat.TabIndex = 9;
             // 
@@ -202,7 +212,7 @@
             // txtTaskType
             // 
             this.txtTaskType.EditValue = 0;
-            this.txtTaskType.Location = new System.Drawing.Point(333, 37);
+            this.txtTaskType.Location = new System.Drawing.Point(327, 37);
             this.txtTaskType.Name = "txtTaskType";
             this.txtTaskType.Properties.Appearance.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(244)))), ((int)(((byte)(244)))), ((int)(((byte)(244)))));
             this.txtTaskType.Properties.Appearance.Options.UseBackColor = true;
@@ -218,16 +228,17 @@
             this.txtCapDir.Location = new System.Drawing.Point(12, 226);
             this.txtCapDir.Name = "txtCapDir";
             this.txtCapDir.Properties.AutoHeight = false;
-            this.txtCapDir.Size = new System.Drawing.Size(236, 20);
+            this.txtCapDir.Size = new System.Drawing.Size(233, 20);
             this.txtCapDir.StyleController = this.layoutControl1;
             this.txtCapDir.TabIndex = 4;
             // 
             // txtCapDirFormat
             // 
             this.txtCapDirFormat.EditValue = "yyyy_MM_dd_HH";
-            this.txtCapDirFormat.Location = new System.Drawing.Point(252, 226);
+            this.txtCapDirFormat.Location = new System.Drawing.Point(249, 226);
             this.txtCapDirFormat.Name = "txtCapDirFormat";
-            this.txtCapDirFormat.Size = new System.Drawing.Size(237, 20);
+            this.txtCapDirFormat.Properties.AutoHeight = false;
+            this.txtCapDirFormat.Size = new System.Drawing.Size(234, 20);
             this.txtCapDirFormat.StyleController = this.layoutControl1;
             this.txtCapDirFormat.TabIndex = 13;
             this.txtCapDirFormat.ToolTip = "没有子目录则不填";
@@ -248,7 +259,7 @@
             this.layoutControlGroup1,
             this.layoutControlItem7});
             this.Root.Name = "Root";
-            this.Root.Size = new System.Drawing.Size(501, 313);
+            this.Root.Size = new System.Drawing.Size(495, 301);
             this.Root.TextVisible = false;
             // 
             // emptySpaceItem1
@@ -256,7 +267,7 @@
             this.emptySpaceItem1.AllowHotTrack = false;
             this.emptySpaceItem1.Location = new System.Drawing.Point(0, 238);
             this.emptySpaceItem1.Name = "emptySpaceItem1";
-            this.emptySpaceItem1.Size = new System.Drawing.Size(231, 55);
+            this.emptySpaceItem1.Size = new System.Drawing.Size(265, 43);
             this.emptySpaceItem1.TextSize = new System.Drawing.Size(0, 0);
             // 
             // layoutControlItem2
@@ -266,7 +277,7 @@
             this.layoutControlItem2.MaxSize = new System.Drawing.Size(0, 100);
             this.layoutControlItem2.MinSize = new System.Drawing.Size(54, 100);
             this.layoutControlItem2.Name = "layoutControlItem2";
-            this.layoutControlItem2.Size = new System.Drawing.Size(481, 100);
+            this.layoutControlItem2.Size = new System.Drawing.Size(475, 100);
             this.layoutControlItem2.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
             this.layoutControlItem2.Text = "定位模式";
             this.layoutControlItem2.TextLocation = DevExpress.Utils.Locations.Top;
@@ -275,12 +286,12 @@
             // layoutControlItem3
             // 
             this.layoutControlItem3.Control = this.btnSave;
-            this.layoutControlItem3.Location = new System.Drawing.Point(361, 238);
-            this.layoutControlItem3.MaxSize = new System.Drawing.Size(120, 40);
-            this.layoutControlItem3.MinSize = new System.Drawing.Size(120, 40);
+            this.layoutControlItem3.Location = new System.Drawing.Point(375, 238);
+            this.layoutControlItem3.MaxSize = new System.Drawing.Size(100, 37);
+            this.layoutControlItem3.MinSize = new System.Drawing.Size(100, 37);
             this.layoutControlItem3.Name = "layoutControlItem3";
             this.layoutControlItem3.Padding = new DevExpress.XtraLayout.Utils.Padding(2, 2, 12, 2);
-            this.layoutControlItem3.Size = new System.Drawing.Size(120, 55);
+            this.layoutControlItem3.Size = new System.Drawing.Size(100, 43);
             this.layoutControlItem3.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
             this.layoutControlItem3.TextSize = new System.Drawing.Size(0, 0);
             this.layoutControlItem3.TextVisible = false;
@@ -290,7 +301,7 @@
             this.layoutControlItem4.Control = this.txtMainSat;
             this.layoutControlItem4.Location = new System.Drawing.Point(0, 156);
             this.layoutControlItem4.Name = "layoutControlItem4";
-            this.layoutControlItem4.Size = new System.Drawing.Size(160, 41);
+            this.layoutControlItem4.Size = new System.Drawing.Size(158, 41);
             this.layoutControlItem4.Text = "主星";
             this.layoutControlItem4.TextLocation = DevExpress.Utils.Locations.Top;
             this.layoutControlItem4.TextSize = new System.Drawing.Size(84, 14);
@@ -304,7 +315,7 @@
             this.itemCapDir.MaxSize = new System.Drawing.Size(0, 41);
             this.itemCapDir.MinSize = new System.Drawing.Size(118, 41);
             this.itemCapDir.Name = "itemCapDir";
-            this.itemCapDir.Size = new System.Drawing.Size(240, 41);
+            this.itemCapDir.Size = new System.Drawing.Size(237, 41);
             this.itemCapDir.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
             this.itemCapDir.Text = "采集文件目录";
             this.itemCapDir.TextLocation = DevExpress.Utils.Locations.Top;
@@ -313,9 +324,12 @@
             // itemCapDirFormat
             // 
             this.itemCapDirFormat.Control = this.txtCapDirFormat;
-            this.itemCapDirFormat.Location = new System.Drawing.Point(240, 197);
+            this.itemCapDirFormat.Location = new System.Drawing.Point(237, 197);
+            this.itemCapDirFormat.MaxSize = new System.Drawing.Size(0, 41);
+            this.itemCapDirFormat.MinSize = new System.Drawing.Size(88, 41);
             this.itemCapDirFormat.Name = "itemCapDirFormat";
-            this.itemCapDirFormat.Size = new System.Drawing.Size(241, 41);
+            this.itemCapDirFormat.Size = new System.Drawing.Size(238, 41);
+            this.itemCapDirFormat.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
             this.itemCapDirFormat.Text = "子目录日期格式";
             this.itemCapDirFormat.TextLocation = DevExpress.Utils.Locations.Top;
             this.itemCapDirFormat.TextSize = new System.Drawing.Size(84, 14);
@@ -323,9 +337,9 @@
             // layoutControlItemAdja1
             // 
             this.layoutControlItemAdja1.Control = this.txtAdja1Sat;
-            this.layoutControlItemAdja1.Location = new System.Drawing.Point(160, 156);
+            this.layoutControlItemAdja1.Location = new System.Drawing.Point(158, 156);
             this.layoutControlItemAdja1.Name = "layoutControlItemAdja1";
-            this.layoutControlItemAdja1.Size = new System.Drawing.Size(160, 41);
+            this.layoutControlItemAdja1.Size = new System.Drawing.Size(158, 41);
             this.layoutControlItemAdja1.Text = "邻星1";
             this.layoutControlItemAdja1.TextLocation = DevExpress.Utils.Locations.Top;
             this.layoutControlItemAdja1.TextSize = new System.Drawing.Size(84, 14);
@@ -334,9 +348,9 @@
             // layoutControlItemAdja2
             // 
             this.layoutControlItemAdja2.Control = this.txtAdja2Sat;
-            this.layoutControlItemAdja2.Location = new System.Drawing.Point(320, 156);
+            this.layoutControlItemAdja2.Location = new System.Drawing.Point(316, 156);
             this.layoutControlItemAdja2.Name = "layoutControlItemAdja2";
-            this.layoutControlItemAdja2.Size = new System.Drawing.Size(161, 41);
+            this.layoutControlItemAdja2.Size = new System.Drawing.Size(159, 41);
             this.layoutControlItemAdja2.Text = "邻星2";
             this.layoutControlItemAdja2.TextLocation = DevExpress.Utils.Locations.Top;
             this.layoutControlItemAdja2.TextSize = new System.Drawing.Size(84, 14);
@@ -350,7 +364,7 @@
             this.layoutControlItem5});
             this.layoutControlGroup1.Location = new System.Drawing.Point(0, 0);
             this.layoutControlGroup1.Name = "layoutControlGroup1";
-            this.layoutControlGroup1.Size = new System.Drawing.Size(481, 56);
+            this.layoutControlGroup1.Size = new System.Drawing.Size(475, 56);
             // 
             // layoutControlItem1
             // 
@@ -360,7 +374,7 @@
             this.layoutControlItem1.MinSize = new System.Drawing.Size(118, 56);
             this.layoutControlItem1.Name = "layoutControlItem1";
             this.layoutControlItem1.Padding = new DevExpress.XtraLayout.Utils.Padding(2, 2, 12, 7);
-            this.layoutControlItem1.Size = new System.Drawing.Size(321, 56);
+            this.layoutControlItem1.Size = new System.Drawing.Size(315, 56);
             this.layoutControlItem1.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
             this.layoutControlItem1.Text = "任务名称";
             this.layoutControlItem1.TextLocation = DevExpress.Utils.Locations.Top;
@@ -371,7 +385,7 @@
             this.layoutControlItem5.Control = this.txtTaskType;
             this.layoutControlItem5.ControlAlignment = System.Drawing.ContentAlignment.TopLeft;
             this.layoutControlItem5.CustomizationFormText = "定位模式";
-            this.layoutControlItem5.Location = new System.Drawing.Point(321, 0);
+            this.layoutControlItem5.Location = new System.Drawing.Point(315, 0);
             this.layoutControlItem5.MaxSize = new System.Drawing.Size(160, 56);
             this.layoutControlItem5.MinSize = new System.Drawing.Size(160, 56);
             this.layoutControlItem5.Name = "layoutControlItem5";
@@ -382,40 +396,28 @@
             this.layoutControlItem5.TextLocation = DevExpress.Utils.Locations.Top;
             this.layoutControlItem5.TextSize = new System.Drawing.Size(84, 14);
             // 
-            // dxErrorProvider
-            // 
-            this.dxErrorProvider.ContainerControl = this;
-            // 
-            // btnFreq
-            // 
-            this.btnFreq.Location = new System.Drawing.Point(243, 260);
-            this.btnFreq.MaximumSize = new System.Drawing.Size(0, 26);
-            this.btnFreq.MinimumSize = new System.Drawing.Size(0, 26);
-            this.btnFreq.Name = "btnFreq";
-            this.btnFreq.Size = new System.Drawing.Size(126, 26);
-            this.btnFreq.StyleController = this.layoutControl1;
-            this.btnFreq.TabIndex = 14;
-            this.btnFreq.Text = "编辑频点";
-            this.btnFreq.Click += new System.EventHandler(this.btnFreq_Click);
-            // 
             // layoutControlItem7
             // 
             this.layoutControlItem7.Control = this.btnFreq;
-            this.layoutControlItem7.Location = new System.Drawing.Point(231, 238);
-            this.layoutControlItem7.MaxSize = new System.Drawing.Size(130, 48);
-            this.layoutControlItem7.MinSize = new System.Drawing.Size(130, 48);
+            this.layoutControlItem7.Location = new System.Drawing.Point(265, 238);
+            this.layoutControlItem7.MaxSize = new System.Drawing.Size(110, 37);
+            this.layoutControlItem7.MinSize = new System.Drawing.Size(110, 37);
             this.layoutControlItem7.Name = "layoutControlItem7";
-            this.layoutControlItem7.Padding = new DevExpress.XtraLayout.Utils.Padding(2, 2, 12, 2);
-            this.layoutControlItem7.Size = new System.Drawing.Size(130, 55);
+            this.layoutControlItem7.Padding = new DevExpress.XtraLayout.Utils.Padding(2, 12, 12, 2);
+            this.layoutControlItem7.Size = new System.Drawing.Size(110, 43);
             this.layoutControlItem7.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
             this.layoutControlItem7.TextSize = new System.Drawing.Size(0, 0);
             this.layoutControlItem7.TextVisible = false;
             // 
+            // dxErrorProvider
+            // 
+            this.dxErrorProvider.ContainerControl = this;
+            // 
             // TaskEditor
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
-            this.ClientSize = new System.Drawing.Size(501, 313);
+            this.ClientSize = new System.Drawing.Size(495, 301);
             this.Controls.Add(this.layoutControl1);
             this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
             this.Name = "TaskEditor";
@@ -446,8 +448,8 @@
             ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).EndInit();
-            ((System.ComponentModel.ISupportInitialize)(this.dxErrorProvider)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.dxErrorProvider)).EndInit();
             this.ResumeLayout(false);
 
         }

+ 24 - 10
XdCxRhDW.App/MainForm.cs

@@ -28,6 +28,7 @@ using XdCxRhDW.App.App.Properties;
 using System.Windows.Documents;
 using XdCxRhDW.App;
 using System.Diagnostics;
+using DevExpress.Utils.Extensions;
 
 namespace XdCxRhDW
 {
@@ -167,12 +168,14 @@ namespace XdCxRhDW
                 {
                     using (RHDWContext db = new RHDWContext())
                     {
-                        var calcItems = await db.XlInfos.Where(p => p.Lon == null).ToArrayAsync();
+                        var calcItems = await db.XlInfos.Where(p => p.Lon == null).OrderByDescending(p => p.SatCode).ToListAsync();
                         if (calcItems.Any())
                         {
-                            foreach (var item in calcItems)
+                            var satInfo = await db.SatInfos.ToListAsync();
+                            var firstUpdateItems = calcItems.Where(p => satInfo.Any(t => t.SatCode == p.SatCode)).ToList();
+                            await Task.Run(() =>
                             {
-                                await Task.Run(async () =>
+                                foreach (var item in firstUpdateItems)
                                 {
                                     try
                                     {
@@ -185,18 +188,29 @@ namespace XdCxRhDW
                                         item.Lon = -999;
                                         Serilog.Log.Error(ex, $"[{item.TwoLine}]推算XYZ星历出错!");
                                     }
+                                    db.XlInfos.AddOrUpdate(item);
+                                    db.SaveChangesAsync();
+                                    calcItems.Remove(item);
+                                }
+                               
+                                foreach (var item in calcItems)
+                                {
                                     try
                                     {
-                                        db.XlInfos.AddOrUpdate(item);
-                                        await db.SaveChangesAsync();
+                                        var eph = EphHelper.Calc(item.TwoLine, item.TimeUTC);
+                                        item.Lon = Math.Round(PhysicsHelper.EcefToGeo((eph.X, eph.Y, eph.Z)).lon, 1);
+
                                     }
                                     catch (Exception ex)
                                     {
-                                        Serilog.Log.Error(ex, "修改星历表卫星经度出错");
-
+                                        item.Lon = -999;
+                                        Serilog.Log.Error(ex, $"[{item.TwoLine}]推算XYZ星历出错!");
                                     }
-                                });
-                            }
+                                    db.XlInfos.AddOrUpdate(item);
+                                    db.SaveChangesAsync();
+                                }
+                            });
+                    
                         }
                     }
                 }
@@ -270,7 +284,7 @@ namespace XdCxRhDW
         private void StartProcess()
         {
             KillProcess();
-             Process pro = new Process();
+            Process pro = new Process();
             pro.StartInfo.FileName = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Service\\CPU参估服务\\CPU参估服务.exe");
             pro.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
             pro.StartInfo.Arguments = $"http://127.0.0.1:{SysConfig.Config.HttpPort}";

+ 1 - 0
XdCxRhDW.App/UserControl/CtrlSysSettings.Designer.cs

@@ -194,6 +194,7 @@ namespace XdCxRhDW.App.UserControl
             // 
             this.txtYDPZThreshold.Location = new System.Drawing.Point(12, 179);
             this.txtYDPZThreshold.Name = "txtYDPZThreshold";
+            this.txtYDPZThreshold.Properties.AllowNullInput = DevExpress.Utils.DefaultBoolean.True;
             this.txtYDPZThreshold.Properties.AutoHeight = false;
             this.txtYDPZThreshold.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
             new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Glyph, "Hz", -1, false, true, false, editorButtonImageOptions1, new DevExpress.Utils.KeyShortcut(System.Windows.Forms.Keys.None), serializableAppearanceObject1, serializableAppearanceObject2, serializableAppearanceObject3, serializableAppearanceObject4, "", null, null, DevExpress.Utils.ToolTipAnchor.Default)});