From b4c867bf85d3edef5d084a3a26f13cbc6784bf58 Mon Sep 17 00:00:00 2001 From: yangyin <1850366751@qq.com> Date: 星期一, 16 十二月 2024 13:37:21 +0800 Subject: [PATCH] 提交 --- WinFrmUI/DPumpHydr.WinFrmUI.Volute/基本参数/ctrlHdrBaseInfo.Designer.cs | 22 WinFrmUI/DPumpHydr.WinFrmUI.Volute/出水设计/ctrlSetOutflowType.resx | 4 WinFrmUI/DPumpHydr.WinFrmUI.Volute/出水设计/sideCurveExitControl.cs | 214 +++ WinFrmUI/DPumpHydr.WinFrmUI.Volute/截面面积/ChartSectArea.cs | 225 +++ WinFrmUI/DPumpHydr.WinFrmUI.Volute/MainViewPage.cs | 11 WinFrmUI/DPumpHydr.WinFrmUI.Volute/基本参数/ctrlGeomBaseInfo.Designer.cs | 24 WinFrmUI/DPumpHydr.WinFrmUI.Volute/出水设计/sideLineExitControl.cs | 357 +++++ WinFrmUI/DPumpHydr.WinFrmUI.Volute/出水设计/centralExitControl.resx | 123 + WinFrmUI/DPumpHydr.WinFrmUI.Volute/出水设计/ctrlSetOutflowStyle.resx | 4 WinFrmUI/DPumpHydr.WinFrmUI.Volute/出水设计/sideCurveExitControl.resx | 123 + WinFrmUI/DPumpHydr.WinFrmUI.Volute/出水设计/ctrlSetOutflowType.cs | 53 WinFrmUI/DPumpHydr.WinFrmUI.Volute/出水设计/sideCurveExitControl.Designer.cs | 310 ++++ WinFrmUI/DPumpHydr.WinFrmUI.Volute/出水设计/sidelineExitControl.resx | 123 + WinFrmUI/DPumpHydr.WinFrmUI.Volute/断面设计/ctrlSectionShapeInfo18.Designer.cs | 50 WinFrmUI/DPumpHydr.WinFrmUI.Volute/断面设计/ctrlSectionShapeInfo18.resx | 4 WinFrmUI/DPumpHydr.WinFrmUI.Volute/出水设计/centralExitControl.cs | 358 +++++ WinFrmUI/DPumpHydr.WinFrmUI.Volute/截面面积/SectAreaDockPanel.Designer.cs | 12 WinFrmUI/DPumpHydr.WinFrmUI.Volute/截面面积/SectAreaDockPanel.resx | 4 WinFrmUI/DPumpHydr.WinFrmUI.Volute/MainViewPage_StepInfo.cs | 29 WinFrmUI/DPumpHydr.WinFrmUI.Volute/基本参数/ctrlHdrBaseInfo.resx | 4 WinFrmUI/DPumpHydr.WinFrmUI.Volute/断面设计/ctrlSectionBundleInfo.cs | 10 WinFrmUI/DPumpHydr.WinFrmUI.Volute/出水设计/ctrlSetOutflowStyle.cs | 187 -- WinFrmUI/DPumpHydr.WinFrmUI.Volute/出水设计/sidelineExitControl.Designer.cs | 481 +++++++ WinFrmUI/DPumpHydr.WinFrmUI.Volute/出水设计/ctrlSetOutflowType.Designer.cs | 5 WinFrmUI/DPumpHydr.WinFrmUI.Volute/出水设计/centralExitControl.Designer.cs | 481 +++++++ WinFrmUI/DPumpHydr.WinFrmUI.Volute/出水设计/ctrlSetOutflowStyle.Designer.cs | 362 ----- WinFrmUI/DPumpHydr.WinFrmUI.Volute/截面面积/SectAreaDockPanel.cs | 104 + WinFrmUI/DPumpHydr.WinFrmUI.Volute/断面设计/ctrlSectionBundleInfo.Designer.cs | 68 WinFrmUI/DPumpHydr.WinFrmUI.Volute/断面设计/ctrlSectionShapeInfo18.cs | 5 WinFrmUI/DPumpHydr.WinFrmUI.Volute/MainViewPage_Occ.cs | 11 WinFrmUI/DPumpHydr.WinFrmUI.Volute/断面设计/ViewModel/SectionBundleInfo.cs | 1 WinFrmUI/DPumpHydr.WinFrmUI.Volute/断面设计/ctrlSectionBundleInfo.resx | 4 32 files changed, 3,145 insertions(+), 628 deletions(-) diff --git a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/MainViewPage.cs b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/MainViewPage.cs index 074ef81..0c27047 100644 --- a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/MainViewPage.cs +++ b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/MainViewPage.cs @@ -57,7 +57,16 @@ _sectAreaDockPanel = new SectAreaDockPanel(); _sectAreaDockPanel.DefaultDockArea = DPumpHydr.WinFrmUI.RLT.Enum.Crown.DockArea.Bottom; - + _sectAreaDockPanel.OnRefreshSingleSectBundle += (bundle , selectedPointIndex) => + { + + this._ctrlSectionBundleInfo.RefreshSectPara(bundle, selectedPointIndex); + if(this._stepTreeDockPanel.CurrentStepID > this._stepTreeDockPanel.Step_ID_Section18_Full) + { + this._ctrlSectionShapeInfo18.RefreshSectPara(bundle.ToSectionShapePara(selectedPointIndex)); + } + }; + _parasDockPanel = new ParasInfoDockPanel(); _parasDockPanel.DefaultDockArea = DPumpHydr.WinFrmUI.RLT.Enum.Crown.DockArea.Right; diff --git a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/MainViewPage_Occ.cs b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/MainViewPage_Occ.cs index 50cfeba..0255095 100644 --- a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/MainViewPage_Occ.cs +++ b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/MainViewPage_Occ.cs @@ -37,13 +37,19 @@ MainDockPanel.AddContent(_designMainDockPanel); } + /// <summary> + /// 鏇存柊1-8 + /// </summary> + /// <param name="bundle"></param> private void RefreshSectShapeWhole18(ViewModel.SectionBundleInfo bundle) { _occDesign3dCtrl.RefreshAllSectShape18(bundle); - _occDesign2dCtrl.RefreshAllSectShape18(bundle); - } + this._sectAreaDockPanel.SetBindingData(bundle); + + } + //鏇存柊鍗曚釜鏂潰 private void RefreshSectShapeSingle18( ViewModel.SectionShapePara para) { this._sectionBundleInfo.FromSectionShapePara(para); @@ -51,6 +57,7 @@ _occDesign3dCtrl.RefreshSingleSectShape18(para); _occDesign2dCtrl.RefreshSingleSectShape18(para); + this._sectAreaDockPanel.SetBindingData(para); } } } diff --git a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/MainViewPage_StepInfo.cs b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/MainViewPage_StepInfo.cs index 9365df7..25008cd 100644 --- a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/MainViewPage_StepInfo.cs +++ b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/MainViewPage_StepInfo.cs @@ -24,7 +24,8 @@ ViewModel.HdrBaseInfo _hdrBaseInfo = null; ViewModel.GeomBaseInfo _geomBaseInfo = null; ViewModel.SectionBundleInfo _sectionBundleInfo = null; - + ViewModel.eOutflowStyle _type ; + /// <summary> /// 涓嬩竴姝� @@ -223,7 +224,8 @@ _ctrlHdrBaseInfo.SetBindingData(_hdrBaseInfo); - AddStepParaCtrl(_ctrlHdrBaseInfo); + AddStepParaCtrl(_ctrlHdrBaseInfo); + this._sectAreaDockPanel.Visible = false; } //绗簩姝� @@ -236,9 +238,10 @@ } _ctrlGeomBaseInfo.SetBindingData(_geomBaseInfo); AddStepParaCtrl(_ctrlGeomBaseInfo); + this._sectAreaDockPanel.Visible = false; } - //绗笁姝� + //绗笁姝� 鏂潰鎬昏 if (step_id == this._stepTreeDockPanel.Step_ID_Section18_Full) { if (_ctrlSectionBundleInfo == null) @@ -251,9 +254,11 @@ _ctrlSectionBundleInfo.InitialParas(_hdrBaseInfo, _geomBaseInfo); _ctrlSectionBundleInfo.SetBindingData(_sectionBundleInfo); RefreshSectShapeWhole18(_sectionBundleInfo); + this._sectAreaDockPanel.RefreshControl(); + this._sectAreaDockPanel.Visible = true; } - //绗洓姝� + //绗洓姝� 1-8鏂潰 if (step_id > this._stepTreeDockPanel.Step_ID_Section18_Grp && step_id <= this._stepTreeDockPanel.Step_ID_Section18_Grp + 8) { @@ -268,10 +273,13 @@ AddStepParaCtrl(_ctrlSectionShapeInfo18); var sect_index = 9 + this._stepTreeDockPanel.Step_ID_Section18_Grp - step_id; var shape_info = _sectionBundleInfo.ToSectionShapePara((int)sect_index); - + RefreshSectShapeSingle18(shape_info); _ctrlSectionShapeInfo18.SetBindingData(shape_info); + this._sectAreaDockPanel.RefreshControl(); + this._sectAreaDockPanel.Visible = true; } + //鍑烘按闈㈢被鍨嬮�夋嫨 if (step_id == this._stepTreeDockPanel.Step_ID_Outflow_Type) { if (_ctrlSetOutflowType == null) @@ -279,11 +287,15 @@ _ctrlSetOutflowType = new ctrlSetOutflowType(); _ctrlSetOutflowType.Name = "ctrlSetOutflowDim"; } + this._sectAreaDockPanel.Visible = true; + this._sectAreaDockPanel.RefreshControl(); AddStepParaCtrl(_ctrlSetOutflowType); } + //鍑烘按闈㈠弬鏁� if (step_id == this._stepTreeDockPanel.Step_ID_Outflow_Style) { + _type = _ctrlSetOutflowType.GetBindingData(); if (_ctrlSetOutflowStyle == null) { _ctrlSetOutflowStyle = new ctrlSetOutflowStyle(); @@ -295,6 +307,13 @@ _occDesign3dCtrl.CreateOutflowBody(pt); } } + + + + + _ctrlSetOutflowStyle.SetBindingData(_type); + this._sectAreaDockPanel.RefreshControl(); + this._sectAreaDockPanel.Visible = true; AddStepParaCtrl(_ctrlSetOutflowStyle); } diff --git "a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\207\272\346\260\264\350\256\276\350\256\241/centralExitControl.Designer.cs" "b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\207\272\346\260\264\350\256\276\350\256\241/centralExitControl.Designer.cs" new file mode 100644 index 0000000..1ab1f3b --- /dev/null +++ "b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\207\272\346\260\264\350\256\276\350\256\241/centralExitControl.Designer.cs" @@ -0,0 +1,481 @@ +锘縩amespace DPumpHydr.WinFrmUI.Volute +{ + partial class centralExitControl + { + /// <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 缁勪欢璁捐鍣ㄧ敓鎴愮殑浠g爜 + + /// <summary> + /// 璁捐鍣ㄦ敮鎸佹墍闇�鐨勬柟娉� - 涓嶈淇敼 + /// 浣跨敤浠g爜缂栬緫鍣ㄤ慨鏀规鏂规硶鐨勫唴瀹广�� + /// </summary> + private void InitializeComponent() + { + thunderGroupBox2 = new RLT.Controls.ThunderGroupBox(); + skyLabelr = new RLT.Controls.SkyLabel(); + mlTextBoxEditr = new RLT.Controls.MaterialTextBoxEdit(); + skyLabelL = new RLT.Controls.SkyLabel(); + mlTextBoxEditL = new RLT.Controls.MaterialTextBoxEdit(); + skyLabelh2 = new RLT.Controls.SkyLabel(); + mlTextBoxEdith2 = new RLT.Controls.MaterialTextBoxEdit(); + skyLabelR2 = new RLT.Controls.SkyLabel(); + mlTextBoxEditR2 = new RLT.Controls.MaterialTextBoxEdit(); + skyLabel鎵╂暎绠″嚭鍙g洿寰� = new RLT.Controls.SkyLabel(); + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰� = new RLT.Controls.MaterialTextBoxEdit(); + skyLabelh1 = new RLT.Controls.SkyLabel(); + skyLabelR1 = new RLT.Controls.SkyLabel(); + mlTextBoxEdith1 = new RLT.Controls.MaterialTextBoxEdit(); + mlTextBoxEditR1 = new RLT.Controls.MaterialTextBoxEdit(); + metroToolTip涓績鍑哄彛 = new RLT.Controls.MetroToolTip(); + thunderGroupBox2.SuspendLayout(); + SuspendLayout(); + // + // thunderGroupBox2 + // + thunderGroupBox2.BackColor = System.Drawing.SystemColors.ControlLight; + thunderGroupBox2.BodyColorA = System.Drawing.Color.Silver; + thunderGroupBox2.BodyColorB = System.Drawing.Color.DarkGray; + thunderGroupBox2.BodyColorC = System.Drawing.SystemColors.ButtonFace; + thunderGroupBox2.BodyColorD = System.Drawing.SystemColors.ButtonFace; + thunderGroupBox2.Controls.Add(skyLabelr); + thunderGroupBox2.Controls.Add(mlTextBoxEditr); + thunderGroupBox2.Controls.Add(skyLabelL); + thunderGroupBox2.Controls.Add(mlTextBoxEditL); + thunderGroupBox2.Controls.Add(skyLabelh2); + thunderGroupBox2.Controls.Add(mlTextBoxEdith2); + thunderGroupBox2.Controls.Add(skyLabelR2); + thunderGroupBox2.Controls.Add(mlTextBoxEditR2); + thunderGroupBox2.Controls.Add(skyLabel鎵╂暎绠″嚭鍙g洿寰�); + thunderGroupBox2.Controls.Add(mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�); + thunderGroupBox2.Controls.Add(skyLabelh1); + thunderGroupBox2.Controls.Add(skyLabelR1); + thunderGroupBox2.Controls.Add(mlTextBoxEdith1); + thunderGroupBox2.Controls.Add(mlTextBoxEditR1); + thunderGroupBox2.Dock = System.Windows.Forms.DockStyle.Fill; + thunderGroupBox2.Font = new System.Drawing.Font("Tw Cen MT Condensed Extra Bold", 10F, System.Drawing.FontStyle.Bold); + thunderGroupBox2.ForeColor = System.Drawing.Color.Black; + thunderGroupBox2.Location = new System.Drawing.Point(0, 0); + thunderGroupBox2.Name = "thunderGroupBox2"; + thunderGroupBox2.Size = new System.Drawing.Size(325, 308); + thunderGroupBox2.TabIndex = 30; + thunderGroupBox2.Text = "杈撳叆鍙傛暟"; + // + // skyLabelr + // + skyLabelr.AutoSize = true; + skyLabelr.Font = new System.Drawing.Font("Swis721 BlkCn BT", 7F, System.Drawing.FontStyle.Bold); + skyLabelr.ForeColor = System.Drawing.Color.DeepPink; + skyLabelr.Location = new System.Drawing.Point(164, 218); + skyLabelr.Name = "skyLabelr"; + skyLabelr.Size = new System.Drawing.Size(46, 12); + skyLabelr.TabIndex = 76; + skyLabelr.Text = "璇疯緭鍏!"; + skyLabelr.Visible = false; + // + // mlTextBoxEditr + // + mlTextBoxEditr.AnimateReadOnly = false; + mlTextBoxEditr.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.None; + mlTextBoxEditr.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.None; + mlTextBoxEditr.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + mlTextBoxEditr.CharacterCasing = System.Windows.Forms.CharacterCasing.Normal; + mlTextBoxEditr.Depth = 0; + mlTextBoxEditr.Font = new System.Drawing.Font("Microsoft Sans Serif", 13F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); + mlTextBoxEditr.HelperText = "杈撳叆閿欒锛�"; + mlTextBoxEditr.HideSelection = true; + mlTextBoxEditr.Hint = "r"; + mlTextBoxEditr.LeadingIcon = null; + mlTextBoxEditr.Location = new System.Drawing.Point(164, 167); + mlTextBoxEditr.MaxLength = 32767; + mlTextBoxEditr.MouseState = RLT.Helper.MaterialDrawHelper.MaterialMouseState.OUT; + mlTextBoxEditr.Name = "mlTextBoxEditr"; + mlTextBoxEditr.NullValuePromptText = null; + mlTextBoxEditr.PasswordChar = '\0'; + mlTextBoxEditr.PrefixSuffix = RLT.Controls.MaterialTextBoxEdit.PrefixSuffixTypes.Suffix; + mlTextBoxEditr.PrefixSuffixText = "mm"; + mlTextBoxEditr.ReadOnly = false; + mlTextBoxEditr.RightToLeft = System.Windows.Forms.RightToLeft.Yes; + mlTextBoxEditr.SelectedText = ""; + mlTextBoxEditr.SelectionLength = 0; + mlTextBoxEditr.SelectionStart = 0; + mlTextBoxEditr.ShortcutsEnabled = true; + mlTextBoxEditr.Size = new System.Drawing.Size(145, 48); + mlTextBoxEditr.TabIndex = 75; + mlTextBoxEditr.TabStop = false; + mlTextBoxEditr.Text = "璇疯緭鍏�"; + mlTextBoxEditr.TextAlign = System.Windows.Forms.HorizontalAlignment.Left; + mlTextBoxEditr.TrailingIcon = null; + mlTextBoxEditr.UseAccent = false; + mlTextBoxEditr.UseSystemPasswordChar = false; + mlTextBoxEditr.Enter += mlTextBoxEditr_Enter; + mlTextBoxEditr.Leave += mlTextBoxEditr_Leave; + mlTextBoxEditr.TextChanged += mlTextBoxEditr_TextChanged; + // + // skyLabelL + // + skyLabelL.AutoSize = true; + skyLabelL.Font = new System.Drawing.Font("Swis721 BlkCn BT", 7F, System.Drawing.FontStyle.Bold); + skyLabelL.ForeColor = System.Drawing.Color.DeepPink; + skyLabelL.Location = new System.Drawing.Point(13, 218); + skyLabelL.Name = "skyLabelL"; + skyLabelL.Size = new System.Drawing.Size(48, 12); + skyLabelL.TabIndex = 74; + skyLabelL.Text = "璇疯緭鍏!"; + skyLabelL.Visible = false; + // + // mlTextBoxEditL + // + mlTextBoxEditL.AnimateReadOnly = false; + mlTextBoxEditL.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.None; + mlTextBoxEditL.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.None; + mlTextBoxEditL.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + mlTextBoxEditL.CharacterCasing = System.Windows.Forms.CharacterCasing.Normal; + mlTextBoxEditL.Depth = 0; + mlTextBoxEditL.Font = new System.Drawing.Font("Microsoft Sans Serif", 13F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); + mlTextBoxEditL.HelperText = "杈撳叆閿欒锛�"; + mlTextBoxEditL.HideSelection = true; + mlTextBoxEditL.Hint = "L"; + mlTextBoxEditL.LeadingIcon = null; + mlTextBoxEditL.Location = new System.Drawing.Point(13, 167); + mlTextBoxEditL.MaxLength = 32767; + mlTextBoxEditL.MouseState = RLT.Helper.MaterialDrawHelper.MaterialMouseState.OUT; + mlTextBoxEditL.Name = "mlTextBoxEditL"; + mlTextBoxEditL.NullValuePromptText = null; + mlTextBoxEditL.PasswordChar = '\0'; + mlTextBoxEditL.PrefixSuffix = RLT.Controls.MaterialTextBoxEdit.PrefixSuffixTypes.Suffix; + mlTextBoxEditL.PrefixSuffixText = "mm"; + mlTextBoxEditL.ReadOnly = false; + mlTextBoxEditL.RightToLeft = System.Windows.Forms.RightToLeft.Yes; + mlTextBoxEditL.SelectedText = ""; + mlTextBoxEditL.SelectionLength = 0; + mlTextBoxEditL.SelectionStart = 0; + mlTextBoxEditL.ShortcutsEnabled = true; + mlTextBoxEditL.Size = new System.Drawing.Size(145, 48); + mlTextBoxEditL.TabIndex = 73; + mlTextBoxEditL.TabStop = false; + mlTextBoxEditL.Text = "璇疯緭鍏�"; + mlTextBoxEditL.TextAlign = System.Windows.Forms.HorizontalAlignment.Left; + mlTextBoxEditL.TrailingIcon = null; + mlTextBoxEditL.UseAccent = false; + mlTextBoxEditL.UseSystemPasswordChar = false; + mlTextBoxEditL.Enter += mlTextBoxEditL_Enter; + mlTextBoxEditL.Leave += mlTextBoxEditL_Leave; + mlTextBoxEditL.TextChanged += mlTextBoxEditL_TextChanged; + // + // skyLabelh2 + // + skyLabelh2.AutoSize = true; + skyLabelh2.Font = new System.Drawing.Font("Swis721 BlkCn BT", 7F, System.Drawing.FontStyle.Bold); + skyLabelh2.ForeColor = System.Drawing.Color.DeepPink; + skyLabelh2.Location = new System.Drawing.Point(164, 152); + skyLabelh2.Name = "skyLabelh2"; + skyLabelh2.Size = new System.Drawing.Size(54, 12); + skyLabelh2.TabIndex = 72; + skyLabelh2.Text = "璇疯緭鍏2!"; + skyLabelh2.Visible = false; + // + // mlTextBoxEdith2 + // + mlTextBoxEdith2.AnimateReadOnly = false; + mlTextBoxEdith2.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.None; + mlTextBoxEdith2.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.None; + mlTextBoxEdith2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + mlTextBoxEdith2.CharacterCasing = System.Windows.Forms.CharacterCasing.Normal; + mlTextBoxEdith2.Depth = 0; + mlTextBoxEdith2.Font = new System.Drawing.Font("Microsoft Sans Serif", 13F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); + mlTextBoxEdith2.HelperText = "杈撳叆閿欒锛�"; + mlTextBoxEdith2.HideSelection = true; + mlTextBoxEdith2.Hint = "h2"; + mlTextBoxEdith2.LeadingIcon = null; + mlTextBoxEdith2.Location = new System.Drawing.Point(164, 101); + mlTextBoxEdith2.MaxLength = 32767; + mlTextBoxEdith2.MouseState = RLT.Helper.MaterialDrawHelper.MaterialMouseState.OUT; + mlTextBoxEdith2.Name = "mlTextBoxEdith2"; + mlTextBoxEdith2.NullValuePromptText = null; + mlTextBoxEdith2.PasswordChar = '\0'; + mlTextBoxEdith2.PrefixSuffix = RLT.Controls.MaterialTextBoxEdit.PrefixSuffixTypes.Suffix; + mlTextBoxEdith2.PrefixSuffixText = "mm"; + mlTextBoxEdith2.ReadOnly = false; + mlTextBoxEdith2.RightToLeft = System.Windows.Forms.RightToLeft.Yes; + mlTextBoxEdith2.SelectedText = ""; + mlTextBoxEdith2.SelectionLength = 0; + mlTextBoxEdith2.SelectionStart = 0; + mlTextBoxEdith2.ShortcutsEnabled = true; + mlTextBoxEdith2.Size = new System.Drawing.Size(145, 48); + mlTextBoxEdith2.TabIndex = 71; + mlTextBoxEdith2.TabStop = false; + mlTextBoxEdith2.Text = "璇疯緭鍏�"; + mlTextBoxEdith2.TextAlign = System.Windows.Forms.HorizontalAlignment.Left; + mlTextBoxEdith2.TrailingIcon = null; + mlTextBoxEdith2.UseAccent = false; + mlTextBoxEdith2.UseSystemPasswordChar = false; + mlTextBoxEdith2.Enter += mlTextBoxEdith2_Enter; + mlTextBoxEdith2.Leave += mlTextBoxEdith2_Leave; + mlTextBoxEdith2.TextChanged += mlTextBoxEdith2_TextChanged; + // + // skyLabelR2 + // + skyLabelR2.AutoSize = true; + skyLabelR2.Font = new System.Drawing.Font("Swis721 BlkCn BT", 7F, System.Drawing.FontStyle.Bold); + skyLabelR2.ForeColor = System.Drawing.Color.DeepPink; + skyLabelR2.Location = new System.Drawing.Point(164, 86); + skyLabelR2.Name = "skyLabelR2"; + skyLabelR2.Size = new System.Drawing.Size(55, 12); + skyLabelR2.TabIndex = 70; + skyLabelR2.Text = "璇疯緭鍏2!"; + skyLabelR2.Visible = false; + // + // mlTextBoxEditR2 + // + mlTextBoxEditR2.AnimateReadOnly = false; + mlTextBoxEditR2.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.None; + mlTextBoxEditR2.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.None; + mlTextBoxEditR2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + mlTextBoxEditR2.CharacterCasing = System.Windows.Forms.CharacterCasing.Normal; + mlTextBoxEditR2.Depth = 0; + mlTextBoxEditR2.Font = new System.Drawing.Font("Microsoft Sans Serif", 13F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); + mlTextBoxEditR2.HelperText = "杈撳叆閿欒锛�"; + mlTextBoxEditR2.HideSelection = true; + mlTextBoxEditR2.Hint = "R2"; + mlTextBoxEditR2.LeadingIcon = null; + mlTextBoxEditR2.Location = new System.Drawing.Point(164, 35); + mlTextBoxEditR2.MaxLength = 32767; + mlTextBoxEditR2.MouseState = RLT.Helper.MaterialDrawHelper.MaterialMouseState.OUT; + mlTextBoxEditR2.Name = "mlTextBoxEditR2"; + mlTextBoxEditR2.NullValuePromptText = null; + mlTextBoxEditR2.PasswordChar = '\0'; + mlTextBoxEditR2.PrefixSuffix = RLT.Controls.MaterialTextBoxEdit.PrefixSuffixTypes.Suffix; + mlTextBoxEditR2.PrefixSuffixText = "mm"; + mlTextBoxEditR2.ReadOnly = false; + mlTextBoxEditR2.RightToLeft = System.Windows.Forms.RightToLeft.Yes; + mlTextBoxEditR2.SelectedText = ""; + mlTextBoxEditR2.SelectionLength = 0; + mlTextBoxEditR2.SelectionStart = 0; + mlTextBoxEditR2.ShortcutsEnabled = true; + mlTextBoxEditR2.Size = new System.Drawing.Size(145, 48); + mlTextBoxEditR2.TabIndex = 69; + mlTextBoxEditR2.TabStop = false; + mlTextBoxEditR2.Text = "璇疯緭鍏�"; + mlTextBoxEditR2.TextAlign = System.Windows.Forms.HorizontalAlignment.Left; + mlTextBoxEditR2.TrailingIcon = null; + mlTextBoxEditR2.UseAccent = false; + mlTextBoxEditR2.UseSystemPasswordChar = false; + mlTextBoxEditR2.Enter += mlTextBoxEditR2_Enter; + mlTextBoxEditR2.Leave += mlTextBoxEditR2_Leave; + mlTextBoxEditR2.TextChanged += mlTextBoxEditR2_TextChanged; + // + // skyLabel鎵╂暎绠″嚭鍙g洿寰� + // + skyLabel鎵╂暎绠″嚭鍙g洿寰�.AutoSize = true; + skyLabel鎵╂暎绠″嚭鍙g洿寰�.Font = new System.Drawing.Font("Swis721 BlkCn BT", 7F, System.Drawing.FontStyle.Bold); + skyLabel鎵╂暎绠″嚭鍙g洿寰�.ForeColor = System.Drawing.Color.DeepPink; + skyLabel鎵╂暎绠″嚭鍙g洿寰�.Location = new System.Drawing.Point(13, 284); + skyLabel鎵╂暎绠″嚭鍙g洿寰�.Name = "skyLabel鎵╂暎绠″嚭鍙g洿寰�"; + skyLabel鎵╂暎绠″嚭鍙g洿寰�.Size = new System.Drawing.Size(119, 12); + skyLabel鎵╂暎绠″嚭鍙g洿寰�.TabIndex = 68; + skyLabel鎵╂暎绠″嚭鍙g洿寰�.Text = "璇疯緭鍏ユ墿鏁g鍑哄彛鐩村緞!"; + skyLabel鎵╂暎绠″嚭鍙g洿寰�.Visible = false; + // + // mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰� + // + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.AnimateReadOnly = false; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.None; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.None; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.CharacterCasing = System.Windows.Forms.CharacterCasing.Normal; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.Depth = 0; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.Font = new System.Drawing.Font("Microsoft Sans Serif", 13F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.HelperText = "璇疯緭鍏ユ纭墿鏁g鍑哄彛鐩村緞锛�"; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.HideSelection = true; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.Hint = "鎵╂暎绠″嚭鍙g洿寰凞4"; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.LeadingIcon = null; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.Location = new System.Drawing.Point(13, 233); + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.MaxLength = 32767; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.MouseState = RLT.Helper.MaterialDrawHelper.MaterialMouseState.OUT; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.Name = "mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�"; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.NullValuePromptText = null; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.PasswordChar = '\0'; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.PrefixSuffix = RLT.Controls.MaterialTextBoxEdit.PrefixSuffixTypes.Suffix; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.PrefixSuffixText = "mm"; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.ReadOnly = false; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.RightToLeft = System.Windows.Forms.RightToLeft.Yes; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.SelectedText = ""; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.SelectionLength = 0; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.SelectionStart = 0; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.ShortcutsEnabled = true; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.Size = new System.Drawing.Size(296, 48); + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.TabIndex = 67; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.TabStop = false; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.Text = "璇疯緭鍏ユ墿鏁g鍑哄彛鐩村緞"; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.TextAlign = System.Windows.Forms.HorizontalAlignment.Left; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.TrailingIcon = null; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.UseAccent = false; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.UseSystemPasswordChar = false; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.Enter += mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰刜Enter; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.Leave += mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰刜Leave; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.TextChanged += mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰刜TextChanged; + // + // skyLabelh1 + // + skyLabelh1.AutoSize = true; + skyLabelh1.Font = new System.Drawing.Font("Swis721 BlkCn BT", 7F, System.Drawing.FontStyle.Bold); + skyLabelh1.ForeColor = System.Drawing.Color.DeepPink; + skyLabelh1.Location = new System.Drawing.Point(13, 152); + skyLabelh1.Name = "skyLabelh1"; + skyLabelh1.Size = new System.Drawing.Size(54, 12); + skyLabelh1.TabIndex = 66; + skyLabelh1.Text = "璇疯緭鍏1!"; + skyLabelh1.Visible = false; + // + // skyLabelR1 + // + skyLabelR1.AutoSize = true; + skyLabelR1.Font = new System.Drawing.Font("Swis721 BlkCn BT", 7F, System.Drawing.FontStyle.Bold); + skyLabelR1.ForeColor = System.Drawing.Color.DeepPink; + skyLabelR1.Location = new System.Drawing.Point(13, 86); + skyLabelR1.Name = "skyLabelR1"; + skyLabelR1.Size = new System.Drawing.Size(55, 12); + skyLabelR1.TabIndex = 65; + skyLabelR1.Text = "璇疯緭鍏1!"; + skyLabelR1.Visible = false; + // + // mlTextBoxEdith1 + // + mlTextBoxEdith1.AnimateReadOnly = false; + mlTextBoxEdith1.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.None; + mlTextBoxEdith1.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.None; + mlTextBoxEdith1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + mlTextBoxEdith1.CharacterCasing = System.Windows.Forms.CharacterCasing.Normal; + mlTextBoxEdith1.Depth = 0; + mlTextBoxEdith1.Font = new System.Drawing.Font("Microsoft Sans Serif", 13F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); + mlTextBoxEdith1.HelperText = "杈撳叆閿欒锛�"; + mlTextBoxEdith1.HideSelection = true; + mlTextBoxEdith1.Hint = "h1"; + mlTextBoxEdith1.LeadingIcon = null; + mlTextBoxEdith1.Location = new System.Drawing.Point(13, 101); + mlTextBoxEdith1.MaxLength = 32767; + mlTextBoxEdith1.MouseState = RLT.Helper.MaterialDrawHelper.MaterialMouseState.OUT; + mlTextBoxEdith1.Name = "mlTextBoxEdith1"; + mlTextBoxEdith1.NullValuePromptText = null; + mlTextBoxEdith1.PasswordChar = '\0'; + mlTextBoxEdith1.PrefixSuffix = RLT.Controls.MaterialTextBoxEdit.PrefixSuffixTypes.Suffix; + mlTextBoxEdith1.PrefixSuffixText = "mm"; + mlTextBoxEdith1.ReadOnly = false; + mlTextBoxEdith1.RightToLeft = System.Windows.Forms.RightToLeft.Yes; + mlTextBoxEdith1.SelectedText = ""; + mlTextBoxEdith1.SelectionLength = 0; + mlTextBoxEdith1.SelectionStart = 0; + mlTextBoxEdith1.ShortcutsEnabled = true; + mlTextBoxEdith1.Size = new System.Drawing.Size(145, 48); + mlTextBoxEdith1.TabIndex = 28; + mlTextBoxEdith1.TabStop = false; + mlTextBoxEdith1.Text = "璇疯緭鍏�"; + mlTextBoxEdith1.TextAlign = System.Windows.Forms.HorizontalAlignment.Left; + mlTextBoxEdith1.TrailingIcon = null; + mlTextBoxEdith1.UseAccent = false; + mlTextBoxEdith1.UseSystemPasswordChar = false; + mlTextBoxEdith1.Enter += mlTextBoxEdith1_Enter; + mlTextBoxEdith1.Leave += mlTextBoxEdith1_Leave; + mlTextBoxEdith1.TextChanged += mlTextBoxEdith1_TextChanged; + // + // mlTextBoxEditR1 + // + mlTextBoxEditR1.AnimateReadOnly = false; + mlTextBoxEditR1.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.None; + mlTextBoxEditR1.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.None; + mlTextBoxEditR1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + mlTextBoxEditR1.CharacterCasing = System.Windows.Forms.CharacterCasing.Normal; + mlTextBoxEditR1.Depth = 0; + mlTextBoxEditR1.Font = new System.Drawing.Font("Microsoft Sans Serif", 13F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); + mlTextBoxEditR1.HelperText = "杈撳叆閿欒锛�"; + mlTextBoxEditR1.HideSelection = true; + mlTextBoxEditR1.Hint = "R1"; + mlTextBoxEditR1.LeadingIcon = null; + mlTextBoxEditR1.Location = new System.Drawing.Point(13, 35); + mlTextBoxEditR1.MaxLength = 32767; + mlTextBoxEditR1.MouseState = RLT.Helper.MaterialDrawHelper.MaterialMouseState.OUT; + mlTextBoxEditR1.Name = "mlTextBoxEditR1"; + mlTextBoxEditR1.NullValuePromptText = null; + mlTextBoxEditR1.PasswordChar = '\0'; + mlTextBoxEditR1.PrefixSuffix = RLT.Controls.MaterialTextBoxEdit.PrefixSuffixTypes.Suffix; + mlTextBoxEditR1.PrefixSuffixText = "mm"; + mlTextBoxEditR1.ReadOnly = false; + mlTextBoxEditR1.RightToLeft = System.Windows.Forms.RightToLeft.Yes; + mlTextBoxEditR1.SelectedText = ""; + mlTextBoxEditR1.SelectionLength = 0; + mlTextBoxEditR1.SelectionStart = 0; + mlTextBoxEditR1.ShortcutsEnabled = true; + mlTextBoxEditR1.Size = new System.Drawing.Size(145, 48); + mlTextBoxEditR1.TabIndex = 27; + mlTextBoxEditR1.TabStop = false; + mlTextBoxEditR1.Text = "璇疯緭鍏�"; + mlTextBoxEditR1.TextAlign = System.Windows.Forms.HorizontalAlignment.Left; + mlTextBoxEditR1.TrailingIcon = null; + mlTextBoxEditR1.UseAccent = false; + mlTextBoxEditR1.UseSystemPasswordChar = false; + mlTextBoxEditR1.Enter += mlTextBoxEditR1_Enter; + mlTextBoxEditR1.Leave += mlTextBoxEditR1_Leave; + mlTextBoxEditR1.TextChanged += mlTextBoxEditR1_TextChanged; + // + // metroToolTip涓績鍑哄彛 + // + metroToolTip涓績鍑哄彛.BackColor = System.Drawing.Color.White; + metroToolTip涓績鍑哄彛.BorderColor = System.Drawing.Color.FromArgb(204, 204, 204); + metroToolTip涓績鍑哄彛.ForeColor = System.Drawing.Color.FromArgb(170, 170, 170); + metroToolTip涓績鍑哄彛.IsDerivedStyle = true; + metroToolTip涓績鍑哄彛.OwnerDraw = true; + metroToolTip涓績鍑哄彛.Style = RLT.Enum.Metro.Style.Light; + metroToolTip涓績鍑哄彛.StyleManager = null; + metroToolTip涓績鍑哄彛.ThemeAuthor = "Taiizor"; + metroToolTip涓績鍑哄彛.ThemeName = "MetroLight"; + // + // centralExitControl + // + AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F); + AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + BackColor = System.Drawing.SystemColors.ControlLight; + Controls.Add(thunderGroupBox2); + Name = "centralExitControl"; + Size = new System.Drawing.Size(325, 308); + thunderGroupBox2.ResumeLayout(false); + thunderGroupBox2.PerformLayout(); + ResumeLayout(false); + } + + #endregion + + private RLT.Controls.ThunderGroupBox thunderGroupBox2; + private RLT.Controls.SkyLabel skyLabelR2; + private RLT.Controls.MaterialTextBoxEdit mlTextBoxEditR2; + private RLT.Controls.SkyLabel skyLabel鎵╂暎绠″嚭鍙g洿寰�; + private RLT.Controls.MaterialTextBoxEdit mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�; + private RLT.Controls.SkyLabel skyLabelh1; + private RLT.Controls.SkyLabel skyLabelR1; + private RLT.Controls.MaterialTextBoxEdit mlTextBoxEdith1; + private RLT.Controls.MaterialTextBoxEdit mlTextBoxEditR1; + private RLT.Controls.SkyLabel skyLabelr; + private RLT.Controls.MaterialTextBoxEdit mlTextBoxEditr; + private RLT.Controls.SkyLabel skyLabelL; + private RLT.Controls.MaterialTextBoxEdit mlTextBoxEditL; + private RLT.Controls.SkyLabel skyLabelh2; + private RLT.Controls.MaterialTextBoxEdit mlTextBoxEdith2; + private RLT.Controls.MetroToolTip metroToolTip涓績鍑哄彛; + } +} diff --git "a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\207\272\346\260\264\350\256\276\350\256\241/centralExitControl.cs" "b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\207\272\346\260\264\350\256\276\350\256\241/centralExitControl.cs" new file mode 100644 index 0000000..d1c400a --- /dev/null +++ "b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\207\272\346\260\264\350\256\276\350\256\241/centralExitControl.cs" @@ -0,0 +1,358 @@ +锘縰sing DPumpHydr.WinFrmUI.RLT.Controls; +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; + +namespace DPumpHydr.WinFrmUI.Volute +{ + public partial class centralExitControl : UserControl + { + public centralExitControl() + { + InitializeComponent(); + BuildAllTips(); + BuildIcon(); + } + private void BuildIcon() + { + //杈撳叆妗嗗墠缂�鍥剧墖 + mlTextBoxEditR1.LeadingIcon = GlobalResource.GetLeadingIcon(); + mlTextBoxEditR2.LeadingIcon = GlobalResource.GetLeadingIcon(); + mlTextBoxEdith1.LeadingIcon = GlobalResource.GetLeadingIcon(); + mlTextBoxEdith2.LeadingIcon = GlobalResource.GetLeadingIcon(); + mlTextBoxEditL.LeadingIcon = GlobalResource.GetLeadingIcon(); + mlTextBoxEditr.LeadingIcon = GlobalResource.GetLeadingIcon(); + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.LeadingIcon = GlobalResource.GetLeadingIcon(); + } + public bool Verify(out string error) + { + error = ""; + bool isOk = true; + if (string.IsNullOrEmpty(mlTextBoxEditR1.Text) || mlTextBoxEditR1.Text == "璇疯緭鍏�" || double.Parse(mlTextBoxEditR1.Text) == 0) + { + error = "璇疯緭鍏1锛�"; + isOk = false; + mlTextBoxEditR1.TrailingIcon = GlobalResource.GetTipTrailingIcon(); + skyLabelR1.Visible = true; + } + if (string.IsNullOrEmpty(mlTextBoxEditR2.Text) || mlTextBoxEditR2.Text == "璇疯緭鍏�" || double.Parse(mlTextBoxEditR2.Text) == 0) + { + error = "璇疯緭鍏2锛�"; + isOk = false; + mlTextBoxEditR2.TrailingIcon = GlobalResource.GetTipTrailingIcon(); + skyLabelR2.Visible = true; + } + if (string.IsNullOrEmpty(mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.Text) || mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.Text == "璇疯緭鍏ユ墿鏁g鍑哄彛鐩村緞" || double.Parse(mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.Text) == 0) + { + error = "璇疯緭鍏ユ墿鏁g鍑哄彛鐩村緞锛�"; + isOk = false; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.TrailingIcon = GlobalResource.GetTipTrailingIcon(); + skyLabel鎵╂暎绠″嚭鍙g洿寰�.Visible = true; + } + if (string.IsNullOrEmpty(mlTextBoxEdith1.Text) || mlTextBoxEdith1.Text == "璇疯緭鍏�" || double.Parse(mlTextBoxEdith1.Text) == 0) + { + error = "璇疯緭鍏1锛�"; + isOk = false; + mlTextBoxEdith1.TrailingIcon = GlobalResource.GetTipTrailingIcon(); + skyLabelh1.Visible = true; + } + if (string.IsNullOrEmpty(mlTextBoxEdith2.Text) || mlTextBoxEdith2.Text == "璇疯緭鍏�" || double.Parse(mlTextBoxEdith2.Text) == 0) + { + error = "璇疯緭鍏2锛�"; + isOk = false; + mlTextBoxEdith2.TrailingIcon = GlobalResource.GetTipTrailingIcon(); + skyLabelh2.Visible = true; + } + if (string.IsNullOrEmpty(mlTextBoxEditL.Text) || mlTextBoxEditL.Text == "璇疯緭鍏�" || double.Parse(mlTextBoxEditL.Text) == 0) + { + error = "璇疯緭鍏锛�"; + isOk = false; + mlTextBoxEditL.TrailingIcon = GlobalResource.GetTipTrailingIcon(); + skyLabelL.Visible = true; + } + if (string.IsNullOrEmpty(mlTextBoxEditr.Text) || mlTextBoxEditr.Text == "璇疯緭鍏�" || double.Parse(mlTextBoxEditr.Text) == 0) + { + error = "璇疯緭鍏锛�"; + isOk = false; + mlTextBoxEditr.TrailingIcon = GlobalResource.GetTipTrailingIcon(); + skyLabelr.Visible = true; + } + return isOk; + } + private void BuildAllTips() + { + metroToolTip涓績鍑哄彛.SetToolTip(this.mlTextBoxEditR1, "R1"); + metroToolTip涓績鍑哄彛.SetToolTip(this.mlTextBoxEditR2, "R2"); + metroToolTip涓績鍑哄彛.SetToolTip(this.mlTextBoxEdith1, "h1"); + metroToolTip涓績鍑哄彛.SetToolTip(this.mlTextBoxEdith2, "h2"); + metroToolTip涓績鍑哄彛.SetToolTip(this.mlTextBoxEditL, "L"); + metroToolTip涓績鍑哄彛.SetToolTip(this.mlTextBoxEditr, "r"); + metroToolTip涓績鍑哄彛.SetToolTip(this.mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�, "鎵╂暎绠″嚭鍙g洿寰�"); + } + private void mlTextBoxEditR1_Enter(object sender, EventArgs e) + { + skyLabelR1.Visible = false; + mlTextBoxEditR1.TrailingIcon = null; + if (mlTextBoxEditR1.Text == "璇疯緭鍏�") + { + mlTextBoxEditR1.Text = ""; + } + } + + private void mlTextBoxEditR1_Leave(object sender, EventArgs e) + { + if (string.IsNullOrEmpty(mlTextBoxEditR1.Text) || double.Parse(mlTextBoxEditR1.Text) == 0) + { + mlTextBoxEditR1.Text = "璇疯緭鍏�"; + } + } + + private void mlTextBoxEditR1_TextChanged(object sender, EventArgs e) + { + foreach (var s in mlTextBoxEditR1.Text) + { + if (!double.TryParse(mlTextBoxEditR1.Text, out double result) && !string.IsNullOrEmpty(mlTextBoxEditR1.Text) && mlTextBoxEditR1.Text != "璇疯緭鍏�") + { + mlTextBoxEditR1.UseAccent = true; + mlTextBoxEditR1.ShowAssistiveText = true; + mlTextBoxEditR1.Text = ""; + break; + } + else + { + mlTextBoxEditR1.ShowAssistiveText = false; + mlTextBoxEditR1.UseAccent = false; + } + } + } + + private void mlTextBoxEditR2_Enter(object sender, EventArgs e) + { + skyLabelR2.Visible = false; + mlTextBoxEditR2.TrailingIcon = null; + if (mlTextBoxEditR2.Text == "璇疯緭鍏�") + { + mlTextBoxEditR2.Text = ""; + } + } + + private void mlTextBoxEditR2_Leave(object sender, EventArgs e) + { + if (string.IsNullOrEmpty(mlTextBoxEditR2.Text) || double.Parse(mlTextBoxEditR2.Text) == 0) + { + mlTextBoxEditR2.Text = "璇疯緭鍏�"; + } + } + + private void mlTextBoxEditR2_TextChanged(object sender, EventArgs e) + { + foreach (var s in mlTextBoxEditR2.Text) + { + if (!double.TryParse(mlTextBoxEditR2.Text, out double result) && !string.IsNullOrEmpty(mlTextBoxEditR2.Text) && mlTextBoxEditR2.Text != "璇疯緭鍏�") + { + mlTextBoxEditR2.UseAccent = true; + mlTextBoxEditR2.ShowAssistiveText = true; + mlTextBoxEditR2.Text = ""; + break; + } + else + { + mlTextBoxEditR2.ShowAssistiveText = false; + mlTextBoxEditR2.UseAccent = false; + } + } + } + + private void mlTextBoxEdith1_Enter(object sender, EventArgs e) + { + skyLabelh1.Visible = false; + mlTextBoxEdith1.TrailingIcon = null; + if (mlTextBoxEdith1.Text == "璇疯緭鍏�") + { + mlTextBoxEdith1.Text = ""; + } + } + + private void mlTextBoxEdith1_Leave(object sender, EventArgs e) + { + if (string.IsNullOrEmpty(mlTextBoxEdith1.Text) || double.Parse(mlTextBoxEdith1.Text) == 0) + { + mlTextBoxEdith1.Text = "璇疯緭鍏�"; + } + } + + private void mlTextBoxEdith1_TextChanged(object sender, EventArgs e) + { + foreach (var s in mlTextBoxEdith1.Text) + { + if (!double.TryParse(mlTextBoxEdith1.Text, out double result) && !string.IsNullOrEmpty(mlTextBoxEdith1.Text) && mlTextBoxEdith1.Text != "璇疯緭鍏�") + { + mlTextBoxEdith1.UseAccent = true; + mlTextBoxEdith1.ShowAssistiveText = true; + mlTextBoxEdith1.Text = ""; + break; + } + else + { + mlTextBoxEdith1.ShowAssistiveText = false; + mlTextBoxEdith1.UseAccent = false; + } + } + } + + private void mlTextBoxEdith2_Enter(object sender, EventArgs e) + { + skyLabelh2.Visible = false; + mlTextBoxEdith2.TrailingIcon = null; + if (mlTextBoxEdith2.Text == "璇疯緭鍏�") + { + mlTextBoxEdith2.Text = ""; + } + } + + + private void mlTextBoxEdith2_TextChanged(object sender, EventArgs e) + { + foreach (var s in mlTextBoxEdith2.Text) + { + if (!double.TryParse(mlTextBoxEdith2.Text, out double result) && !string.IsNullOrEmpty(mlTextBoxEdith2.Text) && mlTextBoxEdith2.Text != "璇疯緭鍏�") + { + mlTextBoxEdith2.UseAccent = true; + mlTextBoxEdith2.ShowAssistiveText = true; + mlTextBoxEdith2.Text = ""; + break; + } + else + { + mlTextBoxEdith2.ShowAssistiveText = false; + mlTextBoxEdith2.UseAccent = false; + } + } + } + + private void mlTextBoxEditL_Enter(object sender, EventArgs e) + { + skyLabelL.Visible = false; + mlTextBoxEditL.TrailingIcon = null; + if (mlTextBoxEditL.Text == "璇疯緭鍏�") + { + mlTextBoxEditL.Text = ""; + } + } + + private void mlTextBoxEditL_Leave(object sender, EventArgs e) + { + if (string.IsNullOrEmpty(mlTextBoxEditL.Text) || double.Parse(mlTextBoxEditL.Text) == 0) + { + mlTextBoxEditL.Text = "璇疯緭鍏�"; + } + } + + private void mlTextBoxEditL_TextChanged(object sender, EventArgs e) + { + foreach (var s in mlTextBoxEditL.Text) + { + if (!double.TryParse(mlTextBoxEditL.Text, out double result) && !string.IsNullOrEmpty(mlTextBoxEditL.Text) && mlTextBoxEditL.Text != "璇疯緭鍏�") + { + mlTextBoxEditL.UseAccent = true; + mlTextBoxEditL.ShowAssistiveText = true; + mlTextBoxEditL.Text = ""; + break; + } + else + { + mlTextBoxEditL.ShowAssistiveText = false; + mlTextBoxEditL.UseAccent = false; + } + } + } + + private void mlTextBoxEditr_Enter(object sender, EventArgs e) + { + skyLabelr.Visible = false; + mlTextBoxEditr.TrailingIcon = null; + if (mlTextBoxEditr.Text == "璇疯緭鍏�") + { + mlTextBoxEditr.Text = ""; + } + } + + private void mlTextBoxEditr_Leave(object sender, EventArgs e) + { + if (string.IsNullOrEmpty(mlTextBoxEditr.Text) || double.Parse(mlTextBoxEditr.Text) == 0) + { + mlTextBoxEditr.Text = "璇疯緭鍏�"; + } + } + + private void mlTextBoxEditr_TextChanged(object sender, EventArgs e) + { + foreach (var s in mlTextBoxEditr.Text) + { + if (!double.TryParse(mlTextBoxEditr.Text, out double result) && !string.IsNullOrEmpty(mlTextBoxEditr.Text) && mlTextBoxEditr.Text != "璇疯緭鍏�") + { + mlTextBoxEditr.UseAccent = true; + mlTextBoxEditr.ShowAssistiveText = true; + mlTextBoxEditr.Text = ""; + break; + } + else + { + mlTextBoxEditr.ShowAssistiveText = false; + mlTextBoxEditr.UseAccent = false; + } + } + } + + private void mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰刜Enter(object sender, EventArgs e) + { + skyLabel鎵╂暎绠″嚭鍙g洿寰�.Visible = false; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.TrailingIcon = null; + if (mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.Text == "璇疯緭鍏ユ墿鏁g鍑哄彛鐩村緞") + { + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.Text = ""; + } + } + + private void mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰刜Leave(object sender, EventArgs e) + { + if (string.IsNullOrEmpty(mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.Text) || double.Parse(mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.Text) == 0) + { + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.Text = "璇疯緭鍏ユ墿鏁g鍑哄彛鐩村緞"; + } + } + + private void mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰刜TextChanged(object sender, EventArgs e) + { + foreach (var s in mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.Text) + { + if (!double.TryParse(mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.Text, out double result) && !string.IsNullOrEmpty(mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.Text) && mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.Text != "璇疯緭鍏ユ墿鏁g鍑哄彛鐩村緞") + { + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.UseAccent = true; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.ShowAssistiveText = true; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.Text = ""; + break; + } + else + { + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.ShowAssistiveText = false; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.UseAccent = false; + } + } + } + + private void mlTextBoxEdith2_Leave(object sender, EventArgs e) + { + if (string.IsNullOrEmpty(mlTextBoxEdith2.Text) || double.Parse(mlTextBoxEdith2.Text) == 0) + { + mlTextBoxEdith2.Text = "璇疯緭鍏�"; + } + } + } +} diff --git "a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\207\272\346\260\264\350\256\276\350\256\241/centralExitControl.resx" "b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\207\272\346\260\264\350\256\276\350\256\241/centralExitControl.resx" new file mode 100644 index 0000000..9175506 --- /dev/null +++ "b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\207\272\346\260\264\350\256\276\350\256\241/centralExitControl.resx" @@ -0,0 +1,123 @@ +锘�<?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> + <metadata name="metroToolTip涓績鍑哄彛.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> + <value>17, 17</value> + </metadata> +</root> \ No newline at end of file diff --git "a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\207\272\346\260\264\350\256\276\350\256\241/ctrlSetOutflowStyle.Designer.cs" "b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\207\272\346\260\264\350\256\276\350\256\241/ctrlSetOutflowStyle.Designer.cs" index 9a957d0..eb8f716 100644 --- "a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\207\272\346\260\264\350\256\276\350\256\241/ctrlSetOutflowStyle.Designer.cs" +++ "b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\207\272\346\260\264\350\256\276\350\256\241/ctrlSetOutflowStyle.Designer.cs" @@ -31,26 +31,10 @@ metroTile鎵╂暎绠″舰鐘� = new RLT.Controls.MetroTile(); crownLabel4 = new RLT.Controls.CrownLabel(); thunderGroupBox1 = new RLT.Controls.ThunderGroupBox(); - thunderGroupBox2 = new RLT.Controls.ThunderGroupBox(); - skyLabel涓績璺濈 = new RLT.Controls.SkyLabel(); - skyLabel鎵╂暎绠¢暱搴� = new RLT.Controls.SkyLabel(); mBtn鏇存柊妯″瀷 = new RLT.Controls.MaterialButton(); - crownLabel6 = new RLT.Controls.CrownLabel(); - mlTextBoxEdit涓績璺濈 = new RLT.Controls.MaterialTextBoxEdit(); - mlTextBoxEdit鎵╂暎绠¢暱搴� = new RLT.Controls.MaterialTextBoxEdit(); - crownLabel2 = new RLT.Controls.CrownLabel(); - thunderGroupBox3 = new RLT.Controls.ThunderGroupBox(); - dungeonNumeric绗叓绔潰 = new RLT.Controls.DungeonNumeric(); - dungeonNumeric鍑哄彛 = new RLT.Controls.DungeonNumeric(); - crownLabel5 = new RLT.Controls.CrownLabel(); - crownLabel绗叓绔潰 = new RLT.Controls.CrownLabel(); - crownLabel鍑哄彛 = new RLT.Controls.CrownLabel(); - metroTrackBar绗叓绔潰 = new RLT.Controls.MetroTrackBar(); - metroTrackBar鍑哄彛 = new RLT.Controls.MetroTrackBar(); metroToolTip绗叚姝ユ彁绀� = new RLT.Controls.MetroToolTip(); + panel = new System.Windows.Forms.Panel(); thunderGroupBox1.SuspendLayout(); - thunderGroupBox2.SuspendLayout(); - thunderGroupBox3.SuspendLayout(); SuspendLayout(); // // metroTile鎵╂暎绠″舰鐘� @@ -63,7 +47,7 @@ metroTile鎵╂暎绠″舰鐘�.HoverColor = System.Drawing.Color.FromArgb(65, 177, 225); metroTile鎵╂暎绠″舰鐘�.HoverTextColor = System.Drawing.Color.White; metroTile鎵╂暎绠″舰鐘�.IsDerivedStyle = true; - metroTile鎵╂暎绠″舰鐘�.Location = new System.Drawing.Point(31, 34); + metroTile鎵╂暎绠″舰鐘�.Location = new System.Drawing.Point(70, 37); metroTile鎵╂暎绠″舰鐘�.Name = "metroTile鎵╂暎绠″舰鐘�"; metroTile鎵╂暎绠″舰鐘�.NormalBorderColor = System.Drawing.Color.FromArgb(65, 177, 225); metroTile鎵╂暎绠″舰鐘�.NormalColor = System.Drawing.Color.FromArgb(65, 177, 225); @@ -102,55 +86,9 @@ thunderGroupBox1.ForeColor = System.Drawing.Color.Black; thunderGroupBox1.Location = new System.Drawing.Point(3, 36); thunderGroupBox1.Name = "thunderGroupBox1"; - thunderGroupBox1.Size = new System.Drawing.Size(256, 239); + thunderGroupBox1.Size = new System.Drawing.Size(315, 239); thunderGroupBox1.TabIndex = 27; thunderGroupBox1.Text = "鍙傛暟绀烘剰鍥�"; - // - // thunderGroupBox2 - // - thunderGroupBox2.BackColor = System.Drawing.SystemColors.ControlLight; - thunderGroupBox2.BodyColorA = System.Drawing.Color.Silver; - thunderGroupBox2.BodyColorB = System.Drawing.Color.DarkGray; - thunderGroupBox2.BodyColorC = System.Drawing.SystemColors.ButtonFace; - thunderGroupBox2.BodyColorD = System.Drawing.SystemColors.ButtonFace; - thunderGroupBox2.Controls.Add(skyLabel涓績璺濈); - thunderGroupBox2.Controls.Add(skyLabel鎵╂暎绠¢暱搴�); - thunderGroupBox2.Controls.Add(mBtn鏇存柊妯″瀷); - thunderGroupBox2.Controls.Add(crownLabel6); - thunderGroupBox2.Controls.Add(mlTextBoxEdit涓績璺濈); - thunderGroupBox2.Controls.Add(mlTextBoxEdit鎵╂暎绠¢暱搴�); - thunderGroupBox2.Controls.Add(crownLabel2); - thunderGroupBox2.Font = new System.Drawing.Font("Tw Cen MT Condensed Extra Bold", 10F, System.Drawing.FontStyle.Bold); - thunderGroupBox2.ForeColor = System.Drawing.Color.Black; - thunderGroupBox2.Location = new System.Drawing.Point(3, 280); - thunderGroupBox2.Name = "thunderGroupBox2"; - thunderGroupBox2.Size = new System.Drawing.Size(256, 270); - thunderGroupBox2.TabIndex = 28; - thunderGroupBox2.Text = "杈撳叆鍙傛暟"; - // - // skyLabel涓績璺濈 - // - skyLabel涓績璺濈.AutoSize = true; - skyLabel涓績璺濈.Font = new System.Drawing.Font("Swis721 BlkCn BT", 7F, System.Drawing.FontStyle.Bold); - skyLabel涓績璺濈.ForeColor = System.Drawing.Color.DeepPink; - skyLabel涓績璺濈.Location = new System.Drawing.Point(13, 155); - skyLabel涓績璺濈.Name = "skyLabel涓績璺濈"; - skyLabel涓績璺濈.Size = new System.Drawing.Size(86, 12); - skyLabel涓績璺濈.TabIndex = 66; - skyLabel涓績璺濈.Text = "璇疯緭鍏ヤ腑蹇冭窛绂�!"; - skyLabel涓績璺濈.Visible = false; - // - // skyLabel鎵╂暎绠¢暱搴� - // - skyLabel鎵╂暎绠¢暱搴�.AutoSize = true; - skyLabel鎵╂暎绠¢暱搴�.Font = new System.Drawing.Font("Swis721 BlkCn BT", 7F, System.Drawing.FontStyle.Bold); - skyLabel鎵╂暎绠¢暱搴�.ForeColor = System.Drawing.Color.DeepPink; - skyLabel鎵╂暎绠¢暱搴�.Location = new System.Drawing.Point(13, 86); - skyLabel鎵╂暎绠¢暱搴�.Name = "skyLabel鎵╂暎绠¢暱搴�"; - skyLabel鎵╂暎绠¢暱搴�.Size = new System.Drawing.Size(97, 12); - skyLabel鎵╂暎绠¢暱搴�.TabIndex = 65; - skyLabel鎵╂暎绠¢暱搴�.Text = "璇疯緭鍏ユ墿鏁g闀垮害!"; - skyLabel鎵╂暎绠¢暱搴�.Visible = false; // // mBtn鏇存柊妯″瀷 // @@ -162,272 +100,18 @@ mBtn鏇存柊妯″瀷.HighEmphasis = false; mBtn鏇存柊妯″瀷.Icon = null; mBtn鏇存柊妯″瀷.IconType = RLT.Controls.MaterialButton.MaterialIconType.Rebase; - mBtn鏇存柊妯″瀷.Location = new System.Drawing.Point(13, 218); + mBtn鏇存柊妯″瀷.Location = new System.Drawing.Point(13, 284); mBtn鏇存柊妯″瀷.Margin = new System.Windows.Forms.Padding(4, 6, 4, 6); mBtn鏇存柊妯″瀷.MouseState = RLT.Helper.MaterialDrawHelper.MaterialMouseState.HOVER; mBtn鏇存柊妯″瀷.Name = "mBtn鏇存柊妯″瀷"; mBtn鏇存柊妯″瀷.NoAccentTextColor = System.Drawing.Color.Empty; - mBtn鏇存柊妯″瀷.Size = new System.Drawing.Size(227, 36); + mBtn鏇存柊妯″瀷.Size = new System.Drawing.Size(297, 36); mBtn鏇存柊妯″瀷.TabIndex = 29; mBtn鏇存柊妯″瀷.Text = "鏇存柊妯″瀷"; mBtn鏇存柊妯″瀷.Type = RLT.Controls.MaterialButton.MaterialButtonType.Outlined; mBtn鏇存柊妯″瀷.UseAccentColor = false; mBtn鏇存柊妯″瀷.UseVisualStyleBackColor = true; mBtn鏇存柊妯″瀷.Click += mBtn鏇存柊妯″瀷_Click; - // - // crownLabel6 - // - crownLabel6.AutoSize = true; - crownLabel6.BackColor = System.Drawing.SystemColors.Control; - crownLabel6.Font = new System.Drawing.Font("Tw Cen MT Condensed Extra Bold", 12F, System.Drawing.FontStyle.Bold); - crownLabel6.ForeColor = System.Drawing.Color.Black; - crownLabel6.Location = new System.Drawing.Point(9, 175); - crownLabel6.Name = "crownLabel6"; - crownLabel6.Size = new System.Drawing.Size(96, 20); - crownLabel6.TabIndex = 37; - crownLabel6.Text = "鏍囧噯鐩村緞D4"; - // - // mlTextBoxEdit涓績璺濈 - // - mlTextBoxEdit涓績璺濈.AnimateReadOnly = false; - mlTextBoxEdit涓績璺濈.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.None; - mlTextBoxEdit涓績璺濈.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.None; - mlTextBoxEdit涓績璺濈.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - mlTextBoxEdit涓績璺濈.CharacterCasing = System.Windows.Forms.CharacterCasing.Normal; - mlTextBoxEdit涓績璺濈.Depth = 0; - mlTextBoxEdit涓績璺濈.Font = new System.Drawing.Font("Microsoft Sans Serif", 13F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); - mlTextBoxEdit涓績璺濈.HelperText = "璇疯緭鍏ユ纭腑蹇冭窛绂伙紒"; - mlTextBoxEdit涓績璺濈.HideSelection = true; - mlTextBoxEdit涓績璺濈.Hint = "涓績璺濈A"; - mlTextBoxEdit涓績璺濈.LeadingIcon = null; - mlTextBoxEdit涓績璺濈.Location = new System.Drawing.Point(13, 104); - mlTextBoxEdit涓績璺濈.MaxLength = 32767; - mlTextBoxEdit涓績璺濈.MouseState = RLT.Helper.MaterialDrawHelper.MaterialMouseState.OUT; - mlTextBoxEdit涓績璺濈.Name = "mlTextBoxEdit涓績璺濈"; - mlTextBoxEdit涓績璺濈.NullValuePromptText = null; - mlTextBoxEdit涓績璺濈.PasswordChar = '\0'; - mlTextBoxEdit涓績璺濈.PrefixSuffix = RLT.Controls.MaterialTextBoxEdit.PrefixSuffixTypes.Suffix; - mlTextBoxEdit涓績璺濈.PrefixSuffixText = "mm"; - mlTextBoxEdit涓績璺濈.ReadOnly = false; - mlTextBoxEdit涓績璺濈.RightToLeft = System.Windows.Forms.RightToLeft.Yes; - mlTextBoxEdit涓績璺濈.SelectedText = ""; - mlTextBoxEdit涓績璺濈.SelectionLength = 0; - mlTextBoxEdit涓績璺濈.SelectionStart = 0; - mlTextBoxEdit涓績璺濈.ShortcutsEnabled = true; - mlTextBoxEdit涓績璺濈.Size = new System.Drawing.Size(227, 48); - mlTextBoxEdit涓績璺濈.TabIndex = 28; - mlTextBoxEdit涓績璺濈.TabStop = false; - mlTextBoxEdit涓績璺濈.Text = "璇疯緭鍏ヤ腑蹇冭窛绂�"; - mlTextBoxEdit涓績璺濈.TextAlign = System.Windows.Forms.HorizontalAlignment.Left; - mlTextBoxEdit涓績璺濈.TrailingIcon = null; - mlTextBoxEdit涓績璺濈.UseAccent = false; - mlTextBoxEdit涓績璺濈.UseSystemPasswordChar = false; - mlTextBoxEdit涓績璺濈.Enter += mlTextBoxEdit涓績璺濈_Enter; - mlTextBoxEdit涓績璺濈.Leave += mlTextBoxEdit涓績璺濈_Leave; - mlTextBoxEdit涓績璺濈.TextChanged += mlTextBoxEdit涓績璺濈_TextChanged; - // - // mlTextBoxEdit鎵╂暎绠¢暱搴� - // - mlTextBoxEdit鎵╂暎绠¢暱搴�.AnimateReadOnly = false; - mlTextBoxEdit鎵╂暎绠¢暱搴�.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.None; - mlTextBoxEdit鎵╂暎绠¢暱搴�.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.None; - mlTextBoxEdit鎵╂暎绠¢暱搴�.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - mlTextBoxEdit鎵╂暎绠¢暱搴�.CharacterCasing = System.Windows.Forms.CharacterCasing.Normal; - mlTextBoxEdit鎵╂暎绠¢暱搴�.Depth = 0; - mlTextBoxEdit鎵╂暎绠¢暱搴�.Font = new System.Drawing.Font("Microsoft Sans Serif", 13F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); - mlTextBoxEdit鎵╂暎绠¢暱搴�.HelperText = "璇疯緭鍏ユ纭墿鏁g闀垮害锛�"; - mlTextBoxEdit鎵╂暎绠¢暱搴�.HideSelection = true; - mlTextBoxEdit鎵╂暎绠¢暱搴�.Hint = "鎵╂暎绠¢暱搴"; - mlTextBoxEdit鎵╂暎绠¢暱搴�.LeadingIcon = null; - mlTextBoxEdit鎵╂暎绠¢暱搴�.Location = new System.Drawing.Point(13, 35); - mlTextBoxEdit鎵╂暎绠¢暱搴�.MaxLength = 32767; - mlTextBoxEdit鎵╂暎绠¢暱搴�.MouseState = RLT.Helper.MaterialDrawHelper.MaterialMouseState.OUT; - mlTextBoxEdit鎵╂暎绠¢暱搴�.Name = "mlTextBoxEdit鎵╂暎绠¢暱搴�"; - mlTextBoxEdit鎵╂暎绠¢暱搴�.NullValuePromptText = null; - mlTextBoxEdit鎵╂暎绠¢暱搴�.PasswordChar = '\0'; - mlTextBoxEdit鎵╂暎绠¢暱搴�.PrefixSuffix = RLT.Controls.MaterialTextBoxEdit.PrefixSuffixTypes.Suffix; - mlTextBoxEdit鎵╂暎绠¢暱搴�.PrefixSuffixText = "mm"; - mlTextBoxEdit鎵╂暎绠¢暱搴�.ReadOnly = false; - mlTextBoxEdit鎵╂暎绠¢暱搴�.RightToLeft = System.Windows.Forms.RightToLeft.Yes; - mlTextBoxEdit鎵╂暎绠¢暱搴�.SelectedText = ""; - mlTextBoxEdit鎵╂暎绠¢暱搴�.SelectionLength = 0; - mlTextBoxEdit鎵╂暎绠¢暱搴�.SelectionStart = 0; - mlTextBoxEdit鎵╂暎绠¢暱搴�.ShortcutsEnabled = true; - mlTextBoxEdit鎵╂暎绠¢暱搴�.Size = new System.Drawing.Size(227, 48); - mlTextBoxEdit鎵╂暎绠¢暱搴�.TabIndex = 27; - mlTextBoxEdit鎵╂暎绠¢暱搴�.TabStop = false; - mlTextBoxEdit鎵╂暎绠¢暱搴�.Text = "璇疯緭鍏ユ墿鏁g闀垮害"; - mlTextBoxEdit鎵╂暎绠¢暱搴�.TextAlign = System.Windows.Forms.HorizontalAlignment.Left; - mlTextBoxEdit鎵╂暎绠¢暱搴�.TrailingIcon = null; - mlTextBoxEdit鎵╂暎绠¢暱搴�.UseAccent = false; - mlTextBoxEdit鎵╂暎绠¢暱搴�.UseSystemPasswordChar = false; - mlTextBoxEdit鎵╂暎绠¢暱搴�.Enter += mlTextBoxEdit鎵╂暎闀垮害_Enter; - mlTextBoxEdit鎵╂暎绠¢暱搴�.Leave += mlTextBoxEdit鎵╂暎闀垮害_Leave; - mlTextBoxEdit鎵╂暎绠¢暱搴�.TextChanged += mlTextBoxEdit鎵╂暎闀垮害_TextChanged; - // - // crownLabel2 - // - crownLabel2.AutoSize = true; - crownLabel2.BackColor = System.Drawing.SystemColors.Control; - crownLabel2.Font = new System.Drawing.Font("Microsoft YaHei UI", 8F, System.Drawing.FontStyle.Bold); - crownLabel2.ForeColor = System.Drawing.Color.Black; - crownLabel2.Location = new System.Drawing.Point(13, 198); - crownLabel2.Name = "crownLabel2"; - crownLabel2.Size = new System.Drawing.Size(132, 16); - crownLabel2.TabIndex = 19; - crownLabel2.Text = "寤鸿D4鐨勫弬鑰冨昂瀵告槸150"; - // - // thunderGroupBox3 - // - thunderGroupBox3.BackColor = System.Drawing.SystemColors.ControlLight; - thunderGroupBox3.BodyColorA = System.Drawing.Color.Silver; - thunderGroupBox3.BodyColorB = System.Drawing.Color.DarkGray; - thunderGroupBox3.BodyColorC = System.Drawing.SystemColors.ButtonFace; - thunderGroupBox3.BodyColorD = System.Drawing.SystemColors.ButtonFace; - thunderGroupBox3.Controls.Add(dungeonNumeric绗叓绔潰); - thunderGroupBox3.Controls.Add(dungeonNumeric鍑哄彛); - thunderGroupBox3.Controls.Add(crownLabel5); - thunderGroupBox3.Controls.Add(crownLabel绗叓绔潰); - thunderGroupBox3.Controls.Add(crownLabel鍑哄彛); - thunderGroupBox3.Controls.Add(metroTrackBar绗叓绔潰); - thunderGroupBox3.Controls.Add(metroTrackBar鍑哄彛); - thunderGroupBox3.Font = new System.Drawing.Font("Tw Cen MT Condensed Extra Bold", 12F, System.Drawing.FontStyle.Bold); - thunderGroupBox3.ForeColor = System.Drawing.Color.Black; - thunderGroupBox3.Location = new System.Drawing.Point(3, 577); - thunderGroupBox3.Name = "thunderGroupBox3"; - thunderGroupBox3.Size = new System.Drawing.Size(256, 209); - thunderGroupBox3.TabIndex = 29; - thunderGroupBox3.Text = "璋冩暣涓績绾�"; - // - // dungeonNumeric绗叓绔潰 - // - dungeonNumeric绗叓绔潰.BackColor = System.Drawing.Color.Transparent; - dungeonNumeric绗叓绔潰.BackColorA = System.Drawing.Color.FromArgb(246, 246, 246); - dungeonNumeric绗叓绔潰.BackColorB = System.Drawing.Color.FromArgb(254, 254, 254); - dungeonNumeric绗叓绔潰.BorderColor = System.Drawing.Color.FromArgb(180, 180, 180); - dungeonNumeric绗叓绔潰.ButtonForeColorA = System.Drawing.Color.FromArgb(75, 75, 75); - dungeonNumeric绗叓绔潰.ButtonForeColorB = System.Drawing.Color.FromArgb(75, 75, 75); - dungeonNumeric绗叓绔潰.Font = new System.Drawing.Font("Tahoma", 11F); - dungeonNumeric绗叓绔潰.ForeColor = System.Drawing.Color.FromArgb(76, 76, 76); - dungeonNumeric绗叓绔潰.Location = new System.Drawing.Point(113, 137); - dungeonNumeric绗叓绔潰.Maximum = 100L; - dungeonNumeric绗叓绔潰.Minimum = 0L; - dungeonNumeric绗叓绔潰.MinimumSize = new System.Drawing.Size(93, 28); - dungeonNumeric绗叓绔潰.Name = "dungeonNumeric绗叓绔潰"; - dungeonNumeric绗叓绔潰.Size = new System.Drawing.Size(127, 28); - dungeonNumeric绗叓绔潰.TabIndex = 43; - dungeonNumeric绗叓绔潰.Text = "dungeonNumeric1"; - dungeonNumeric绗叓绔潰.TextAlignment = RLT.Controls.DungeonNumeric._TextAlignment.Far; - dungeonNumeric绗叓绔潰.Value = 0L; - dungeonNumeric绗叓绔潰.Leave += dungeonNumeric绗叓绔潰_Leave; - // - // dungeonNumeric鍑哄彛 - // - dungeonNumeric鍑哄彛.BackColor = System.Drawing.Color.Transparent; - dungeonNumeric鍑哄彛.BackColorA = System.Drawing.Color.FromArgb(246, 246, 246); - dungeonNumeric鍑哄彛.BackColorB = System.Drawing.Color.FromArgb(254, 254, 254); - dungeonNumeric鍑哄彛.BorderColor = System.Drawing.Color.FromArgb(180, 180, 180); - dungeonNumeric鍑哄彛.ButtonForeColorA = System.Drawing.Color.FromArgb(75, 75, 75); - dungeonNumeric鍑哄彛.ButtonForeColorB = System.Drawing.Color.FromArgb(75, 75, 75); - dungeonNumeric鍑哄彛.Font = new System.Drawing.Font("Tahoma", 11F); - dungeonNumeric鍑哄彛.ForeColor = System.Drawing.Color.FromArgb(76, 76, 76); - dungeonNumeric鍑哄彛.Location = new System.Drawing.Point(113, 80); - dungeonNumeric鍑哄彛.Maximum = 100L; - dungeonNumeric鍑哄彛.Minimum = 0L; - dungeonNumeric鍑哄彛.MinimumSize = new System.Drawing.Size(93, 28); - dungeonNumeric鍑哄彛.Name = "dungeonNumeric鍑哄彛"; - dungeonNumeric鍑哄彛.Size = new System.Drawing.Size(127, 28); - dungeonNumeric鍑哄彛.TabIndex = 42; - dungeonNumeric鍑哄彛.Text = "dungeonNumeric1"; - dungeonNumeric鍑哄彛.TextAlignment = RLT.Controls.DungeonNumeric._TextAlignment.Far; - dungeonNumeric鍑哄彛.Value = 0L; - dungeonNumeric鍑哄彛.Leave += dungeonNumeric鍑哄彛_Leave; - // - // crownLabel5 - // - crownLabel5.AutoSize = true; - crownLabel5.BackColor = System.Drawing.SystemColors.Control; - crownLabel5.Font = new System.Drawing.Font("Tw Cen MT Condensed Extra Bold", 12F, System.Drawing.FontStyle.Bold); - crownLabel5.ForeColor = System.Drawing.Color.Black; - crownLabel5.Location = new System.Drawing.Point(13, 42); - crownLabel5.Name = "crownLabel5"; - crownLabel5.Size = new System.Drawing.Size(77, 20); - crownLabel5.TabIndex = 35; - crownLabel5.Text = "璋冩暣绫诲瀷"; - // - // crownLabel绗叓绔潰 - // - crownLabel绗叓绔潰.AutoSize = true; - crownLabel绗叓绔潰.BackColor = System.Drawing.SystemColors.Control; - crownLabel绗叓绔潰.Font = new System.Drawing.Font("Tw Cen MT Condensed Extra Bold", 12F, System.Drawing.FontStyle.Bold); - crownLabel绗叓绔潰.ForeColor = System.Drawing.Color.Black; - crownLabel绗叓绔潰.Location = new System.Drawing.Point(10, 145); - crownLabel绗叓绔潰.Name = "crownLabel绗叓绔潰"; - crownLabel绗叓绔潰.Size = new System.Drawing.Size(77, 20); - crownLabel绗叓绔潰.TabIndex = 31; - crownLabel绗叓绔潰.Text = "绗叓绔潰"; - // - // crownLabel鍑哄彛 - // - crownLabel鍑哄彛.AutoSize = true; - crownLabel鍑哄彛.BackColor = System.Drawing.SystemColors.Control; - crownLabel鍑哄彛.Font = new System.Drawing.Font("Tw Cen MT Condensed Extra Bold", 12F, System.Drawing.FontStyle.Bold); - crownLabel鍑哄彛.ForeColor = System.Drawing.Color.Black; - crownLabel鍑哄彛.Location = new System.Drawing.Point(11, 88); - crownLabel鍑哄彛.Name = "crownLabel鍑哄彛"; - crownLabel鍑哄彛.Size = new System.Drawing.Size(43, 20); - crownLabel鍑哄彛.TabIndex = 30; - crownLabel鍑哄彛.Text = "鍑哄彛"; - // - // metroTrackBar绗叓绔潰 - // - metroTrackBar绗叓绔潰.BackgroundColor = System.Drawing.Color.FromArgb(205, 205, 205); - metroTrackBar绗叓绔潰.Cursor = System.Windows.Forms.Cursors.Hand; - metroTrackBar绗叓绔潰.DisabledBackColor = System.Drawing.Color.FromArgb(235, 235, 235); - metroTrackBar绗叓绔潰.DisabledBorderColor = System.Drawing.Color.Empty; - metroTrackBar绗叓绔潰.DisabledHandlerColor = System.Drawing.Color.FromArgb(196, 196, 196); - metroTrackBar绗叓绔潰.DisabledValueColor = System.Drawing.Color.FromArgb(205, 205, 205); - metroTrackBar绗叓绔潰.HandlerColor = System.Drawing.Color.FromArgb(180, 180, 180); - metroTrackBar绗叓绔潰.IsDerivedStyle = true; - metroTrackBar绗叓绔潰.Location = new System.Drawing.Point(9, 171); - metroTrackBar绗叓绔潰.Maximum = 100; - metroTrackBar绗叓绔潰.Minimum = 0; - metroTrackBar绗叓绔潰.Name = "metroTrackBar绗叓绔潰"; - metroTrackBar绗叓绔潰.Size = new System.Drawing.Size(228, 16); - metroTrackBar绗叓绔潰.Style = RLT.Enum.Metro.Style.Light; - metroTrackBar绗叓绔潰.StyleManager = null; - metroTrackBar绗叓绔潰.TabIndex = 24; - metroTrackBar绗叓绔潰.Text = "metroTrackBar2"; - metroTrackBar绗叓绔潰.ThemeAuthor = "Taiizor"; - metroTrackBar绗叓绔潰.ThemeName = "MetroLight"; - metroTrackBar绗叓绔潰.Value = 0; - metroTrackBar绗叓绔潰.ValueColor = System.Drawing.Color.FromArgb(65, 177, 225); - metroTrackBar绗叓绔潰.Scroll += metroTrackBar绗叓绔潰_Scroll; - // - // metroTrackBar鍑哄彛 - // - metroTrackBar鍑哄彛.BackgroundColor = System.Drawing.Color.FromArgb(205, 205, 205); - metroTrackBar鍑哄彛.Cursor = System.Windows.Forms.Cursors.Hand; - metroTrackBar鍑哄彛.DisabledBackColor = System.Drawing.Color.FromArgb(235, 235, 235); - metroTrackBar鍑哄彛.DisabledBorderColor = System.Drawing.Color.Empty; - metroTrackBar鍑哄彛.DisabledHandlerColor = System.Drawing.Color.FromArgb(196, 196, 196); - metroTrackBar鍑哄彛.DisabledValueColor = System.Drawing.Color.FromArgb(205, 205, 205); - metroTrackBar鍑哄彛.HandlerColor = System.Drawing.Color.FromArgb(180, 180, 180); - metroTrackBar鍑哄彛.IsDerivedStyle = true; - metroTrackBar鍑哄彛.Location = new System.Drawing.Point(10, 114); - metroTrackBar鍑哄彛.Maximum = 100; - metroTrackBar鍑哄彛.Minimum = 0; - metroTrackBar鍑哄彛.Name = "metroTrackBar鍑哄彛"; - metroTrackBar鍑哄彛.Size = new System.Drawing.Size(226, 16); - metroTrackBar鍑哄彛.Style = RLT.Enum.Metro.Style.Light; - metroTrackBar鍑哄彛.StyleManager = null; - metroTrackBar鍑哄彛.TabIndex = 9; - metroTrackBar鍑哄彛.Text = "metroTrackBar2"; - metroTrackBar鍑哄彛.ThemeAuthor = "Taiizor"; - metroTrackBar鍑哄彛.ThemeName = "MetroLight"; - metroTrackBar鍑哄彛.Value = 0; - metroTrackBar鍑哄彛.ValueColor = System.Drawing.Color.FromArgb(65, 177, 225); - metroTrackBar鍑哄彛.Scroll += metroTrackBar鍑哄彛_Scroll; // // metroToolTip绗叚姝ユ彁绀� // @@ -441,23 +125,26 @@ metroToolTip绗叚姝ユ彁绀�.ThemeAuthor = "Taiizor"; metroToolTip绗叚姝ユ彁绀�.ThemeName = "MetroLight"; // + // panel + // + panel.Location = new System.Drawing.Point(3, 329); + panel.Name = "panel"; + panel.Size = new System.Drawing.Size(315, 471); + panel.TabIndex = 30; + // // ctrlSetOutflowStyle // AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F); AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; BackColor = System.Drawing.SystemColors.ControlLight; - Controls.Add(thunderGroupBox3); - Controls.Add(thunderGroupBox2); + Controls.Add(panel); Controls.Add(thunderGroupBox1); + Controls.Add(mBtn鏇存柊妯″瀷); Controls.Add(crownLabel4); Margin = new System.Windows.Forms.Padding(4); Name = "ctrlSetOutflowStyle"; - Size = new System.Drawing.Size(267, 803); + Size = new System.Drawing.Size(325, 803); thunderGroupBox1.ResumeLayout(false); - thunderGroupBox2.ResumeLayout(false); - thunderGroupBox2.PerformLayout(); - thunderGroupBox3.ResumeLayout(false); - thunderGroupBox3.PerformLayout(); ResumeLayout(false); PerformLayout(); } @@ -467,25 +154,8 @@ private RLT.Controls.MetroTile metroTile鎵╂暎绠″舰鐘�; private RLT.Controls.CrownLabel crownLabel4; private RLT.Controls.ThunderGroupBox thunderGroupBox1; - - private RLT.Controls.ThunderGroupBox thunderGroupBox2; - - private RLT.Controls.MaterialTextBoxEdit mlTextBoxEdit涓績璺濈; - private RLT.Controls.MaterialTextBoxEdit mlTextBoxEdit鎵╂暎绠¢暱搴�; - private RLT.Controls.ThunderGroupBox thunderGroupBox3; - private RLT.Controls.CrownLabel crownLabel2; - private RLT.Controls.MetroTrackBar metroTrackBar鍑哄彛; - - private RLT.Controls.MetroTrackBar metroTrackBar绗叓绔潰; private RLT.Controls.MaterialButton mBtn鏇存柊妯″瀷; - private RLT.Controls.CrownLabel crownLabel鍑哄彛; - private RLT.Controls.CrownLabel crownLabel绗叓绔潰; - private RLT.Controls.CrownLabel crownLabel5; - private RLT.Controls.CrownLabel crownLabel6; - private RLT.Controls.DungeonNumeric dungeonNumeric鍑哄彛; - private RLT.Controls.DungeonNumeric dungeonNumeric绗叓绔潰; private RLT.Controls.MetroToolTip metroToolTip绗叚姝ユ彁绀�; - private RLT.Controls.SkyLabel skyLabel涓績璺濈; - private RLT.Controls.SkyLabel skyLabel鎵╂暎绠¢暱搴�; + private System.Windows.Forms.Panel panel; } } diff --git "a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\207\272\346\260\264\350\256\276\350\256\241/ctrlSetOutflowStyle.cs" "b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\207\272\346\260\264\350\256\276\350\256\241/ctrlSetOutflowStyle.cs" index 4774bd4..43eefba 100644 --- "a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\207\272\346\260\264\350\256\276\350\256\241/ctrlSetOutflowStyle.cs" +++ "b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\207\272\346\260\264\350\256\276\350\256\241/ctrlSetOutflowStyle.cs" @@ -1,4 +1,6 @@ -锘� +锘� + +using DPumpHydr.WinFrmUI.Volute.ViewModel; using System; using System.Collections.Generic; using System.ComponentModel; @@ -17,162 +19,73 @@ public ctrlSetOutflowStyle() { InitializeComponent(); + AddControlToPanel(_type, panel); BuildAllTips(); - BuildIcon(); } - - private void BuildIcon() + int _type = 0; + public void SetBindingData(eOutflowStyle eOutflowStyle) { - //鎵╂暎绠″舰鐘跺浘鐗� - metroTile鎵╂暎绠″舰鐘�.BackgroundImage = GlobalResource.BuildImage("kuosanguan.png", 878, 238); - - //杈撳叆妗嗗墠缂�鍥剧墖 - mlTextBoxEdit鎵╂暎绠¢暱搴�.LeadingIcon = GlobalResource.GetLeadingIcon(); - mlTextBoxEdit涓績璺濈.LeadingIcon = GlobalResource.GetLeadingIcon(); + if (eOutflowStyle == eOutflowStyle.涓績鍑哄彛_鍨傜洿娉曞叞闈㈡祦鍑�) + { + _type = 0; + panel.Controls.Clear(); + AddControlToPanel(_type, panel); + } + if (eOutflowStyle == eOutflowStyle.渚ч潰鍑哄彛_鏇茬嚎杩炴帴) + { + _type = 1; + panel.Controls.Clear(); + AddControlToPanel(_type, panel); + } + if (eOutflowStyle == eOutflowStyle.渚ч潰鍑哄彛_鐩寸嚎杩炴帴) + { + _type = 2; + panel.Controls.Clear(); + AddControlToPanel(_type, panel); + } } - - public bool Verify(out string error) + private Control AddControlToPanel(int type, Panel panel) { - error = ""; - bool isOk = true; - if (string.IsNullOrEmpty(mlTextBoxEdit鎵╂暎绠¢暱搴�.Text) || mlTextBoxEdit鎵╂暎绠¢暱搴�.Text == "璇疯緭鍏ユ墿鏁g闀垮害" || double.Parse(mlTextBoxEdit鎵╂暎绠¢暱搴�.Text) == 0) + Control newControl = null; + switch (type) { - error = "璇疯緭鍏ユ墿鏁g闀垮害锛�"; - isOk = false; - mlTextBoxEdit鎵╂暎绠¢暱搴�.TrailingIcon = GlobalResource.GetTipTrailingIcon(); - skyLabel鎵╂暎绠¢暱搴�.Visible = true; + case 0: + newControl = new centralExitControl(); + metroTile鎵╂暎绠″舰鐘�.BackgroundImage = GlobalResource.BuildImage("Central-exit.png", 878, 238); + break; + case 1: + newControl = new sideCurveExitControl(); + metroTile鎵╂暎绠″舰鐘�.BackgroundImage = GlobalResource.BuildImage("Side-exit-curve.png", 878, 238); + break; + case 2: + newControl = new sidelineExitControl(); + metroTile鎵╂暎绠″舰鐘�.BackgroundImage = GlobalResource.BuildImage("Side-exit-straight-line.png", 878, 238); + break; + default: + throw new ArgumentException("Invalid control type"); } - if (string.IsNullOrEmpty(mlTextBoxEdit涓績璺濈.Text) || mlTextBoxEdit涓績璺濈.Text == "璇疯緭鍏ヤ腑蹇冭窛绂�" || double.Parse(mlTextBoxEdit涓績璺濈.Text) == 0) - { - error = "璇疯緭鍏ヤ腑蹇冭窛绂伙紒"; - isOk = false; - mlTextBoxEdit涓績璺濈.TrailingIcon = GlobalResource.GetTipTrailingIcon(); - skyLabel涓績璺濈.Visible = true; - } - return isOk; + + // 灏嗘帶浠舵坊鍔犲埌Panel涓� + panel.Controls.Add(newControl); + newControl.Dock = DockStyle.Top; + return newControl; } + + + private void BuildAllTips() { metroToolTip绗叚姝ユ彁绀�.SetToolTip(this.metroTile鎵╂暎绠″舰鐘�, "鏂潰鍥�"); - metroToolTip绗叚姝ユ彁绀�.SetToolTip(this.mlTextBoxEdit鎵╂暎绠¢暱搴�, "铚楀涓恫浣撴祦鍔╘n璺緞鐨勬墿灞曟垨鎵‐n鏁g▼搴�"); - metroToolTip绗叚姝ユ彁绀�.SetToolTip(this.mlTextBoxEdit涓績璺濈, "涓績璺濈 瑙i噴"); - metroToolTip绗叚姝ユ彁绀�.SetToolTip(this.crownLabel鍑哄彛, "鍑哄彛 瑙i噴"); - metroToolTip绗叚姝ユ彁绀�.SetToolTip(this.dungeonNumeric鍑哄彛, "鍑哄彛 瑙i噴"); - metroToolTip绗叚姝ユ彁绀�.SetToolTip(this.metroTrackBar鍑哄彛, "鍑哄彛 瑙i噴"); - metroToolTip绗叚姝ユ彁绀�.SetToolTip(this.crownLabel绗叓绔潰, "绗叓鏂潰 瑙i噴"); - metroToolTip绗叚姝ユ彁绀�.SetToolTip(this.dungeonNumeric绗叓绔潰, "绗叓绔潰 瑙i噴"); - metroToolTip绗叚姝ユ彁绀�.SetToolTip(this.metroTrackBar绗叓绔潰, "绗叓绔潰 瑙i噴"); } - private void metroTrackBar绗叓绔潰_Scroll(object sender) - { - dungeonNumeric绗叓绔潰.Value = metroTrackBar绗叓绔潰.Value; - } - private void metroTrackBar鍑哄彛_Scroll(object sender) - { - dungeonNumeric鍑哄彛.Value = metroTrackBar鍑哄彛.Value; - } - private void dungeonNumeric鍑哄彛_Leave(object sender, EventArgs e) - { - metroTrackBar鍑哄彛.Value = (int)(dungeonNumeric鍑哄彛.Value); - } - private void dungeonNumeric绗叓绔潰_Leave(object sender, EventArgs e) - { - metroTrackBar绗叓绔潰.Value = (int)(dungeonNumeric绗叓绔潰.Value); - } - - private void mlTextBoxEdit鎵╂暎闀垮害_TextChanged(object sender, EventArgs e) - { - foreach (var s in mlTextBoxEdit鎵╂暎绠¢暱搴�.Text) - { - if (!double.TryParse(mlTextBoxEdit鎵╂暎绠¢暱搴�.Text, out double result) && !string.IsNullOrEmpty(mlTextBoxEdit鎵╂暎绠¢暱搴�.Text) && mlTextBoxEdit鎵╂暎绠¢暱搴�.Text != "璇疯緭鍏ユ墿鏁g闀垮害") - { - mlTextBoxEdit鎵╂暎绠¢暱搴�.UseAccent = true; - mlTextBoxEdit鎵╂暎绠¢暱搴�.ShowAssistiveText = true; - mlTextBoxEdit鎵╂暎绠¢暱搴�.Text = ""; - break; - } - else - { - mlTextBoxEdit鎵╂暎绠¢暱搴�.ShowAssistiveText = false; - mlTextBoxEdit鎵╂暎绠¢暱搴�.UseAccent = false; - } - } - } - - private void mlTextBoxEdit鎵╂暎闀垮害_Enter(object sender, EventArgs e) - { - skyLabel鎵╂暎绠¢暱搴�.Visible = false; - mlTextBoxEdit鎵╂暎绠¢暱搴�.TrailingIcon = null; - if (mlTextBoxEdit鎵╂暎绠¢暱搴�.Text == "璇疯緭鍏ユ墿鏁g闀垮害") - { - mlTextBoxEdit鎵╂暎绠¢暱搴�.Text = ""; - } - } - - private void mlTextBoxEdit鎵╂暎闀垮害_Leave(object sender, EventArgs e) - { - if (string.IsNullOrEmpty(mlTextBoxEdit鎵╂暎绠¢暱搴�.Text) || double.Parse(mlTextBoxEdit鎵╂暎绠¢暱搴�.Text) == 0) - { - mlTextBoxEdit鎵╂暎绠¢暱搴�.Text = "璇疯緭鍏ユ墿鏁g闀垮害"; - } - } - - private void mlTextBoxEdit涓績璺濈_Enter(object sender, EventArgs e) - { - skyLabel涓績璺濈.Visible = false; - mlTextBoxEdit涓績璺濈.TrailingIcon = null; - if (mlTextBoxEdit涓績璺濈.Text == "璇疯緭鍏ヤ腑蹇冭窛绂�") - { - mlTextBoxEdit涓績璺濈.Text = ""; - } - } - - private void mlTextBoxEdit涓績璺濈_Leave(object sender, EventArgs e) - { - if (string.IsNullOrEmpty(mlTextBoxEdit涓績璺濈.Text) || double.Parse(mlTextBoxEdit涓績璺濈.Text) == 0) - { - mlTextBoxEdit涓績璺濈.Text = "璇疯緭鍏ヤ腑蹇冭窛绂�"; - } - } - - private void mlTextBoxEdit涓績璺濈_TextChanged(object sender, EventArgs e) - { - foreach (var s in mlTextBoxEdit涓績璺濈.Text) - { - if (!double.TryParse(mlTextBoxEdit涓績璺濈.Text, out double result) && !string.IsNullOrEmpty(mlTextBoxEdit涓績璺濈.Text) && mlTextBoxEdit涓績璺濈.Text != "璇疯緭鍏ヤ腑蹇冭窛绂�") - { - mlTextBoxEdit涓績璺濈.UseAccent = true; - mlTextBoxEdit涓績璺濈.ShowAssistiveText = true; - mlTextBoxEdit涓績璺濈.Text = ""; - break; - } - else - { - mlTextBoxEdit涓績璺濈.ShowAssistiveText = false; - mlTextBoxEdit涓績璺濈.UseAccent = false; - } - } - } private void mBtn鏇存柊妯″瀷_Click(object sender, EventArgs e) { - if (mlTextBoxEdit鎵╂暎绠¢暱搴�.Text == "璇疯緭鍏ユ墿鏁g闀垮害" || string.IsNullOrEmpty(mlTextBoxEdit鎵╂暎绠¢暱搴�.Text)) - { - skyLabel鎵╂暎绠¢暱搴�.Visible = true; - MessageBox.Show("璇峰厛杈撳叆鎵╂暎绠¢暱搴︼紒"); - return; - } - if (mlTextBoxEdit涓績璺濈.Text == "璇疯緭鍏ヤ腑蹇冭窛绂�" || string.IsNullOrEmpty(mlTextBoxEdit涓績璺濈.Text)) - { - skyLabel涓績璺濈.Visible = true; - MessageBox.Show("璇峰厛杈撳叆涓績璺濈锛�"); - return; - } + } } } diff --git "a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\207\272\346\260\264\350\256\276\350\256\241/ctrlSetOutflowStyle.resx" "b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\207\272\346\260\264\350\256\276\350\256\241/ctrlSetOutflowStyle.resx" index 8665518..5d7ea85 100644 --- "a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\207\272\346\260\264\350\256\276\350\256\241/ctrlSetOutflowStyle.resx" +++ "b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\207\272\346\260\264\350\256\276\350\256\241/ctrlSetOutflowStyle.resx" @@ -1,7 +1,7 @@ 锘�<?xml version="1.0" encoding="utf-8"?> <root> <!-- - Microsoft ResX Schema + Microsoft ResX Schema Version 2.0 @@ -48,7 +48,7 @@ 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 diff --git "a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\207\272\346\260\264\350\256\276\350\256\241/ctrlSetOutflowType.Designer.cs" "b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\207\272\346\260\264\350\256\276\350\256\241/ctrlSetOutflowType.Designer.cs" index 771ff92..f9e1edf 100644 --- "a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\207\272\346\260\264\350\256\276\350\256\241/ctrlSetOutflowType.Designer.cs" +++ "b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\207\272\346\260\264\350\256\276\350\256\241/ctrlSetOutflowType.Designer.cs" @@ -89,7 +89,7 @@ thunderGroupBox1.ForeColor = System.Drawing.Color.Black; thunderGroupBox1.Location = new System.Drawing.Point(10, 225); thunderGroupBox1.Name = "thunderGroupBox1"; - thunderGroupBox1.Size = new System.Drawing.Size(300, 112); + thunderGroupBox1.Size = new System.Drawing.Size(308, 112); thunderGroupBox1.TabIndex = 26; thunderGroupBox1.Text = "閫夋嫨鍑哄彛绫诲瀷"; // @@ -112,6 +112,7 @@ RBtn渚ч潰鍑哄彛鐩寸嚎.TabIndex = 8; RBtn渚ч潰鍑哄彛鐩寸嚎.Text = "渚ч潰鍑哄彛锛堢洿绾块摼鎺ワ級"; RBtn渚ч潰鍑哄彛鐩寸嚎.TextRenderingType = System.Drawing.Text.TextRenderingHint.AntiAliasGridFit; + RBtn渚ч潰鍑哄彛鐩寸嚎.CheckedChanged += RBtn渚ч潰鍑哄彛鐩寸嚎_CheckedChanged; // // RBtn涓績鍑哄彛 // @@ -132,6 +133,7 @@ RBtn涓績鍑哄彛.TabIndex = 7; RBtn涓績鍑哄彛.Text = "涓績鍑哄彛锛氬瀭鐩存硶鍏伴潰娴佸嚭"; RBtn涓績鍑哄彛.TextRenderingType = System.Drawing.Text.TextRenderingHint.AntiAliasGridFit; + RBtn涓績鍑哄彛.CheckedChanged += RBtn涓績鍑哄彛_CheckedChanged; // // RBtn渚ч潰鍑哄彛鏇茬嚎 // @@ -152,6 +154,7 @@ RBtn渚ч潰鍑哄彛鏇茬嚎.TabIndex = 6; RBtn渚ч潰鍑哄彛鏇茬嚎.Text = "渚ч潰鍑哄彛锛堟洸绾块摼鎺ワ級锛氬瀭鐩存硶鍏伴潰娴佸嚭"; RBtn渚ч潰鍑哄彛鏇茬嚎.TextRenderingType = System.Drawing.Text.TextRenderingHint.AntiAliasGridFit; + RBtn渚ч潰鍑哄彛鏇茬嚎.CheckedChanged += RBtn渚ч潰鍑哄彛鏇茬嚎_CheckedChanged; // // designDraw11 // diff --git "a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\207\272\346\260\264\350\256\276\350\256\241/ctrlSetOutflowType.cs" "b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\207\272\346\260\264\350\256\276\350\256\241/ctrlSetOutflowType.cs" index 2d271ae..61b46fe 100644 --- "a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\207\272\346\260\264\350\256\276\350\256\241/ctrlSetOutflowType.cs" +++ "b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\207\272\346\260\264\350\256\276\350\256\241/ctrlSetOutflowType.cs" @@ -1,4 +1,5 @@ -锘縰sing System; +锘縰sing DPumpHydr.WinFrmUI.Volute.ViewModel; +using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; @@ -28,12 +29,58 @@ return false; } - return true; + return true; + } + public eOutflowStyle GetBindingData() + { + if (RBtn涓績鍑哄彛.Checked) + { + return eOutflowStyle.涓績鍑哄彛_鍨傜洿娉曞叞闈㈡祦鍑�; + } + else if (RBtn渚ч潰鍑哄彛鏇茬嚎.Checked) + { + return eOutflowStyle.渚ч潰鍑哄彛_鏇茬嚎杩炴帴; + } + else + { + return eOutflowStyle.渚ч潰鍑哄彛_鐩寸嚎杩炴帴; + } + } private void BuildIcon() { - metroTile鍑哄彛鍥剧墖.BackgroundImage = GlobalResource.BuildImage("chukou.png",848 ,508 ); + metroTile鍑哄彛鍥剧墖.BackgroundImage = GlobalResource.BuildImage("Side-exit-curve.png", 848, 508); + } + + private void RBtn涓績鍑哄彛_CheckedChanged(object sender) + { + if (RBtn涓績鍑哄彛.Checked) + { + RBtn渚ч潰鍑哄彛鏇茬嚎.Checked = false; + RBtn渚ч潰鍑哄彛鐩寸嚎.Checked = false; + metroTile鍑哄彛鍥剧墖.BackgroundImage = GlobalResource.BuildImage("Central-exit.png", 848, 508); + } + } + + private void RBtn渚ч潰鍑哄彛鏇茬嚎_CheckedChanged(object sender) + { + if (RBtn渚ч潰鍑哄彛鏇茬嚎.Checked) + { + RBtn涓績鍑哄彛.Checked = false; + RBtn渚ч潰鍑哄彛鐩寸嚎.Checked = false; + metroTile鍑哄彛鍥剧墖.BackgroundImage = GlobalResource.BuildImage("Side-exit-curve.png", 848, 508); + } + } + + private void RBtn渚ч潰鍑哄彛鐩寸嚎_CheckedChanged(object sender) + { + if (RBtn渚ч潰鍑哄彛鐩寸嚎.Checked) + { + RBtn渚ч潰鍑哄彛鏇茬嚎.Checked = false; + RBtn涓績鍑哄彛.Checked = false; + metroTile鍑哄彛鍥剧墖.BackgroundImage = GlobalResource.BuildImage("Side-exit-straight-line.png", 848, 508); + } } } } diff --git "a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\207\272\346\260\264\350\256\276\350\256\241/ctrlSetOutflowType.resx" "b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\207\272\346\260\264\350\256\276\350\256\241/ctrlSetOutflowType.resx" index 8b2ff64..af32865 100644 --- "a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\207\272\346\260\264\350\256\276\350\256\241/ctrlSetOutflowType.resx" +++ "b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\207\272\346\260\264\350\256\276\350\256\241/ctrlSetOutflowType.resx" @@ -1,7 +1,7 @@ 锘�<?xml version="1.0" encoding="utf-8"?> <root> <!-- - Microsoft ResX Schema + Microsoft ResX Schema Version 2.0 @@ -48,7 +48,7 @@ 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 diff --git "a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\207\272\346\260\264\350\256\276\350\256\241/sideCurveExitControl.Designer.cs" "b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\207\272\346\260\264\350\256\276\350\256\241/sideCurveExitControl.Designer.cs" new file mode 100644 index 0000000..5f45cee --- /dev/null +++ "b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\207\272\346\260\264\350\256\276\350\256\241/sideCurveExitControl.Designer.cs" @@ -0,0 +1,310 @@ +锘縩amespace DPumpHydr.WinFrmUI.Volute +{ + partial class sideCurveExitControl + { + /// <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 缁勪欢璁捐鍣ㄧ敓鎴愮殑浠g爜 + + /// <summary> + /// 璁捐鍣ㄦ敮鎸佹墍闇�鐨勬柟娉� - 涓嶈淇敼 + /// 浣跨敤浠g爜缂栬緫鍣ㄤ慨鏀规鏂规硶鐨勫唴瀹广�� + /// </summary> + private void InitializeComponent() + { + thunderGroupBox2 = new RLT.Controls.ThunderGroupBox(); + skyLabel闅旇垖鍦嗚鍗婂緞 = new RLT.Controls.SkyLabel(); + mlTextBoxEdit闅旇垖鍦嗚鍗婂緞 = new RLT.Controls.MaterialTextBoxEdit(); + skyLabel鎵╂暎绠″嚭鍙g洿寰� = new RLT.Controls.SkyLabel(); + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰� = new RLT.Controls.MaterialTextBoxEdit(); + skyLabel涓績璺濈 = new RLT.Controls.SkyLabel(); + skyLabel鎵╂暎绠¢暱搴� = new RLT.Controls.SkyLabel(); + mlTextBoxEdit涓績璺濈 = new RLT.Controls.MaterialTextBoxEdit(); + mlTextBoxEdit鎵╂暎绠¢暱搴� = new RLT.Controls.MaterialTextBoxEdit(); + metroToolTip渚ч潰鍑哄彛鍨傜洿 = new RLT.Controls.MetroToolTip(); + thunderGroupBox2.SuspendLayout(); + SuspendLayout(); + // + // thunderGroupBox2 + // + thunderGroupBox2.BackColor = System.Drawing.SystemColors.ControlLight; + thunderGroupBox2.BodyColorA = System.Drawing.Color.Silver; + thunderGroupBox2.BodyColorB = System.Drawing.Color.DarkGray; + thunderGroupBox2.BodyColorC = System.Drawing.SystemColors.ButtonFace; + thunderGroupBox2.BodyColorD = System.Drawing.SystemColors.ButtonFace; + thunderGroupBox2.Controls.Add(skyLabel闅旇垖鍦嗚鍗婂緞); + thunderGroupBox2.Controls.Add(mlTextBoxEdit闅旇垖鍦嗚鍗婂緞); + thunderGroupBox2.Controls.Add(skyLabel鎵╂暎绠″嚭鍙g洿寰�); + thunderGroupBox2.Controls.Add(mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�); + thunderGroupBox2.Controls.Add(skyLabel涓績璺濈); + thunderGroupBox2.Controls.Add(skyLabel鎵╂暎绠¢暱搴�); + thunderGroupBox2.Controls.Add(mlTextBoxEdit涓績璺濈); + thunderGroupBox2.Controls.Add(mlTextBoxEdit鎵╂暎绠¢暱搴�); + thunderGroupBox2.Dock = System.Windows.Forms.DockStyle.Fill; + thunderGroupBox2.Font = new System.Drawing.Font("Tw Cen MT Condensed Extra Bold", 10F, System.Drawing.FontStyle.Bold); + thunderGroupBox2.ForeColor = System.Drawing.Color.Black; + thunderGroupBox2.Location = new System.Drawing.Point(0, 0); + thunderGroupBox2.Name = "thunderGroupBox2"; + thunderGroupBox2.Size = new System.Drawing.Size(325, 312); + thunderGroupBox2.TabIndex = 29; + thunderGroupBox2.Text = "杈撳叆鍙傛暟"; + // + // skyLabel闅旇垖鍦嗚鍗婂緞 + // + skyLabel闅旇垖鍦嗚鍗婂緞.AutoSize = true; + skyLabel闅旇垖鍦嗚鍗婂緞.Font = new System.Drawing.Font("Swis721 BlkCn BT", 7F, System.Drawing.FontStyle.Bold); + skyLabel闅旇垖鍦嗚鍗婂緞.ForeColor = System.Drawing.Color.DeepPink; + skyLabel闅旇垖鍦嗚鍗婂緞.Location = new System.Drawing.Point(13, 284); + skyLabel闅旇垖鍦嗚鍗婂緞.Name = "skyLabel闅旇垖鍦嗚鍗婂緞"; + skyLabel闅旇垖鍦嗚鍗婂緞.Size = new System.Drawing.Size(108, 12); + skyLabel闅旇垖鍦嗚鍗婂緞.TabIndex = 70; + skyLabel闅旇垖鍦嗚鍗婂緞.Text = "璇疯緭鍏ラ殧鑸屽渾瑙掑崐寰�!"; + skyLabel闅旇垖鍦嗚鍗婂緞.Visible = false; + // + // mlTextBoxEdit闅旇垖鍦嗚鍗婂緞 + // + mlTextBoxEdit闅旇垖鍦嗚鍗婂緞.AnimateReadOnly = false; + mlTextBoxEdit闅旇垖鍦嗚鍗婂緞.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.None; + mlTextBoxEdit闅旇垖鍦嗚鍗婂緞.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.None; + mlTextBoxEdit闅旇垖鍦嗚鍗婂緞.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + mlTextBoxEdit闅旇垖鍦嗚鍗婂緞.CharacterCasing = System.Windows.Forms.CharacterCasing.Normal; + mlTextBoxEdit闅旇垖鍦嗚鍗婂緞.Depth = 0; + mlTextBoxEdit闅旇垖鍦嗚鍗婂緞.Font = new System.Drawing.Font("Microsoft Sans Serif", 13F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); + mlTextBoxEdit闅旇垖鍦嗚鍗婂緞.HelperText = "璇疯緭鍏ユ纭殧鑸屽渾瑙掑崐寰勶紒"; + mlTextBoxEdit闅旇垖鍦嗚鍗婂緞.HideSelection = true; + mlTextBoxEdit闅旇垖鍦嗚鍗婂緞.Hint = "闅旇垖鍦嗚鍗婂緞r"; + mlTextBoxEdit闅旇垖鍦嗚鍗婂緞.LeadingIcon = null; + mlTextBoxEdit闅旇垖鍦嗚鍗婂緞.Location = new System.Drawing.Point(13, 233); + mlTextBoxEdit闅旇垖鍦嗚鍗婂緞.MaxLength = 32767; + mlTextBoxEdit闅旇垖鍦嗚鍗婂緞.MouseState = RLT.Helper.MaterialDrawHelper.MaterialMouseState.OUT; + mlTextBoxEdit闅旇垖鍦嗚鍗婂緞.Name = "mlTextBoxEdit闅旇垖鍦嗚鍗婂緞"; + mlTextBoxEdit闅旇垖鍦嗚鍗婂緞.NullValuePromptText = null; + mlTextBoxEdit闅旇垖鍦嗚鍗婂緞.PasswordChar = '\0'; + mlTextBoxEdit闅旇垖鍦嗚鍗婂緞.PrefixSuffix = RLT.Controls.MaterialTextBoxEdit.PrefixSuffixTypes.Suffix; + mlTextBoxEdit闅旇垖鍦嗚鍗婂緞.PrefixSuffixText = "mm"; + mlTextBoxEdit闅旇垖鍦嗚鍗婂緞.ReadOnly = false; + mlTextBoxEdit闅旇垖鍦嗚鍗婂緞.RightToLeft = System.Windows.Forms.RightToLeft.Yes; + mlTextBoxEdit闅旇垖鍦嗚鍗婂緞.SelectedText = ""; + mlTextBoxEdit闅旇垖鍦嗚鍗婂緞.SelectionLength = 0; + mlTextBoxEdit闅旇垖鍦嗚鍗婂緞.SelectionStart = 0; + mlTextBoxEdit闅旇垖鍦嗚鍗婂緞.ShortcutsEnabled = true; + mlTextBoxEdit闅旇垖鍦嗚鍗婂緞.Size = new System.Drawing.Size(294, 48); + mlTextBoxEdit闅旇垖鍦嗚鍗婂緞.TabIndex = 69; + mlTextBoxEdit闅旇垖鍦嗚鍗婂緞.TabStop = false; + mlTextBoxEdit闅旇垖鍦嗚鍗婂緞.Text = "璇疯緭鍏ラ殧鑸屽渾瑙掑崐寰�"; + mlTextBoxEdit闅旇垖鍦嗚鍗婂緞.TextAlign = System.Windows.Forms.HorizontalAlignment.Left; + mlTextBoxEdit闅旇垖鍦嗚鍗婂緞.TrailingIcon = null; + mlTextBoxEdit闅旇垖鍦嗚鍗婂緞.UseAccent = false; + mlTextBoxEdit闅旇垖鍦嗚鍗婂緞.UseSystemPasswordChar = false; + mlTextBoxEdit闅旇垖鍦嗚鍗婂緞.Enter += mlTextBoxEdit闅旇垖鍦嗚鍗婂緞_Enter; + mlTextBoxEdit闅旇垖鍦嗚鍗婂緞.Leave += mlTextBoxEdit闅旇垖鍦嗚鍗婂緞_Leave; + mlTextBoxEdit闅旇垖鍦嗚鍗婂緞.TextChanged += mlTextBoxEdit闅旇垖鍦嗚鍗婂緞_TextChanged; + // + // skyLabel鎵╂暎绠″嚭鍙g洿寰� + // + skyLabel鎵╂暎绠″嚭鍙g洿寰�.AutoSize = true; + skyLabel鎵╂暎绠″嚭鍙g洿寰�.Font = new System.Drawing.Font("Swis721 BlkCn BT", 7F, System.Drawing.FontStyle.Bold); + skyLabel鎵╂暎绠″嚭鍙g洿寰�.ForeColor = System.Drawing.Color.DeepPink; + skyLabel鎵╂暎绠″嚭鍙g洿寰�.Location = new System.Drawing.Point(13, 218); + skyLabel鎵╂暎绠″嚭鍙g洿寰�.Name = "skyLabel鎵╂暎绠″嚭鍙g洿寰�"; + skyLabel鎵╂暎绠″嚭鍙g洿寰�.Size = new System.Drawing.Size(119, 12); + skyLabel鎵╂暎绠″嚭鍙g洿寰�.TabIndex = 68; + skyLabel鎵╂暎绠″嚭鍙g洿寰�.Text = "璇疯緭鍏ユ墿鏁g鍑哄彛鐩村緞!"; + skyLabel鎵╂暎绠″嚭鍙g洿寰�.Visible = false; + // + // mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰� + // + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.AnimateReadOnly = false; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.None; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.None; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.CharacterCasing = System.Windows.Forms.CharacterCasing.Normal; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.Depth = 0; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.Font = new System.Drawing.Font("Microsoft Sans Serif", 13F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.HelperText = "璇疯緭鍏ユ纭墿鏁g鍑哄彛鐩村緞锛�"; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.HideSelection = true; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.Hint = "鎵╂暎绠″嚭鍙g洿寰凞4"; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.LeadingIcon = null; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.Location = new System.Drawing.Point(13, 167); + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.MaxLength = 32767; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.MouseState = RLT.Helper.MaterialDrawHelper.MaterialMouseState.OUT; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.Name = "mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�"; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.NullValuePromptText = null; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.PasswordChar = '\0'; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.PrefixSuffix = RLT.Controls.MaterialTextBoxEdit.PrefixSuffixTypes.Suffix; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.PrefixSuffixText = "mm"; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.ReadOnly = false; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.RightToLeft = System.Windows.Forms.RightToLeft.Yes; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.SelectedText = ""; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.SelectionLength = 0; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.SelectionStart = 0; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.ShortcutsEnabled = true; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.Size = new System.Drawing.Size(294, 48); + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.TabIndex = 67; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.TabStop = false; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.Text = "璇疯緭鍏ユ墿鏁g鍑哄彛鐩村緞"; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.TextAlign = System.Windows.Forms.HorizontalAlignment.Left; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.TrailingIcon = null; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.UseAccent = false; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.UseSystemPasswordChar = false; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.Enter += mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰刜Enter; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.Leave += mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰刜Leave; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.TextChanged += mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰刜TextChanged; + // + // skyLabel涓績璺濈 + // + skyLabel涓績璺濈.AutoSize = true; + skyLabel涓績璺濈.Font = new System.Drawing.Font("Swis721 BlkCn BT", 7F, System.Drawing.FontStyle.Bold); + skyLabel涓績璺濈.ForeColor = System.Drawing.Color.DeepPink; + skyLabel涓績璺濈.Location = new System.Drawing.Point(13, 152); + skyLabel涓績璺濈.Name = "skyLabel涓績璺濈"; + skyLabel涓績璺濈.Size = new System.Drawing.Size(86, 12); + skyLabel涓績璺濈.TabIndex = 66; + skyLabel涓績璺濈.Text = "璇疯緭鍏ヤ腑蹇冭窛绂�!"; + skyLabel涓績璺濈.Visible = false; + // + // skyLabel鎵╂暎绠¢暱搴� + // + skyLabel鎵╂暎绠¢暱搴�.AutoSize = true; + skyLabel鎵╂暎绠¢暱搴�.Font = new System.Drawing.Font("Swis721 BlkCn BT", 7F, System.Drawing.FontStyle.Bold); + skyLabel鎵╂暎绠¢暱搴�.ForeColor = System.Drawing.Color.DeepPink; + skyLabel鎵╂暎绠¢暱搴�.Location = new System.Drawing.Point(13, 86); + skyLabel鎵╂暎绠¢暱搴�.Name = "skyLabel鎵╂暎绠¢暱搴�"; + skyLabel鎵╂暎绠¢暱搴�.Size = new System.Drawing.Size(97, 12); + skyLabel鎵╂暎绠¢暱搴�.TabIndex = 65; + skyLabel鎵╂暎绠¢暱搴�.Text = "璇疯緭鍏ユ墿鏁g闀垮害!"; + skyLabel鎵╂暎绠¢暱搴�.Visible = false; + // + // mlTextBoxEdit涓績璺濈 + // + mlTextBoxEdit涓績璺濈.AnimateReadOnly = false; + mlTextBoxEdit涓績璺濈.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.None; + mlTextBoxEdit涓績璺濈.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.None; + mlTextBoxEdit涓績璺濈.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + mlTextBoxEdit涓績璺濈.CharacterCasing = System.Windows.Forms.CharacterCasing.Normal; + mlTextBoxEdit涓績璺濈.Depth = 0; + mlTextBoxEdit涓績璺濈.Font = new System.Drawing.Font("Microsoft Sans Serif", 13F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); + mlTextBoxEdit涓績璺濈.HelperText = "璇疯緭鍏ユ纭腑蹇冭窛绂伙紒"; + mlTextBoxEdit涓績璺濈.HideSelection = true; + mlTextBoxEdit涓績璺濈.Hint = "涓績璺濈A"; + mlTextBoxEdit涓績璺濈.LeadingIcon = null; + mlTextBoxEdit涓績璺濈.Location = new System.Drawing.Point(13, 101); + mlTextBoxEdit涓績璺濈.MaxLength = 32767; + mlTextBoxEdit涓績璺濈.MouseState = RLT.Helper.MaterialDrawHelper.MaterialMouseState.OUT; + mlTextBoxEdit涓績璺濈.Name = "mlTextBoxEdit涓績璺濈"; + mlTextBoxEdit涓績璺濈.NullValuePromptText = null; + mlTextBoxEdit涓績璺濈.PasswordChar = '\0'; + mlTextBoxEdit涓績璺濈.PrefixSuffix = RLT.Controls.MaterialTextBoxEdit.PrefixSuffixTypes.Suffix; + mlTextBoxEdit涓績璺濈.PrefixSuffixText = "mm"; + mlTextBoxEdit涓績璺濈.ReadOnly = false; + mlTextBoxEdit涓績璺濈.RightToLeft = System.Windows.Forms.RightToLeft.Yes; + mlTextBoxEdit涓績璺濈.SelectedText = ""; + mlTextBoxEdit涓績璺濈.SelectionLength = 0; + mlTextBoxEdit涓績璺濈.SelectionStart = 0; + mlTextBoxEdit涓績璺濈.ShortcutsEnabled = true; + mlTextBoxEdit涓績璺濈.Size = new System.Drawing.Size(294, 48); + mlTextBoxEdit涓績璺濈.TabIndex = 28; + mlTextBoxEdit涓績璺濈.TabStop = false; + mlTextBoxEdit涓績璺濈.Text = "璇疯緭鍏ヤ腑蹇冭窛绂�"; + mlTextBoxEdit涓績璺濈.TextAlign = System.Windows.Forms.HorizontalAlignment.Left; + mlTextBoxEdit涓績璺濈.TrailingIcon = null; + mlTextBoxEdit涓績璺濈.UseAccent = false; + mlTextBoxEdit涓績璺濈.UseSystemPasswordChar = false; + mlTextBoxEdit涓績璺濈.Enter += mlTextBoxEdit涓績璺濈_Enter; + mlTextBoxEdit涓績璺濈.Leave += mlTextBoxEdit涓績璺濈_Leave; + mlTextBoxEdit涓績璺濈.TextChanged += mlTextBoxEdit涓績璺濈_TextChanged; + // + // mlTextBoxEdit鎵╂暎绠¢暱搴� + // + mlTextBoxEdit鎵╂暎绠¢暱搴�.AnimateReadOnly = false; + mlTextBoxEdit鎵╂暎绠¢暱搴�.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.None; + mlTextBoxEdit鎵╂暎绠¢暱搴�.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.None; + mlTextBoxEdit鎵╂暎绠¢暱搴�.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + mlTextBoxEdit鎵╂暎绠¢暱搴�.CharacterCasing = System.Windows.Forms.CharacterCasing.Normal; + mlTextBoxEdit鎵╂暎绠¢暱搴�.Depth = 0; + mlTextBoxEdit鎵╂暎绠¢暱搴�.Font = new System.Drawing.Font("Microsoft Sans Serif", 13F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); + mlTextBoxEdit鎵╂暎绠¢暱搴�.HelperText = "璇疯緭鍏ユ纭墿鏁g闀垮害锛�"; + mlTextBoxEdit鎵╂暎绠¢暱搴�.HideSelection = true; + mlTextBoxEdit鎵╂暎绠¢暱搴�.Hint = "鎵╂暎绠¢暱搴"; + mlTextBoxEdit鎵╂暎绠¢暱搴�.LeadingIcon = null; + mlTextBoxEdit鎵╂暎绠¢暱搴�.Location = new System.Drawing.Point(13, 35); + mlTextBoxEdit鎵╂暎绠¢暱搴�.MaxLength = 32767; + mlTextBoxEdit鎵╂暎绠¢暱搴�.MouseState = RLT.Helper.MaterialDrawHelper.MaterialMouseState.OUT; + mlTextBoxEdit鎵╂暎绠¢暱搴�.Name = "mlTextBoxEdit鎵╂暎绠¢暱搴�"; + mlTextBoxEdit鎵╂暎绠¢暱搴�.NullValuePromptText = null; + mlTextBoxEdit鎵╂暎绠¢暱搴�.PasswordChar = '\0'; + mlTextBoxEdit鎵╂暎绠¢暱搴�.PrefixSuffix = RLT.Controls.MaterialTextBoxEdit.PrefixSuffixTypes.Suffix; + mlTextBoxEdit鎵╂暎绠¢暱搴�.PrefixSuffixText = "mm"; + mlTextBoxEdit鎵╂暎绠¢暱搴�.ReadOnly = false; + mlTextBoxEdit鎵╂暎绠¢暱搴�.RightToLeft = System.Windows.Forms.RightToLeft.Yes; + mlTextBoxEdit鎵╂暎绠¢暱搴�.SelectedText = ""; + mlTextBoxEdit鎵╂暎绠¢暱搴�.SelectionLength = 0; + mlTextBoxEdit鎵╂暎绠¢暱搴�.SelectionStart = 0; + mlTextBoxEdit鎵╂暎绠¢暱搴�.ShortcutsEnabled = true; + mlTextBoxEdit鎵╂暎绠¢暱搴�.Size = new System.Drawing.Size(294, 48); + mlTextBoxEdit鎵╂暎绠¢暱搴�.TabIndex = 27; + mlTextBoxEdit鎵╂暎绠¢暱搴�.TabStop = false; + mlTextBoxEdit鎵╂暎绠¢暱搴�.Text = "璇疯緭鍏ユ墿鏁g闀垮害"; + mlTextBoxEdit鎵╂暎绠¢暱搴�.TextAlign = System.Windows.Forms.HorizontalAlignment.Left; + mlTextBoxEdit鎵╂暎绠¢暱搴�.TrailingIcon = null; + mlTextBoxEdit鎵╂暎绠¢暱搴�.UseAccent = false; + mlTextBoxEdit鎵╂暎绠¢暱搴�.UseSystemPasswordChar = false; + mlTextBoxEdit鎵╂暎绠¢暱搴�.Enter += mlTextBoxEdit鎵╂暎绠¢暱搴Enter; + mlTextBoxEdit鎵╂暎绠¢暱搴�.Leave += mlTextBoxEdit鎵╂暎绠¢暱搴Leave; + mlTextBoxEdit鎵╂暎绠¢暱搴�.TextChanged += mlTextBoxEdit鎵╂暎绠¢暱搴TextChanged; + // + // metroToolTip渚ч潰鍑哄彛鍨傜洿 + // + metroToolTip渚ч潰鍑哄彛鍨傜洿.BackColor = System.Drawing.Color.White; + metroToolTip渚ч潰鍑哄彛鍨傜洿.BorderColor = System.Drawing.Color.FromArgb(204, 204, 204); + metroToolTip渚ч潰鍑哄彛鍨傜洿.ForeColor = System.Drawing.Color.FromArgb(170, 170, 170); + metroToolTip渚ч潰鍑哄彛鍨傜洿.IsDerivedStyle = true; + metroToolTip渚ч潰鍑哄彛鍨傜洿.OwnerDraw = true; + metroToolTip渚ч潰鍑哄彛鍨傜洿.Style = RLT.Enum.Metro.Style.Light; + metroToolTip渚ч潰鍑哄彛鍨傜洿.StyleManager = null; + metroToolTip渚ч潰鍑哄彛鍨傜洿.ThemeAuthor = "Taiizor"; + metroToolTip渚ч潰鍑哄彛鍨傜洿.ThemeName = "MetroLight"; + // + // sideCurveExitControl + // + AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F); + AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + BackColor = System.Drawing.SystemColors.ControlLight; + Controls.Add(thunderGroupBox2); + Name = "sideCurveExitControl"; + Size = new System.Drawing.Size(325, 312); + thunderGroupBox2.ResumeLayout(false); + thunderGroupBox2.PerformLayout(); + ResumeLayout(false); + } + + #endregion + + private RLT.Controls.ThunderGroupBox thunderGroupBox2; + private RLT.Controls.SkyLabel skyLabel涓績璺濈; + private RLT.Controls.SkyLabel skyLabel鎵╂暎绠¢暱搴�; + private RLT.Controls.MaterialTextBoxEdit mlTextBoxEdit涓績璺濈; + private RLT.Controls.MaterialTextBoxEdit mlTextBoxEdit鎵╂暎绠¢暱搴�; + private RLT.Controls.SkyLabel skyLabel闅旇垖鍦嗚鍗婂緞; + private RLT.Controls.MaterialTextBoxEdit mlTextBoxEdit闅旇垖鍦嗚鍗婂緞; + private RLT.Controls.SkyLabel skyLabel鎵╂暎绠″嚭鍙g洿寰�; + private RLT.Controls.MaterialTextBoxEdit mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�; + private RLT.Controls.MetroToolTip metroToolTip渚ч潰鍑哄彛鍨傜洿; + } +} diff --git "a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\207\272\346\260\264\350\256\276\350\256\241/sideCurveExitControl.cs" "b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\207\272\346\260\264\350\256\276\350\256\241/sideCurveExitControl.cs" new file mode 100644 index 0000000..98dc769 --- /dev/null +++ "b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\207\272\346\260\264\350\256\276\350\256\241/sideCurveExitControl.cs" @@ -0,0 +1,214 @@ +锘縰sing 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; + +namespace DPumpHydr.WinFrmUI.Volute +{ + public partial class sideCurveExitControl : UserControl + { + public sideCurveExitControl() + { + InitializeComponent(); + BuildAllTips(); + BuildIcon(); + } + private void BuildIcon() + { + //杈撳叆妗嗗墠缂�鍥剧墖 + mlTextBoxEdit鎵╂暎绠¢暱搴�.LeadingIcon = GlobalResource.GetLeadingIcon(); + mlTextBoxEdit涓績璺濈.LeadingIcon = GlobalResource.GetLeadingIcon(); + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.LeadingIcon = GlobalResource.GetLeadingIcon(); + mlTextBoxEdit闅旇垖鍦嗚鍗婂緞.LeadingIcon = GlobalResource.GetLeadingIcon(); + } + public bool Verify(out string error) + { + error = ""; + bool isOk = true; + if (string.IsNullOrEmpty(mlTextBoxEdit鎵╂暎绠¢暱搴�.Text) || mlTextBoxEdit鎵╂暎绠¢暱搴�.Text == "璇疯緭鍏ユ墿鏁g闀垮害" || double.Parse(mlTextBoxEdit鎵╂暎绠¢暱搴�.Text) == 0) + { + error = "璇疯緭鍏ユ墿鏁g闀垮害锛�"; + isOk = false; + mlTextBoxEdit鎵╂暎绠¢暱搴�.TrailingIcon = GlobalResource.GetTipTrailingIcon(); + skyLabel鎵╂暎绠¢暱搴�.Visible = true; + } + if (string.IsNullOrEmpty(mlTextBoxEdit涓績璺濈.Text) || mlTextBoxEdit涓績璺濈.Text == "璇疯緭鍏ヤ腑蹇冭窛绂�" || double.Parse(mlTextBoxEdit涓績璺濈.Text) == 0) + { + error = "璇疯緭鍏ヤ腑蹇冭窛绂伙紒"; + isOk = false; + mlTextBoxEdit涓績璺濈.TrailingIcon = GlobalResource.GetTipTrailingIcon(); + skyLabel涓績璺濈.Visible = true; + } + if (string.IsNullOrEmpty(mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.Text) || mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.Text == "璇疯緭鍏ユ墿鏁g鍑哄彛鐩村緞" || double.Parse(mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.Text) == 0) + { + error = "璇疯緭鍏ユ墿鏁g鍑哄彛鐩村緞锛�"; + isOk = false; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.TrailingIcon = GlobalResource.GetTipTrailingIcon(); + skyLabel鎵╂暎绠″嚭鍙g洿寰�.Visible = true; + } + if (string.IsNullOrEmpty(mlTextBoxEdit闅旇垖鍦嗚鍗婂緞.Text) || mlTextBoxEdit闅旇垖鍦嗚鍗婂緞.Text == "璇疯緭鍏ラ殧鑸屽渾瑙掑崐寰�" || double.Parse(mlTextBoxEdit闅旇垖鍦嗚鍗婂緞.Text) == 0) + { + error = "璇疯緭鍏ラ殧鑸屽渾瑙掑崐寰勶紒"; + isOk = false; + mlTextBoxEdit闅旇垖鍦嗚鍗婂緞.TrailingIcon = GlobalResource.GetTipTrailingIcon(); + skyLabel闅旇垖鍦嗚鍗婂緞.Visible = true; + } + return isOk; + } + private void BuildAllTips() + { + metroToolTip渚ч潰鍑哄彛鍨傜洿.SetToolTip(this.mlTextBoxEdit鎵╂暎绠¢暱搴�, "鎵╂暎绠¢暱搴�"); + metroToolTip渚ч潰鍑哄彛鍨傜洿.SetToolTip(this.mlTextBoxEdit涓績璺濈, "涓績璺濈"); + metroToolTip渚ч潰鍑哄彛鍨傜洿.SetToolTip(this.mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�, "鎵╂暎绠″嚭鍙g洿寰�"); + metroToolTip渚ч潰鍑哄彛鍨傜洿.SetToolTip(this.mlTextBoxEdit闅旇垖鍦嗚鍗婂緞, "闅旇垖鍦嗚鍗婂緞"); + } + private void mlTextBoxEdit鎵╂暎绠¢暱搴Enter(object sender, EventArgs e) + { + skyLabel鎵╂暎绠¢暱搴�.Visible = false; + mlTextBoxEdit鎵╂暎绠¢暱搴�.TrailingIcon = null; + if (mlTextBoxEdit鎵╂暎绠¢暱搴�.Text == "璇疯緭鍏ユ墿鏁g闀垮害") + { + mlTextBoxEdit鎵╂暎绠¢暱搴�.Text = ""; + } + } + private void mlTextBoxEdit鎵╂暎绠¢暱搴Leave(object sender, EventArgs e) + { + if (string.IsNullOrEmpty(mlTextBoxEdit鎵╂暎绠¢暱搴�.Text) || double.Parse(mlTextBoxEdit鎵╂暎绠¢暱搴�.Text) == 0) + { + mlTextBoxEdit鎵╂暎绠¢暱搴�.Text = "璇疯緭鍏ユ墿鏁g闀垮害"; + } + } + private void mlTextBoxEdit鎵╂暎绠¢暱搴TextChanged(object sender, EventArgs e) + { + foreach (var s in mlTextBoxEdit鎵╂暎绠¢暱搴�.Text) + { + if (!double.TryParse(mlTextBoxEdit鎵╂暎绠¢暱搴�.Text, out double result) && !string.IsNullOrEmpty(mlTextBoxEdit鎵╂暎绠¢暱搴�.Text) && mlTextBoxEdit鎵╂暎绠¢暱搴�.Text != "璇疯緭鍏ユ墿鏁g闀垮害") + { + mlTextBoxEdit鎵╂暎绠¢暱搴�.UseAccent = true; + mlTextBoxEdit鎵╂暎绠¢暱搴�.ShowAssistiveText = true; + mlTextBoxEdit鎵╂暎绠¢暱搴�.Text = ""; + break; + } + else + { + mlTextBoxEdit鎵╂暎绠¢暱搴�.ShowAssistiveText = false; + mlTextBoxEdit鎵╂暎绠¢暱搴�.UseAccent = false; + } + } + } + private void mlTextBoxEdit涓績璺濈_Enter(object sender, EventArgs e) + { + skyLabel涓績璺濈.Visible = false; + mlTextBoxEdit涓績璺濈.TrailingIcon = null; + if (mlTextBoxEdit涓績璺濈.Text == "璇疯緭鍏ヤ腑蹇冭窛绂�") + { + mlTextBoxEdit涓績璺濈.Text = ""; + } + } + private void mlTextBoxEdit涓績璺濈_Leave(object sender, EventArgs e) + { + if (string.IsNullOrEmpty(mlTextBoxEdit涓績璺濈.Text) || double.Parse(mlTextBoxEdit涓績璺濈.Text) == 0) + { + mlTextBoxEdit涓績璺濈.Text = "璇疯緭鍏ヤ腑蹇冭窛绂�"; + } + } + private void mlTextBoxEdit涓績璺濈_TextChanged(object sender, EventArgs e) + { + foreach (var s in mlTextBoxEdit涓績璺濈.Text) + { + if (!double.TryParse(mlTextBoxEdit涓績璺濈.Text, out double result) && !string.IsNullOrEmpty(mlTextBoxEdit涓績璺濈.Text) && mlTextBoxEdit涓績璺濈.Text != "璇疯緭鍏ヤ腑蹇冭窛绂�") + { + mlTextBoxEdit涓績璺濈.UseAccent = true; + mlTextBoxEdit涓績璺濈.ShowAssistiveText = true; + mlTextBoxEdit涓績璺濈.Text = ""; + break; + } + else + { + mlTextBoxEdit涓績璺濈.ShowAssistiveText = false; + mlTextBoxEdit涓績璺濈.UseAccent = false; + } + } + } + + private void mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰刜Enter(object sender, EventArgs e) + { + skyLabel鎵╂暎绠″嚭鍙g洿寰�.Visible = false; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.TrailingIcon = null; + if (mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.Text == "璇疯緭鍏ユ墿鏁g鍑哄彛鐩村緞") + { + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.Text = ""; + } + } + + private void mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰刜Leave(object sender, EventArgs e) + { + if (string.IsNullOrEmpty(mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.Text) || double.Parse(mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.Text) == 0) + { + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.Text = "璇疯緭鍏ユ墿鏁g鍑哄彛鐩村緞"; + } + } + + private void mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰刜TextChanged(object sender, EventArgs e) + { + foreach (var s in mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.Text) + { + if (!double.TryParse(mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.Text, out double result) && !string.IsNullOrEmpty(mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.Text) && mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.Text != "璇疯緭鍏ユ墿鏁g鍑哄彛鐩村緞") + { + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.UseAccent = true; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.ShowAssistiveText = true; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.Text = ""; + break; + } + else + { + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.ShowAssistiveText = false; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.UseAccent = false; + } + } + } + + private void mlTextBoxEdit闅旇垖鍦嗚鍗婂緞_Leave(object sender, EventArgs e) + { + if (string.IsNullOrEmpty(mlTextBoxEdit闅旇垖鍦嗚鍗婂緞.Text) || double.Parse(mlTextBoxEdit闅旇垖鍦嗚鍗婂緞.Text) == 0) + { + mlTextBoxEdit闅旇垖鍦嗚鍗婂緞.Text = "璇疯緭鍏ラ殧鑸屽渾瑙掑崐寰�"; + } + } + + private void mlTextBoxEdit闅旇垖鍦嗚鍗婂緞_Enter(object sender, EventArgs e) + { + skyLabel闅旇垖鍦嗚鍗婂緞.Visible = false; + mlTextBoxEdit闅旇垖鍦嗚鍗婂緞.TrailingIcon = null; + if (mlTextBoxEdit闅旇垖鍦嗚鍗婂緞.Text == "璇疯緭鍏ラ殧鑸屽渾瑙掑崐寰�") + { + mlTextBoxEdit闅旇垖鍦嗚鍗婂緞.Text = ""; + } + } + + private void mlTextBoxEdit闅旇垖鍦嗚鍗婂緞_TextChanged(object sender, EventArgs e) + { + foreach (var s in mlTextBoxEdit闅旇垖鍦嗚鍗婂緞.Text) + { + if (!double.TryParse(mlTextBoxEdit闅旇垖鍦嗚鍗婂緞.Text, out double result) && !string.IsNullOrEmpty(mlTextBoxEdit闅旇垖鍦嗚鍗婂緞.Text) && mlTextBoxEdit闅旇垖鍦嗚鍗婂緞.Text != "璇疯緭鍏ラ殧鑸屽渾瑙掑崐寰�") + { + mlTextBoxEdit闅旇垖鍦嗚鍗婂緞.UseAccent = true; + mlTextBoxEdit闅旇垖鍦嗚鍗婂緞.ShowAssistiveText = true; + mlTextBoxEdit闅旇垖鍦嗚鍗婂緞.Text = ""; + break; + } + else + { + mlTextBoxEdit闅旇垖鍦嗚鍗婂緞.ShowAssistiveText = false; + mlTextBoxEdit闅旇垖鍦嗚鍗婂緞.UseAccent = false; + } + } + } + } + +} diff --git "a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\207\272\346\260\264\350\256\276\350\256\241/sideCurveExitControl.resx" "b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\207\272\346\260\264\350\256\276\350\256\241/sideCurveExitControl.resx" new file mode 100644 index 0000000..59a48f0 --- /dev/null +++ "b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\207\272\346\260\264\350\256\276\350\256\241/sideCurveExitControl.resx" @@ -0,0 +1,123 @@ +锘�<?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> + <metadata name="metroToolTip渚ч潰鍑哄彛鍨傜洿.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> + <value>17, 17</value> + </metadata> +</root> \ No newline at end of file diff --git "a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\207\272\346\260\264\350\256\276\350\256\241/sideLineExitControl.cs" "b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\207\272\346\260\264\350\256\276\350\256\241/sideLineExitControl.cs" new file mode 100644 index 0000000..7b93ce2 --- /dev/null +++ "b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\207\272\346\260\264\350\256\276\350\256\241/sideLineExitControl.cs" @@ -0,0 +1,357 @@ +锘縰sing DPumpHydr.WinFrmUI.RLT.Controls; +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; + +namespace DPumpHydr.WinFrmUI.Volute +{ + public partial class sidelineExitControl : UserControl + { + public sidelineExitControl() + { + InitializeComponent(); + BuildAllTips(); + BuildIcon(); + } + private void BuildIcon() + { + //杈撳叆妗嗗墠缂�鍥剧墖 + mlTextBoxEditR1.LeadingIcon = GlobalResource.GetLeadingIcon(); + mlTextBoxEditR2.LeadingIcon = GlobalResource.GetLeadingIcon(); + mlTextBoxEdith1.LeadingIcon = GlobalResource.GetLeadingIcon(); + mlTextBoxEditA.LeadingIcon = GlobalResource.GetLeadingIcon(); + mlTextBoxEditL.LeadingIcon = GlobalResource.GetLeadingIcon(); + mlTextBoxEditr.LeadingIcon = GlobalResource.GetLeadingIcon(); + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.LeadingIcon = GlobalResource.GetLeadingIcon(); + } + public bool Verify(out string error) + { + error = ""; + bool isOk = true; + if (string.IsNullOrEmpty(mlTextBoxEditR1.Text) || mlTextBoxEditR1.Text == "璇疯緭鍏�" || double.Parse(mlTextBoxEditR1.Text) == 0) + { + error = "璇疯緭鍏1锛�"; + isOk = false; + mlTextBoxEditR1.TrailingIcon = GlobalResource.GetTipTrailingIcon(); + skyLabelR1.Visible = true; + } + if (string.IsNullOrEmpty(mlTextBoxEditR2.Text) || mlTextBoxEditR2.Text == "璇疯緭鍏�" || double.Parse(mlTextBoxEditR2.Text) == 0) + { + error = "璇疯緭鍏2锛�"; + isOk = false; + mlTextBoxEditR2.TrailingIcon = GlobalResource.GetTipTrailingIcon(); + skyLabelR2.Visible = true; + } + if (string.IsNullOrEmpty(mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.Text) || mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.Text == "璇疯緭鍏ユ墿鏁g鍑哄彛鐩村緞" || double.Parse(mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.Text) == 0) + { + error = "璇疯緭鍏ユ墿鏁g鍑哄彛鐩村緞锛�"; + isOk = false; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.TrailingIcon = GlobalResource.GetTipTrailingIcon(); + skyLabel鎵╂暎绠″嚭鍙g洿寰�.Visible = true; + } + if (string.IsNullOrEmpty(mlTextBoxEdith1.Text) || mlTextBoxEdith1.Text == "璇疯緭鍏�" || double.Parse(mlTextBoxEdith1.Text) == 0) + { + error = "璇疯緭鍏1锛�"; + isOk = false; + mlTextBoxEdith1.TrailingIcon = GlobalResource.GetTipTrailingIcon(); + skyLabelh1.Visible = true; + } + if (string.IsNullOrEmpty(mlTextBoxEditA.Text) || mlTextBoxEditA.Text == "璇疯緭鍏�" || double.Parse(mlTextBoxEditA.Text) == 0) + { + error = "璇疯緭鍏2锛�"; + isOk = false; + mlTextBoxEditA.TrailingIcon = GlobalResource.GetTipTrailingIcon(); + skyLabelA.Visible = true; + } + if (string.IsNullOrEmpty(mlTextBoxEditL.Text) || mlTextBoxEditL.Text == "璇疯緭鍏�" || double.Parse(mlTextBoxEditL.Text) == 0) + { + error = "璇疯緭鍏锛�"; + isOk = false; + mlTextBoxEditL.TrailingIcon = GlobalResource.GetTipTrailingIcon(); + skyLabelL.Visible = true; + } + if (string.IsNullOrEmpty(mlTextBoxEditr.Text) || mlTextBoxEditr.Text == "璇疯緭鍏�" || double.Parse(mlTextBoxEditr.Text) == 0) + { + error = "璇疯緭鍏锛�"; + isOk = false; + mlTextBoxEditr.TrailingIcon = GlobalResource.GetTipTrailingIcon(); + skyLabelr.Visible = true; + } + return isOk; + } + private void BuildAllTips() + { + metroToolTip渚ч潰鍑哄彛鐩寸嚎.SetToolTip(this.mlTextBoxEditR1, "R1"); + metroToolTip渚ч潰鍑哄彛鐩寸嚎.SetToolTip(this.mlTextBoxEditR2, "R2"); + metroToolTip渚ч潰鍑哄彛鐩寸嚎.SetToolTip(this.mlTextBoxEdith1, "h1"); + metroToolTip渚ч潰鍑哄彛鐩寸嚎.SetToolTip(this.mlTextBoxEditA, "A"); + metroToolTip渚ч潰鍑哄彛鐩寸嚎.SetToolTip(this.mlTextBoxEditL, "L"); + metroToolTip渚ч潰鍑哄彛鐩寸嚎.SetToolTip(this.mlTextBoxEditr, "r"); + metroToolTip渚ч潰鍑哄彛鐩寸嚎.SetToolTip(this.mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�, "鎵╂暎绠″嚭鍙g洿寰�"); + } + private void mlTextBoxEditR1_Enter(object sender, EventArgs e) + { + skyLabelR1.Visible = false; + mlTextBoxEditR1.TrailingIcon = null; + if (mlTextBoxEditR1.Text == "璇疯緭鍏�") + { + mlTextBoxEditR1.Text = ""; + } + } + + private void mlTextBoxEditR1_Leave(object sender, EventArgs e) + { + if (string.IsNullOrEmpty(mlTextBoxEditR1.Text) || double.Parse(mlTextBoxEditR1.Text) == 0) + { + mlTextBoxEditR1.Text = "璇疯緭鍏�"; + } + } + + private void mlTextBoxEditR1_TextChanged(object sender, EventArgs e) + { + foreach (var s in mlTextBoxEditR1.Text) + { + if (!double.TryParse(mlTextBoxEditR1.Text, out double result) && !string.IsNullOrEmpty(mlTextBoxEditR1.Text) && mlTextBoxEditR1.Text != "璇疯緭鍏�") + { + mlTextBoxEditR1.UseAccent = true; + mlTextBoxEditR1.ShowAssistiveText = true; + mlTextBoxEditR1.Text = ""; + break; + } + else + { + mlTextBoxEditR1.ShowAssistiveText = false; + mlTextBoxEditR1.UseAccent = false; + } + } + } + + private void mlTextBoxEditR2_Enter(object sender, EventArgs e) + { + skyLabelR2.Visible = false; + mlTextBoxEditR2.TrailingIcon = null; + if (mlTextBoxEditR2.Text == "璇疯緭鍏�") + { + mlTextBoxEditR2.Text = ""; + } + } + + private void mlTextBoxEditR2_Leave(object sender, EventArgs e) + { + if (string.IsNullOrEmpty(mlTextBoxEditR2.Text) || double.Parse(mlTextBoxEditR2.Text) == 0) + { + mlTextBoxEditR2.Text = "璇疯緭鍏�"; + } + } + + private void mlTextBoxEditR2_TextChanged(object sender, EventArgs e) + { + foreach (var s in mlTextBoxEditR2.Text) + { + if (!double.TryParse(mlTextBoxEditR2.Text, out double result) && !string.IsNullOrEmpty(mlTextBoxEditR2.Text) && mlTextBoxEditR2.Text != "璇疯緭鍏�") + { + mlTextBoxEditR2.UseAccent = true; + mlTextBoxEditR2.ShowAssistiveText = true; + mlTextBoxEditR2.Text = ""; + break; + } + else + { + mlTextBoxEditR2.ShowAssistiveText = false; + mlTextBoxEditR2.UseAccent = false; + } + } + } + + private void mlTextBoxEdith1_Enter(object sender, EventArgs e) + { + skyLabelh1.Visible = false; + mlTextBoxEdith1.TrailingIcon = null; + if (mlTextBoxEdith1.Text == "璇疯緭鍏�") + { + mlTextBoxEdith1.Text = ""; + } + } + + private void mlTextBoxEdith1_Leave(object sender, EventArgs e) + { + if (string.IsNullOrEmpty(mlTextBoxEdith1.Text) || double.Parse(mlTextBoxEdith1.Text) == 0) + { + mlTextBoxEdith1.Text = "璇疯緭鍏�"; + } + } + + private void mlTextBoxEdith1_TextChanged(object sender, EventArgs e) + { + foreach (var s in mlTextBoxEdith1.Text) + { + if (!double.TryParse(mlTextBoxEdith1.Text, out double result) && !string.IsNullOrEmpty(mlTextBoxEdith1.Text) && mlTextBoxEdith1.Text != "璇疯緭鍏�") + { + mlTextBoxEdith1.UseAccent = true; + mlTextBoxEdith1.ShowAssistiveText = true; + mlTextBoxEdith1.Text = ""; + break; + } + else + { + mlTextBoxEdith1.ShowAssistiveText = false; + mlTextBoxEdith1.UseAccent = false; + } + } + } + + private void mlTextBoxEditA_Enter(object sender, EventArgs e) + { + skyLabelA.Visible = false; + mlTextBoxEditA.TrailingIcon = null; + if (mlTextBoxEditA.Text == "璇疯緭鍏�") + { + mlTextBoxEditA.Text = ""; + } + } + + private void mlTextBoxEditA_Leave(object sender, EventArgs e) + { + if (string.IsNullOrEmpty(mlTextBoxEditA.Text) || double.Parse(mlTextBoxEditA.Text) == 0) + { + mlTextBoxEditA.Text = "璇疯緭鍏�"; + } + } + + private void mlTextBoxEditA_TextChanged(object sender, EventArgs e) + { + foreach (var s in mlTextBoxEditA.Text) + { + if (!double.TryParse(mlTextBoxEditA.Text, out double result) && !string.IsNullOrEmpty(mlTextBoxEditA.Text) && mlTextBoxEditA.Text != "璇疯緭鍏�") + { + mlTextBoxEditA.UseAccent = true; + mlTextBoxEditA.ShowAssistiveText = true; + mlTextBoxEditA.Text = ""; + break; + } + else + { + mlTextBoxEditA.ShowAssistiveText = false; + mlTextBoxEditA.UseAccent = false; + } + } + } + + private void mlTextBoxEditL_Enter(object sender, EventArgs e) + { + skyLabelL.Visible = false; + mlTextBoxEditL.TrailingIcon = null; + if (mlTextBoxEditL.Text == "璇疯緭鍏�") + { + mlTextBoxEditL.Text = ""; + } + } + + private void mlTextBoxEditL_Leave(object sender, EventArgs e) + { + if (string.IsNullOrEmpty(mlTextBoxEditL.Text) || double.Parse(mlTextBoxEditL.Text) == 0) + { + mlTextBoxEditL.Text = "璇疯緭鍏�"; + } + } + + private void mlTextBoxEditL_TextChanged(object sender, EventArgs e) + { + foreach (var s in mlTextBoxEditL.Text) + { + if (!double.TryParse(mlTextBoxEditL.Text, out double result) && !string.IsNullOrEmpty(mlTextBoxEditL.Text) && mlTextBoxEditL.Text != "璇疯緭鍏�") + { + mlTextBoxEditL.UseAccent = true; + mlTextBoxEditL.ShowAssistiveText = true; + mlTextBoxEditL.Text = ""; + break; + } + else + { + mlTextBoxEditL.ShowAssistiveText = false; + mlTextBoxEditL.UseAccent = false; + } + } + } + + private void mlTextBoxEditr_Enter(object sender, EventArgs e) + { + skyLabelr.Visible = false; + mlTextBoxEditr.TrailingIcon = null; + if (mlTextBoxEditr.Text == "璇疯緭鍏�") + { + mlTextBoxEditr.Text = ""; + } + } + + private void mlTextBoxEditr_Leave(object sender, EventArgs e) + { + if (string.IsNullOrEmpty(mlTextBoxEditr.Text) || double.Parse(mlTextBoxEditr.Text) == 0) + { + mlTextBoxEditr.Text = "璇疯緭鍏�"; + } + } + + private void mlTextBoxEditr_TextChanged(object sender, EventArgs e) + { + foreach (var s in mlTextBoxEditr.Text) + { + if (!double.TryParse(mlTextBoxEditr.Text, out double result) && !string.IsNullOrEmpty(mlTextBoxEditr.Text) && mlTextBoxEditr.Text != "璇疯緭鍏�") + { + mlTextBoxEditr.UseAccent = true; + mlTextBoxEditr.ShowAssistiveText = true; + mlTextBoxEditr.Text = ""; + break; + } + else + { + mlTextBoxEditr.ShowAssistiveText = false; + mlTextBoxEditr.UseAccent = false; + } + } + } + + private void mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰刜Enter(object sender, EventArgs e) + { + skyLabel鎵╂暎绠″嚭鍙g洿寰�.Visible = false; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.TrailingIcon = null; + if (mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.Text == "璇疯緭鍏ユ墿鏁g鍑哄彛鐩村緞") + { + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.Text = ""; + } + } + + private void mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰刜Leave(object sender, EventArgs e) + { + if (string.IsNullOrEmpty(mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.Text) || double.Parse(mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.Text) == 0) + { + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.Text = "璇疯緭鍏ユ墿鏁g鍑哄彛鐩村緞"; + } + } + + private void mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰刜TextChanged(object sender, EventArgs e) + { + foreach (var s in mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.Text) + { + if (!double.TryParse(mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.Text, out double result) && !string.IsNullOrEmpty(mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.Text) && mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.Text != "璇疯緭鍏ユ墿鏁g鍑哄彛鐩村緞") + { + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.UseAccent = true; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.ShowAssistiveText = true; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.Text = ""; + break; + } + else + { + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.ShowAssistiveText = false; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.UseAccent = false; + } + } + } + } +} diff --git "a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\207\272\346\260\264\350\256\276\350\256\241/sidelineExitControl.Designer.cs" "b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\207\272\346\260\264\350\256\276\350\256\241/sidelineExitControl.Designer.cs" new file mode 100644 index 0000000..d468608 --- /dev/null +++ "b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\207\272\346\260\264\350\256\276\350\256\241/sidelineExitControl.Designer.cs" @@ -0,0 +1,481 @@ +锘縩amespace DPumpHydr.WinFrmUI.Volute +{ + partial class sidelineExitControl + { + /// <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 缁勪欢璁捐鍣ㄧ敓鎴愮殑浠g爜 + + /// <summary> + /// 璁捐鍣ㄦ敮鎸佹墍闇�鐨勬柟娉� - 涓嶈淇敼 + /// 浣跨敤浠g爜缂栬緫鍣ㄤ慨鏀规鏂规硶鐨勫唴瀹广�� + /// </summary> + private void InitializeComponent() + { + thunderGroupBox2 = new RLT.Controls.ThunderGroupBox(); + skyLabelr = new RLT.Controls.SkyLabel(); + mlTextBoxEditr = new RLT.Controls.MaterialTextBoxEdit(); + skyLabelL = new RLT.Controls.SkyLabel(); + mlTextBoxEditL = new RLT.Controls.MaterialTextBoxEdit(); + skyLabelA = new RLT.Controls.SkyLabel(); + mlTextBoxEditA = new RLT.Controls.MaterialTextBoxEdit(); + skyLabelR2 = new RLT.Controls.SkyLabel(); + mlTextBoxEditR2 = new RLT.Controls.MaterialTextBoxEdit(); + skyLabel鎵╂暎绠″嚭鍙g洿寰� = new RLT.Controls.SkyLabel(); + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰� = new RLT.Controls.MaterialTextBoxEdit(); + skyLabelh1 = new RLT.Controls.SkyLabel(); + skyLabelR1 = new RLT.Controls.SkyLabel(); + mlTextBoxEdith1 = new RLT.Controls.MaterialTextBoxEdit(); + mlTextBoxEditR1 = new RLT.Controls.MaterialTextBoxEdit(); + metroToolTip渚ч潰鍑哄彛鐩寸嚎 = new RLT.Controls.MetroToolTip(); + thunderGroupBox2.SuspendLayout(); + SuspendLayout(); + // + // thunderGroupBox2 + // + thunderGroupBox2.BackColor = System.Drawing.SystemColors.ControlLight; + thunderGroupBox2.BodyColorA = System.Drawing.Color.Silver; + thunderGroupBox2.BodyColorB = System.Drawing.Color.DarkGray; + thunderGroupBox2.BodyColorC = System.Drawing.SystemColors.ButtonFace; + thunderGroupBox2.BodyColorD = System.Drawing.SystemColors.ButtonFace; + thunderGroupBox2.Controls.Add(skyLabelr); + thunderGroupBox2.Controls.Add(mlTextBoxEditr); + thunderGroupBox2.Controls.Add(skyLabelL); + thunderGroupBox2.Controls.Add(mlTextBoxEditL); + thunderGroupBox2.Controls.Add(skyLabelA); + thunderGroupBox2.Controls.Add(mlTextBoxEditA); + thunderGroupBox2.Controls.Add(skyLabelR2); + thunderGroupBox2.Controls.Add(mlTextBoxEditR2); + thunderGroupBox2.Controls.Add(skyLabel鎵╂暎绠″嚭鍙g洿寰�); + thunderGroupBox2.Controls.Add(mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�); + thunderGroupBox2.Controls.Add(skyLabelh1); + thunderGroupBox2.Controls.Add(skyLabelR1); + thunderGroupBox2.Controls.Add(mlTextBoxEdith1); + thunderGroupBox2.Controls.Add(mlTextBoxEditR1); + thunderGroupBox2.Dock = System.Windows.Forms.DockStyle.Fill; + thunderGroupBox2.Font = new System.Drawing.Font("Tw Cen MT Condensed Extra Bold", 10F, System.Drawing.FontStyle.Bold); + thunderGroupBox2.ForeColor = System.Drawing.Color.Black; + thunderGroupBox2.Location = new System.Drawing.Point(0, 0); + thunderGroupBox2.Name = "thunderGroupBox2"; + thunderGroupBox2.Size = new System.Drawing.Size(325, 308); + thunderGroupBox2.TabIndex = 31; + thunderGroupBox2.Text = "杈撳叆鍙傛暟"; + // + // skyLabelr + // + skyLabelr.AutoSize = true; + skyLabelr.Font = new System.Drawing.Font("Swis721 BlkCn BT", 7F, System.Drawing.FontStyle.Bold); + skyLabelr.ForeColor = System.Drawing.Color.DeepPink; + skyLabelr.Location = new System.Drawing.Point(164, 218); + skyLabelr.Name = "skyLabelr"; + skyLabelr.Size = new System.Drawing.Size(46, 12); + skyLabelr.TabIndex = 76; + skyLabelr.Text = "璇疯緭鍏!"; + skyLabelr.Visible = false; + // + // mlTextBoxEditr + // + mlTextBoxEditr.AnimateReadOnly = false; + mlTextBoxEditr.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.None; + mlTextBoxEditr.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.None; + mlTextBoxEditr.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + mlTextBoxEditr.CharacterCasing = System.Windows.Forms.CharacterCasing.Normal; + mlTextBoxEditr.Depth = 0; + mlTextBoxEditr.Font = new System.Drawing.Font("Microsoft Sans Serif", 13F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); + mlTextBoxEditr.HelperText = "杈撳叆閿欒锛�"; + mlTextBoxEditr.HideSelection = true; + mlTextBoxEditr.Hint = "r"; + mlTextBoxEditr.LeadingIcon = null; + mlTextBoxEditr.Location = new System.Drawing.Point(164, 167); + mlTextBoxEditr.MaxLength = 32767; + mlTextBoxEditr.MouseState = RLT.Helper.MaterialDrawHelper.MaterialMouseState.OUT; + mlTextBoxEditr.Name = "mlTextBoxEditr"; + mlTextBoxEditr.NullValuePromptText = null; + mlTextBoxEditr.PasswordChar = '\0'; + mlTextBoxEditr.PrefixSuffix = RLT.Controls.MaterialTextBoxEdit.PrefixSuffixTypes.Suffix; + mlTextBoxEditr.PrefixSuffixText = "mm"; + mlTextBoxEditr.ReadOnly = false; + mlTextBoxEditr.RightToLeft = System.Windows.Forms.RightToLeft.Yes; + mlTextBoxEditr.SelectedText = ""; + mlTextBoxEditr.SelectionLength = 0; + mlTextBoxEditr.SelectionStart = 0; + mlTextBoxEditr.ShortcutsEnabled = true; + mlTextBoxEditr.Size = new System.Drawing.Size(145, 48); + mlTextBoxEditr.TabIndex = 75; + mlTextBoxEditr.TabStop = false; + mlTextBoxEditr.Text = "璇疯緭鍏�"; + mlTextBoxEditr.TextAlign = System.Windows.Forms.HorizontalAlignment.Left; + mlTextBoxEditr.TrailingIcon = null; + mlTextBoxEditr.UseAccent = false; + mlTextBoxEditr.UseSystemPasswordChar = false; + mlTextBoxEditr.Enter += mlTextBoxEditr_Enter; + mlTextBoxEditr.Leave += mlTextBoxEditr_Leave; + mlTextBoxEditr.TextChanged += mlTextBoxEditr_TextChanged; + // + // skyLabelL + // + skyLabelL.AutoSize = true; + skyLabelL.Font = new System.Drawing.Font("Swis721 BlkCn BT", 7F, System.Drawing.FontStyle.Bold); + skyLabelL.ForeColor = System.Drawing.Color.DeepPink; + skyLabelL.Location = new System.Drawing.Point(13, 218); + skyLabelL.Name = "skyLabelL"; + skyLabelL.Size = new System.Drawing.Size(48, 12); + skyLabelL.TabIndex = 74; + skyLabelL.Text = "璇疯緭鍏!"; + skyLabelL.Visible = false; + // + // mlTextBoxEditL + // + mlTextBoxEditL.AnimateReadOnly = false; + mlTextBoxEditL.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.None; + mlTextBoxEditL.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.None; + mlTextBoxEditL.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + mlTextBoxEditL.CharacterCasing = System.Windows.Forms.CharacterCasing.Normal; + mlTextBoxEditL.Depth = 0; + mlTextBoxEditL.Font = new System.Drawing.Font("Microsoft Sans Serif", 13F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); + mlTextBoxEditL.HelperText = "杈撳叆閿欒锛�"; + mlTextBoxEditL.HideSelection = true; + mlTextBoxEditL.Hint = "L"; + mlTextBoxEditL.LeadingIcon = null; + mlTextBoxEditL.Location = new System.Drawing.Point(13, 167); + mlTextBoxEditL.MaxLength = 32767; + mlTextBoxEditL.MouseState = RLT.Helper.MaterialDrawHelper.MaterialMouseState.OUT; + mlTextBoxEditL.Name = "mlTextBoxEditL"; + mlTextBoxEditL.NullValuePromptText = null; + mlTextBoxEditL.PasswordChar = '\0'; + mlTextBoxEditL.PrefixSuffix = RLT.Controls.MaterialTextBoxEdit.PrefixSuffixTypes.Suffix; + mlTextBoxEditL.PrefixSuffixText = "mm"; + mlTextBoxEditL.ReadOnly = false; + mlTextBoxEditL.RightToLeft = System.Windows.Forms.RightToLeft.Yes; + mlTextBoxEditL.SelectedText = ""; + mlTextBoxEditL.SelectionLength = 0; + mlTextBoxEditL.SelectionStart = 0; + mlTextBoxEditL.ShortcutsEnabled = true; + mlTextBoxEditL.Size = new System.Drawing.Size(145, 48); + mlTextBoxEditL.TabIndex = 73; + mlTextBoxEditL.TabStop = false; + mlTextBoxEditL.Text = "璇疯緭鍏�"; + mlTextBoxEditL.TextAlign = System.Windows.Forms.HorizontalAlignment.Left; + mlTextBoxEditL.TrailingIcon = null; + mlTextBoxEditL.UseAccent = false; + mlTextBoxEditL.UseSystemPasswordChar = false; + mlTextBoxEditL.Enter += mlTextBoxEditL_Enter; + mlTextBoxEditL.Leave += mlTextBoxEditL_Leave; + mlTextBoxEditL.TextChanged += mlTextBoxEditL_TextChanged; + // + // skyLabelA + // + skyLabelA.AutoSize = true; + skyLabelA.Font = new System.Drawing.Font("Swis721 BlkCn BT", 7F, System.Drawing.FontStyle.Bold); + skyLabelA.ForeColor = System.Drawing.Color.DeepPink; + skyLabelA.Location = new System.Drawing.Point(164, 152); + skyLabelA.Name = "skyLabelA"; + skyLabelA.Size = new System.Drawing.Size(48, 12); + skyLabelA.TabIndex = 72; + skyLabelA.Text = "璇疯緭鍏!"; + skyLabelA.Visible = false; + // + // mlTextBoxEditA + // + mlTextBoxEditA.AnimateReadOnly = false; + mlTextBoxEditA.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.None; + mlTextBoxEditA.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.None; + mlTextBoxEditA.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + mlTextBoxEditA.CharacterCasing = System.Windows.Forms.CharacterCasing.Normal; + mlTextBoxEditA.Depth = 0; + mlTextBoxEditA.Font = new System.Drawing.Font("Microsoft Sans Serif", 13F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); + mlTextBoxEditA.HelperText = "杈撳叆閿欒锛�"; + mlTextBoxEditA.HideSelection = true; + mlTextBoxEditA.Hint = "A"; + mlTextBoxEditA.LeadingIcon = null; + mlTextBoxEditA.Location = new System.Drawing.Point(164, 101); + mlTextBoxEditA.MaxLength = 32767; + mlTextBoxEditA.MouseState = RLT.Helper.MaterialDrawHelper.MaterialMouseState.OUT; + mlTextBoxEditA.Name = "mlTextBoxEditA"; + mlTextBoxEditA.NullValuePromptText = null; + mlTextBoxEditA.PasswordChar = '\0'; + mlTextBoxEditA.PrefixSuffix = RLT.Controls.MaterialTextBoxEdit.PrefixSuffixTypes.Suffix; + mlTextBoxEditA.PrefixSuffixText = "mm"; + mlTextBoxEditA.ReadOnly = false; + mlTextBoxEditA.RightToLeft = System.Windows.Forms.RightToLeft.Yes; + mlTextBoxEditA.SelectedText = ""; + mlTextBoxEditA.SelectionLength = 0; + mlTextBoxEditA.SelectionStart = 0; + mlTextBoxEditA.ShortcutsEnabled = true; + mlTextBoxEditA.Size = new System.Drawing.Size(145, 48); + mlTextBoxEditA.TabIndex = 71; + mlTextBoxEditA.TabStop = false; + mlTextBoxEditA.Text = "璇疯緭鍏�"; + mlTextBoxEditA.TextAlign = System.Windows.Forms.HorizontalAlignment.Left; + mlTextBoxEditA.TrailingIcon = null; + mlTextBoxEditA.UseAccent = false; + mlTextBoxEditA.UseSystemPasswordChar = false; + mlTextBoxEditA.Enter += mlTextBoxEditA_Enter; + mlTextBoxEditA.Leave += mlTextBoxEditA_Leave; + mlTextBoxEditA.TextChanged += mlTextBoxEditA_TextChanged; + // + // skyLabelR2 + // + skyLabelR2.AutoSize = true; + skyLabelR2.Font = new System.Drawing.Font("Swis721 BlkCn BT", 7F, System.Drawing.FontStyle.Bold); + skyLabelR2.ForeColor = System.Drawing.Color.DeepPink; + skyLabelR2.Location = new System.Drawing.Point(164, 86); + skyLabelR2.Name = "skyLabelR2"; + skyLabelR2.Size = new System.Drawing.Size(55, 12); + skyLabelR2.TabIndex = 70; + skyLabelR2.Text = "璇疯緭鍏2!"; + skyLabelR2.Visible = false; + // + // mlTextBoxEditR2 + // + mlTextBoxEditR2.AnimateReadOnly = false; + mlTextBoxEditR2.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.None; + mlTextBoxEditR2.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.None; + mlTextBoxEditR2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + mlTextBoxEditR2.CharacterCasing = System.Windows.Forms.CharacterCasing.Normal; + mlTextBoxEditR2.Depth = 0; + mlTextBoxEditR2.Font = new System.Drawing.Font("Microsoft Sans Serif", 13F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); + mlTextBoxEditR2.HelperText = "杈撳叆閿欒锛�"; + mlTextBoxEditR2.HideSelection = true; + mlTextBoxEditR2.Hint = "R2"; + mlTextBoxEditR2.LeadingIcon = null; + mlTextBoxEditR2.Location = new System.Drawing.Point(164, 35); + mlTextBoxEditR2.MaxLength = 32767; + mlTextBoxEditR2.MouseState = RLT.Helper.MaterialDrawHelper.MaterialMouseState.OUT; + mlTextBoxEditR2.Name = "mlTextBoxEditR2"; + mlTextBoxEditR2.NullValuePromptText = null; + mlTextBoxEditR2.PasswordChar = '\0'; + mlTextBoxEditR2.PrefixSuffix = RLT.Controls.MaterialTextBoxEdit.PrefixSuffixTypes.Suffix; + mlTextBoxEditR2.PrefixSuffixText = "mm"; + mlTextBoxEditR2.ReadOnly = false; + mlTextBoxEditR2.RightToLeft = System.Windows.Forms.RightToLeft.Yes; + mlTextBoxEditR2.SelectedText = ""; + mlTextBoxEditR2.SelectionLength = 0; + mlTextBoxEditR2.SelectionStart = 0; + mlTextBoxEditR2.ShortcutsEnabled = true; + mlTextBoxEditR2.Size = new System.Drawing.Size(145, 48); + mlTextBoxEditR2.TabIndex = 69; + mlTextBoxEditR2.TabStop = false; + mlTextBoxEditR2.Text = "璇疯緭鍏�"; + mlTextBoxEditR2.TextAlign = System.Windows.Forms.HorizontalAlignment.Left; + mlTextBoxEditR2.TrailingIcon = null; + mlTextBoxEditR2.UseAccent = false; + mlTextBoxEditR2.UseSystemPasswordChar = false; + mlTextBoxEditR2.Enter += mlTextBoxEditR2_Enter; + mlTextBoxEditR2.Leave += mlTextBoxEditR2_Leave; + mlTextBoxEditR2.TextChanged += mlTextBoxEditR2_TextChanged; + // + // skyLabel鎵╂暎绠″嚭鍙g洿寰� + // + skyLabel鎵╂暎绠″嚭鍙g洿寰�.AutoSize = true; + skyLabel鎵╂暎绠″嚭鍙g洿寰�.Font = new System.Drawing.Font("Swis721 BlkCn BT", 7F, System.Drawing.FontStyle.Bold); + skyLabel鎵╂暎绠″嚭鍙g洿寰�.ForeColor = System.Drawing.Color.DeepPink; + skyLabel鎵╂暎绠″嚭鍙g洿寰�.Location = new System.Drawing.Point(13, 284); + skyLabel鎵╂暎绠″嚭鍙g洿寰�.Name = "skyLabel鎵╂暎绠″嚭鍙g洿寰�"; + skyLabel鎵╂暎绠″嚭鍙g洿寰�.Size = new System.Drawing.Size(119, 12); + skyLabel鎵╂暎绠″嚭鍙g洿寰�.TabIndex = 68; + skyLabel鎵╂暎绠″嚭鍙g洿寰�.Text = "璇疯緭鍏ユ墿鏁g鍑哄彛鐩村緞!"; + skyLabel鎵╂暎绠″嚭鍙g洿寰�.Visible = false; + // + // mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰� + // + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.AnimateReadOnly = false; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.None; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.None; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.CharacterCasing = System.Windows.Forms.CharacterCasing.Normal; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.Depth = 0; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.Font = new System.Drawing.Font("Microsoft Sans Serif", 13F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.HelperText = "璇疯緭鍏ユ纭墿鏁g鍑哄彛鐩村緞锛�"; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.HideSelection = true; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.Hint = "鎵╂暎绠″嚭鍙g洿寰凞4"; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.LeadingIcon = null; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.Location = new System.Drawing.Point(13, 233); + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.MaxLength = 32767; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.MouseState = RLT.Helper.MaterialDrawHelper.MaterialMouseState.OUT; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.Name = "mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�"; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.NullValuePromptText = null; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.PasswordChar = '\0'; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.PrefixSuffix = RLT.Controls.MaterialTextBoxEdit.PrefixSuffixTypes.Suffix; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.PrefixSuffixText = "mm"; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.ReadOnly = false; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.RightToLeft = System.Windows.Forms.RightToLeft.Yes; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.SelectedText = ""; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.SelectionLength = 0; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.SelectionStart = 0; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.ShortcutsEnabled = true; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.Size = new System.Drawing.Size(296, 48); + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.TabIndex = 67; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.TabStop = false; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.Text = "璇疯緭鍏ユ墿鏁g鍑哄彛鐩村緞"; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.TextAlign = System.Windows.Forms.HorizontalAlignment.Left; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.TrailingIcon = null; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.UseAccent = false; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.UseSystemPasswordChar = false; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.Enter += mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰刜Enter; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.Leave += mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰刜Leave; + mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�.TextChanged += mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰刜TextChanged; + // + // skyLabelh1 + // + skyLabelh1.AutoSize = true; + skyLabelh1.Font = new System.Drawing.Font("Swis721 BlkCn BT", 7F, System.Drawing.FontStyle.Bold); + skyLabelh1.ForeColor = System.Drawing.Color.DeepPink; + skyLabelh1.Location = new System.Drawing.Point(13, 152); + skyLabelh1.Name = "skyLabelh1"; + skyLabelh1.Size = new System.Drawing.Size(54, 12); + skyLabelh1.TabIndex = 66; + skyLabelh1.Text = "璇疯緭鍏1!"; + skyLabelh1.Visible = false; + // + // skyLabelR1 + // + skyLabelR1.AutoSize = true; + skyLabelR1.Font = new System.Drawing.Font("Swis721 BlkCn BT", 7F, System.Drawing.FontStyle.Bold); + skyLabelR1.ForeColor = System.Drawing.Color.DeepPink; + skyLabelR1.Location = new System.Drawing.Point(13, 86); + skyLabelR1.Name = "skyLabelR1"; + skyLabelR1.Size = new System.Drawing.Size(55, 12); + skyLabelR1.TabIndex = 65; + skyLabelR1.Text = "璇疯緭鍏1!"; + skyLabelR1.Visible = false; + // + // mlTextBoxEdith1 + // + mlTextBoxEdith1.AnimateReadOnly = false; + mlTextBoxEdith1.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.None; + mlTextBoxEdith1.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.None; + mlTextBoxEdith1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + mlTextBoxEdith1.CharacterCasing = System.Windows.Forms.CharacterCasing.Normal; + mlTextBoxEdith1.Depth = 0; + mlTextBoxEdith1.Font = new System.Drawing.Font("Microsoft Sans Serif", 13F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); + mlTextBoxEdith1.HelperText = "杈撳叆閿欒锛�"; + mlTextBoxEdith1.HideSelection = true; + mlTextBoxEdith1.Hint = "h1"; + mlTextBoxEdith1.LeadingIcon = null; + mlTextBoxEdith1.Location = new System.Drawing.Point(13, 101); + mlTextBoxEdith1.MaxLength = 32767; + mlTextBoxEdith1.MouseState = RLT.Helper.MaterialDrawHelper.MaterialMouseState.OUT; + mlTextBoxEdith1.Name = "mlTextBoxEdith1"; + mlTextBoxEdith1.NullValuePromptText = null; + mlTextBoxEdith1.PasswordChar = '\0'; + mlTextBoxEdith1.PrefixSuffix = RLT.Controls.MaterialTextBoxEdit.PrefixSuffixTypes.Suffix; + mlTextBoxEdith1.PrefixSuffixText = "mm"; + mlTextBoxEdith1.ReadOnly = false; + mlTextBoxEdith1.RightToLeft = System.Windows.Forms.RightToLeft.Yes; + mlTextBoxEdith1.SelectedText = ""; + mlTextBoxEdith1.SelectionLength = 0; + mlTextBoxEdith1.SelectionStart = 0; + mlTextBoxEdith1.ShortcutsEnabled = true; + mlTextBoxEdith1.Size = new System.Drawing.Size(145, 48); + mlTextBoxEdith1.TabIndex = 28; + mlTextBoxEdith1.TabStop = false; + mlTextBoxEdith1.Text = "璇疯緭鍏�"; + mlTextBoxEdith1.TextAlign = System.Windows.Forms.HorizontalAlignment.Left; + mlTextBoxEdith1.TrailingIcon = null; + mlTextBoxEdith1.UseAccent = false; + mlTextBoxEdith1.UseSystemPasswordChar = false; + mlTextBoxEdith1.Enter += mlTextBoxEdith1_Enter; + mlTextBoxEdith1.Leave += mlTextBoxEdith1_Leave; + mlTextBoxEdith1.TextChanged += mlTextBoxEdith1_TextChanged; + // + // mlTextBoxEditR1 + // + mlTextBoxEditR1.AnimateReadOnly = false; + mlTextBoxEditR1.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.None; + mlTextBoxEditR1.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.None; + mlTextBoxEditR1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + mlTextBoxEditR1.CharacterCasing = System.Windows.Forms.CharacterCasing.Normal; + mlTextBoxEditR1.Depth = 0; + mlTextBoxEditR1.Font = new System.Drawing.Font("Microsoft Sans Serif", 13F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); + mlTextBoxEditR1.HelperText = "杈撳叆閿欒锛�"; + mlTextBoxEditR1.HideSelection = true; + mlTextBoxEditR1.Hint = "R1"; + mlTextBoxEditR1.LeadingIcon = null; + mlTextBoxEditR1.Location = new System.Drawing.Point(13, 35); + mlTextBoxEditR1.MaxLength = 32767; + mlTextBoxEditR1.MouseState = RLT.Helper.MaterialDrawHelper.MaterialMouseState.OUT; + mlTextBoxEditR1.Name = "mlTextBoxEditR1"; + mlTextBoxEditR1.NullValuePromptText = null; + mlTextBoxEditR1.PasswordChar = '\0'; + mlTextBoxEditR1.PrefixSuffix = RLT.Controls.MaterialTextBoxEdit.PrefixSuffixTypes.Suffix; + mlTextBoxEditR1.PrefixSuffixText = "mm"; + mlTextBoxEditR1.ReadOnly = false; + mlTextBoxEditR1.RightToLeft = System.Windows.Forms.RightToLeft.Yes; + mlTextBoxEditR1.SelectedText = ""; + mlTextBoxEditR1.SelectionLength = 0; + mlTextBoxEditR1.SelectionStart = 0; + mlTextBoxEditR1.ShortcutsEnabled = true; + mlTextBoxEditR1.Size = new System.Drawing.Size(145, 48); + mlTextBoxEditR1.TabIndex = 27; + mlTextBoxEditR1.TabStop = false; + mlTextBoxEditR1.Text = "璇疯緭鍏�"; + mlTextBoxEditR1.TextAlign = System.Windows.Forms.HorizontalAlignment.Left; + mlTextBoxEditR1.TrailingIcon = null; + mlTextBoxEditR1.UseAccent = false; + mlTextBoxEditR1.UseSystemPasswordChar = false; + mlTextBoxEditR1.Enter += mlTextBoxEditR1_Enter; + mlTextBoxEditR1.Leave += mlTextBoxEditR1_Leave; + mlTextBoxEditR1.TextChanged += mlTextBoxEditR1_TextChanged; + // + // metroToolTip渚ч潰鍑哄彛鐩寸嚎 + // + metroToolTip渚ч潰鍑哄彛鐩寸嚎.BackColor = System.Drawing.Color.White; + metroToolTip渚ч潰鍑哄彛鐩寸嚎.BorderColor = System.Drawing.Color.FromArgb(204, 204, 204); + metroToolTip渚ч潰鍑哄彛鐩寸嚎.ForeColor = System.Drawing.Color.FromArgb(170, 170, 170); + metroToolTip渚ч潰鍑哄彛鐩寸嚎.IsDerivedStyle = true; + metroToolTip渚ч潰鍑哄彛鐩寸嚎.OwnerDraw = true; + metroToolTip渚ч潰鍑哄彛鐩寸嚎.Style = RLT.Enum.Metro.Style.Light; + metroToolTip渚ч潰鍑哄彛鐩寸嚎.StyleManager = null; + metroToolTip渚ч潰鍑哄彛鐩寸嚎.ThemeAuthor = "Taiizor"; + metroToolTip渚ч潰鍑哄彛鐩寸嚎.ThemeName = "MetroLight"; + // + // sidelineExitControl + // + AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F); + AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + BackColor = System.Drawing.SystemColors.ControlLight; + Controls.Add(thunderGroupBox2); + Name = "sidelineExitControl"; + Size = new System.Drawing.Size(325, 308); + thunderGroupBox2.ResumeLayout(false); + thunderGroupBox2.PerformLayout(); + ResumeLayout(false); + } + + #endregion + + private RLT.Controls.ThunderGroupBox thunderGroupBox2; + private RLT.Controls.SkyLabel skyLabelr; + private RLT.Controls.MaterialTextBoxEdit mlTextBoxEditr; + private RLT.Controls.SkyLabel skyLabelL; + private RLT.Controls.MaterialTextBoxEdit mlTextBoxEditL; + private RLT.Controls.SkyLabel skyLabelA; + private RLT.Controls.MaterialTextBoxEdit mlTextBoxEditA; + private RLT.Controls.SkyLabel skyLabelR2; + private RLT.Controls.MaterialTextBoxEdit mlTextBoxEditR2; + private RLT.Controls.SkyLabel skyLabel鎵╂暎绠″嚭鍙g洿寰�; + private RLT.Controls.MaterialTextBoxEdit mlTextBoxEdit鎵╂暎绠″嚭鍙g洿寰�; + private RLT.Controls.SkyLabel skyLabelh1; + private RLT.Controls.SkyLabel skyLabelR1; + private RLT.Controls.MaterialTextBoxEdit mlTextBoxEdith1; + private RLT.Controls.MaterialTextBoxEdit mlTextBoxEditR1; + private RLT.Controls.MetroToolTip metroToolTip渚ч潰鍑哄彛鐩寸嚎; + } +} diff --git "a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\207\272\346\260\264\350\256\276\350\256\241/sidelineExitControl.resx" "b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\207\272\346\260\264\350\256\276\350\256\241/sidelineExitControl.resx" new file mode 100644 index 0000000..65e8709 --- /dev/null +++ "b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\207\272\346\260\264\350\256\276\350\256\241/sidelineExitControl.resx" @@ -0,0 +1,123 @@ +锘�<?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> + <metadata name="metroToolTip渚ч潰鍑哄彛鐩寸嚎.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> + <value>17, 17</value> + </metadata> +</root> \ No newline at end of file diff --git "a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\237\272\346\234\254\345\217\202\346\225\260/ctrlGeomBaseInfo.Designer.cs" "b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\237\272\346\234\254\345\217\202\346\225\260/ctrlGeomBaseInfo.Designer.cs" index aedbbcd..80e1d01 100644 --- "a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\237\272\346\234\254\345\217\202\346\225\260/ctrlGeomBaseInfo.Designer.cs" +++ "b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\237\272\346\234\254\345\217\202\346\225\260/ctrlGeomBaseInfo.Designer.cs" @@ -108,7 +108,7 @@ thunderGroupBox1.ForeColor = System.Drawing.Color.Black; thunderGroupBox1.Location = new System.Drawing.Point(3, 83); thunderGroupBox1.Name = "thunderGroupBox1"; - thunderGroupBox1.Size = new System.Drawing.Size(256, 166); + thunderGroupBox1.Size = new System.Drawing.Size(312, 166); thunderGroupBox1.TabIndex = 19; thunderGroupBox1.Text = "鍙傛暟"; // @@ -162,7 +162,7 @@ mTextBoxEdit閫熷害绯绘暟.SelectionLength = 0; mTextBoxEdit閫熷害绯绘暟.SelectionStart = 0; mTextBoxEdit閫熷害绯绘暟.ShortcutsEnabled = true; - mTextBoxEdit閫熷害绯绘暟.Size = new System.Drawing.Size(227, 48); + mTextBoxEdit閫熷害绯绘暟.Size = new System.Drawing.Size(281, 48); mTextBoxEdit閫熷害绯绘暟.TabIndex = 5; mTextBoxEdit閫熷害绯绘暟.TabStop = false; mTextBoxEdit閫熷害绯绘暟.Text = "璇疯緭鍏ラ�熷害绯绘暟"; @@ -200,7 +200,7 @@ mTextBoxEdit鍩哄渾鐩村緞.SelectionLength = 0; mTextBoxEdit鍩哄渾鐩村緞.SelectionStart = 0; mTextBoxEdit鍩哄渾鐩村緞.ShortcutsEnabled = true; - mTextBoxEdit鍩哄渾鐩村緞.Size = new System.Drawing.Size(227, 48); + mTextBoxEdit鍩哄渾鐩村緞.Size = new System.Drawing.Size(281, 48); mTextBoxEdit鍩哄渾鐩村緞.TabIndex = 4; mTextBoxEdit鍩哄渾鐩村緞.TabStop = false; mTextBoxEdit鍩哄渾鐩村緞.Text = "璇疯緭鍏ュ熀鍦嗙洿寰�"; @@ -231,7 +231,7 @@ thunderGroupBox2.ForeColor = System.Drawing.Color.Black; thunderGroupBox2.Location = new System.Drawing.Point(4, 255); thunderGroupBox2.Name = "thunderGroupBox2"; - thunderGroupBox2.Size = new System.Drawing.Size(256, 144); + thunderGroupBox2.Size = new System.Drawing.Size(312, 144); thunderGroupBox2.TabIndex = 20; thunderGroupBox2.Text = "鍩哄渾瀹藉害"; // @@ -277,7 +277,7 @@ crownLabelmax鍩哄渾瀹藉害1.BackColor = System.Drawing.SystemColors.Control; crownLabelmax鍩哄渾瀹藉害1.Font = new System.Drawing.Font("Microsoft YaHei UI", 8F, System.Drawing.FontStyle.Bold); crownLabelmax鍩哄渾瀹藉害1.ForeColor = System.Drawing.Color.Black; - crownLabelmax鍩哄渾瀹藉害1.Location = new System.Drawing.Point(202, 98); + crownLabelmax鍩哄渾瀹藉害1.Location = new System.Drawing.Point(256, 98); crownLabelmax鍩哄渾瀹藉害1.Name = "crownLabelmax鍩哄渾瀹藉害1"; crownLabelmax鍩哄渾瀹藉害1.Size = new System.Drawing.Size(38, 16); crownLabelmax鍩哄渾瀹藉害1.TabIndex = 22; @@ -321,7 +321,7 @@ metroTrackBar鍩哄渾瀹藉害.Maximum = 4900; metroTrackBar鍩哄渾瀹藉害.Minimum = 1540; metroTrackBar鍩哄渾瀹藉害.Name = "metroTrackBar鍩哄渾瀹藉害"; - metroTrackBar鍩哄渾瀹藉害.Size = new System.Drawing.Size(143, 16); + metroTrackBar鍩哄渾瀹藉害.Size = new System.Drawing.Size(187, 16); metroTrackBar鍩哄渾瀹藉害.Style = RLT.Enum.Metro.Style.Light; metroTrackBar鍩哄渾瀹藉害.StyleManager = null; metroTrackBar鍩哄渾瀹藉害.TabIndex = 9; @@ -358,7 +358,7 @@ mTextBoxEdit鍩哄渾瀹藉害.SelectionLength = 0; mTextBoxEdit鍩哄渾瀹藉害.SelectionStart = 0; mTextBoxEdit鍩哄渾瀹藉害.ShortcutsEnabled = true; - mTextBoxEdit鍩哄渾瀹藉害.Size = new System.Drawing.Size(226, 48); + mTextBoxEdit鍩哄渾瀹藉害.Size = new System.Drawing.Size(280, 48); mTextBoxEdit鍩哄渾瀹藉害.TabIndex = 5; mTextBoxEdit鍩哄渾瀹藉害.TabStop = false; mTextBoxEdit鍩哄渾瀹藉害.Text = "璇疯緭鍏ュ熀鍦嗗搴�"; @@ -376,7 +376,7 @@ crownLabelmax闅旇垖瀹夋斁瑙�1.BackColor = System.Drawing.SystemColors.Control; crownLabelmax闅旇垖瀹夋斁瑙�1.Font = new System.Drawing.Font("Microsoft YaHei UI", 8F, System.Drawing.FontStyle.Bold); crownLabelmax闅旇垖瀹夋斁瑙�1.ForeColor = System.Drawing.Color.Black; - crownLabelmax闅旇垖瀹夋斁瑙�1.Location = new System.Drawing.Point(202, 98); + crownLabelmax闅旇垖瀹夋斁瑙�1.Location = new System.Drawing.Point(257, 98); crownLabelmax闅旇垖瀹夋斁瑙�1.Name = "crownLabelmax闅旇垖瀹夋斁瑙�1"; crownLabelmax闅旇垖瀹夋斁瑙�1.Size = new System.Drawing.Size(38, 16); crownLabelmax闅旇垖瀹夋斁瑙�1.TabIndex = 24; @@ -420,7 +420,7 @@ metroTrackBar闅旇垖瀹夋斁瑙�.Maximum = 3000; metroTrackBar闅旇垖瀹夋斁瑙�.Minimum = 2500; metroTrackBar闅旇垖瀹夋斁瑙�.Name = "metroTrackBar闅旇垖瀹夋斁瑙�"; - metroTrackBar闅旇垖瀹夋斁瑙�.Size = new System.Drawing.Size(143, 16); + metroTrackBar闅旇垖瀹夋斁瑙�.Size = new System.Drawing.Size(187, 16); metroTrackBar闅旇垖瀹夋斁瑙�.Style = RLT.Enum.Metro.Style.Light; metroTrackBar闅旇垖瀹夋斁瑙�.StyleManager = null; metroTrackBar闅旇垖瀹夋斁瑙�.TabIndex = 8; @@ -457,7 +457,7 @@ mTextBoxEdit闅旇垖瀹夋斁瑙�.SelectionLength = 0; mTextBoxEdit闅旇垖瀹夋斁瑙�.SelectionStart = 0; mTextBoxEdit闅旇垖瀹夋斁瑙�.ShortcutsEnabled = true; - mTextBoxEdit闅旇垖瀹夋斁瑙�.Size = new System.Drawing.Size(227, 48); + mTextBoxEdit闅旇垖瀹夋斁瑙�.Size = new System.Drawing.Size(281, 48); mTextBoxEdit闅旇垖瀹夋斁瑙�.TabIndex = 4; mTextBoxEdit闅旇垖瀹夋斁瑙�.TabStop = false; mTextBoxEdit闅旇垖瀹夋斁瑙�.Text = "璇疯緭鍏ラ殧鑸屽畨鏀捐"; @@ -488,7 +488,7 @@ thunderGroupBox3.ForeColor = System.Drawing.Color.Black; thunderGroupBox3.Location = new System.Drawing.Point(4, 405); thunderGroupBox3.Name = "thunderGroupBox3"; - thunderGroupBox3.Size = new System.Drawing.Size(256, 143); + thunderGroupBox3.Size = new System.Drawing.Size(312, 143); thunderGroupBox3.TabIndex = 21; thunderGroupBox3.Text = "闅旇垖瀹夋斁瑙�"; // @@ -553,7 +553,7 @@ Controls.Add(crownLabel4); Margin = new System.Windows.Forms.Padding(4); Name = "ctrlGeomBaseInfo"; - Size = new System.Drawing.Size(263, 553); + Size = new System.Drawing.Size(325, 553); thunderGroupBox1.ResumeLayout(false); thunderGroupBox1.PerformLayout(); thunderGroupBox2.ResumeLayout(false); diff --git "a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\237\272\346\234\254\345\217\202\346\225\260/ctrlHdrBaseInfo.Designer.cs" "b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\237\272\346\234\254\345\217\202\346\225\260/ctrlHdrBaseInfo.Designer.cs" index 82148fa..2d2b8c7 100644 --- "a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\237\272\346\234\254\345\217\202\346\225\260/ctrlHdrBaseInfo.Designer.cs" +++ "b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\237\272\346\234\254\345\217\202\346\225\260/ctrlHdrBaseInfo.Designer.cs" @@ -70,7 +70,7 @@ thunderGroupBox3.ForeColor = System.Drawing.Color.Black; thunderGroupBox3.Location = new System.Drawing.Point(7, 432); thunderGroupBox3.Name = "thunderGroupBox3"; - thunderGroupBox3.Size = new System.Drawing.Size(256, 169); + thunderGroupBox3.Size = new System.Drawing.Size(310, 169); thunderGroupBox3.TabIndex = 18; thunderGroupBox3.Text = "鍙惰疆鍑犱綍鍙傛暟"; // @@ -124,7 +124,7 @@ mTextBoxEdit鍑哄彛瀹藉害.SelectionLength = 0; mTextBoxEdit鍑哄彛瀹藉害.SelectionStart = 0; mTextBoxEdit鍑哄彛瀹藉害.ShortcutsEnabled = true; - mTextBoxEdit鍑哄彛瀹藉害.Size = new System.Drawing.Size(227, 48); + mTextBoxEdit鍑哄彛瀹藉害.Size = new System.Drawing.Size(281, 48); mTextBoxEdit鍑哄彛瀹藉害.TabIndex = 5; mTextBoxEdit鍑哄彛瀹藉害.TabStop = false; mTextBoxEdit鍑哄彛瀹藉害.Text = "璇疯緭鍏ュ嚭鍙e搴�"; @@ -162,7 +162,7 @@ mTextBoxEdit鍑哄彛鐩村緞.SelectionLength = 0; mTextBoxEdit鍑哄彛鐩村緞.SelectionStart = 0; mTextBoxEdit鍑哄彛鐩村緞.ShortcutsEnabled = true; - mTextBoxEdit鍑哄彛鐩村緞.Size = new System.Drawing.Size(227, 48); + mTextBoxEdit鍑哄彛鐩村緞.Size = new System.Drawing.Size(281, 48); mTextBoxEdit鍑哄彛鐩村緞.TabIndex = 4; mTextBoxEdit鍑哄彛鐩村緞.TabStop = false; mTextBoxEdit鍑哄彛鐩村緞.Text = "璇疯緭鍏ュ嚭鍙g洿寰�"; @@ -193,7 +193,7 @@ thunderGroupBox2.ForeColor = System.Drawing.Color.Black; thunderGroupBox2.Location = new System.Drawing.Point(7, 166); thunderGroupBox2.Name = "thunderGroupBox2"; - thunderGroupBox2.Size = new System.Drawing.Size(256, 260); + thunderGroupBox2.Size = new System.Drawing.Size(310, 260); thunderGroupBox2.TabIndex = 17; thunderGroupBox2.Text = "璁捐鍙傛暟"; // @@ -259,7 +259,7 @@ mTextBoxEdit鎵▼.SelectionLength = 0; mTextBoxEdit鎵▼.SelectionStart = 0; mTextBoxEdit鎵▼.ShortcutsEnabled = true; - mTextBoxEdit鎵▼.Size = new System.Drawing.Size(227, 48); + mTextBoxEdit鎵▼.Size = new System.Drawing.Size(281, 48); mTextBoxEdit鎵▼.TabIndex = 4; mTextBoxEdit鎵▼.TabStop = false; mTextBoxEdit鎵▼.Text = "璇疯緭鍏ユ壃绋�"; @@ -317,7 +317,7 @@ mTextBoxEdit杞��.SelectionLength = 0; mTextBoxEdit杞��.SelectionStart = 0; mTextBoxEdit杞��.ShortcutsEnabled = true; - mTextBoxEdit杞��.Size = new System.Drawing.Size(227, 48); + mTextBoxEdit杞��.Size = new System.Drawing.Size(281, 48); mTextBoxEdit杞��.TabIndex = 5; mTextBoxEdit杞��.TabStop = false; mTextBoxEdit杞��.Text = "璇疯緭鍏ヨ浆閫�"; @@ -356,7 +356,7 @@ mTextBoxEdit鎬绘祦閲�.SelectionLength = 0; mTextBoxEdit鎬绘祦閲�.SelectionStart = 0; mTextBoxEdit鎬绘祦閲�.ShortcutsEnabled = true; - mTextBoxEdit鎬绘祦閲�.Size = new System.Drawing.Size(227, 48); + mTextBoxEdit鎬绘祦閲�.Size = new System.Drawing.Size(281, 48); mTextBoxEdit鎬绘祦閲�.TabIndex = 3; mTextBoxEdit鎬绘祦閲�.TabStop = false; mTextBoxEdit鎬绘祦閲�.Text = "璇疯緭鍏ユ�绘祦閲�"; @@ -384,7 +384,7 @@ thunderGroupBox1.ForeColor = System.Drawing.Color.Black; thunderGroupBox1.Location = new System.Drawing.Point(7, 40); thunderGroupBox1.Name = "thunderGroupBox1"; - thunderGroupBox1.Size = new System.Drawing.Size(256, 100); + thunderGroupBox1.Size = new System.Drawing.Size(310, 100); thunderGroupBox1.TabIndex = 16; thunderGroupBox1.Text = "绫诲瀷"; // @@ -401,7 +401,7 @@ RBtn鍑嗚灪鏃嬪瀷.Enabled = false; RBtn鍑嗚灪鏃嬪瀷.Font = new System.Drawing.Font("Tw Cen MT Condensed Extra Bold", 10F, System.Drawing.FontStyle.Bold); RBtn鍑嗚灪鏃嬪瀷.ForeColor = System.Drawing.Color.FromArgb(40, 40, 40); - RBtn鍑嗚灪鏃嬪瀷.Location = new System.Drawing.Point(123, 70); + RBtn鍑嗚灪鏃嬪瀷.Location = new System.Drawing.Point(157, 70); RBtn鍑嗚灪鏃嬪瀷.Name = "RBtn鍑嗚灪鏃嬪瀷"; RBtn鍑嗚灪鏃嬪瀷.Size = new System.Drawing.Size(133, 16); RBtn鍑嗚灪鏃嬪瀷.SmoothingType = System.Drawing.Drawing2D.SmoothingMode.HighQuality; @@ -443,7 +443,7 @@ RBtn鍙岃湕澹冲瀷.Enabled = false; RBtn鍙岃湕澹冲瀷.Font = new System.Drawing.Font("Tw Cen MT Condensed Extra Bold", 10F, System.Drawing.FontStyle.Bold); RBtn鍙岃湕澹冲瀷.ForeColor = System.Drawing.Color.FromArgb(40, 40, 40); - RBtn鍙岃湕澹冲瀷.Location = new System.Drawing.Point(123, 39); + RBtn鍙岃湕澹冲瀷.Location = new System.Drawing.Point(157, 39); RBtn鍙岃湕澹冲瀷.Name = "RBtn鍙岃湕澹冲瀷"; RBtn鍙岃湕澹冲瀷.Size = new System.Drawing.Size(133, 16); RBtn鍙岃湕澹冲瀷.SmoothingType = System.Drawing.Drawing2D.SmoothingMode.HighQuality; @@ -528,7 +528,7 @@ Controls.Add(crownLabel4); Margin = new System.Windows.Forms.Padding(4); Name = "ctrlHdrBaseInfo"; - Size = new System.Drawing.Size(271, 601); + Size = new System.Drawing.Size(325, 601); thunderGroupBox3.ResumeLayout(false); thunderGroupBox3.PerformLayout(); thunderGroupBox2.ResumeLayout(false); diff --git "a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\237\272\346\234\254\345\217\202\346\225\260/ctrlHdrBaseInfo.resx" "b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\237\272\346\234\254\345\217\202\346\225\260/ctrlHdrBaseInfo.resx" index e4ed023..fad0792 100644 --- "a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\237\272\346\234\254\345\217\202\346\225\260/ctrlHdrBaseInfo.resx" +++ "b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\237\272\346\234\254\345\217\202\346\225\260/ctrlHdrBaseInfo.resx" @@ -1,7 +1,7 @@ 锘�<?xml version="1.0" encoding="utf-8"?> <root> <!-- - Microsoft ResX Schema + Microsoft ResX Schema Version 2.0 @@ -48,7 +48,7 @@ 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 diff --git "a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\346\210\252\351\235\242\351\235\242\347\247\257/ChartSectArea.cs" "b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\346\210\252\351\235\242\351\235\242\347\247\257/ChartSectArea.cs" index bb2d398..c435c40 100644 --- "a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\346\210\252\351\235\242\351\235\242\347\247\257/ChartSectArea.cs" +++ "b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\346\210\252\351\235\242\351\235\242\347\247\257/ChartSectArea.cs" @@ -1,4 +1,5 @@ -锘縰sing System; +锘縰sing Microsoft.VisualBasic; +using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; @@ -14,22 +15,23 @@ { public ChartSectArea() { - Section sect1 = new Section() { SectIndex = 1, Name = "1", Area = 300 }; - Section sect2 = new Section() { SectIndex = 2, Name = "2", Area = 200 }; - Section sect3 = new Section() { SectIndex = 3, Name = "3", Area = 320 }; - Section sect4 = new Section() { SectIndex = 4, Name = "4", Area = 460 }; - Section sect5 = new Section() { SectIndex = 5 , Name = "5", Area = 110 }; - Section sect6 = new Section() { SectIndex = 6, Name = "6", Area = 608 }; - Section sect7 = new Section() { SectIndex = 7 , Name = "7", Area = 708 }; - Section sect8 = new Section() { SectIndex = 8, Name = "8", Area = 819 }; - _allSection = new List<Section> { sect1, sect2, sect3, sect4, sect5, sect6, sect7, sect8 }; - var areaMaxValue = (from x in _allSection select x.Area).Max(); - var areaMinValue = (from x in _allSection select x.Area).Min(); - _areaAxisRange.CoordMin = areaMinValue/2; - _areaAxisRange.CoordMax = areaMaxValue * 1.2; + if (_allSection == null) + { + Section sect0 = new Section() { SectIndex = 0, Name = "0", Area = 0 }; + Section sect1 = new Section() { SectIndex = 1, Name = "1", Area = 0 }; + Section sect2 = new Section() { SectIndex = 2, Name = "2", Area = 0 }; + Section sect3 = new Section() { SectIndex = 3, Name = "3", Area = 0 }; + Section sect4 = new Section() { SectIndex = 4, Name = "4", Area = 0 }; + Section sect5 = new Section() { SectIndex = 5, Name = "5", Area = 0 }; + Section sect6 = new Section() { SectIndex = 6, Name = "6", Area = 0 }; + Section sect7 = new Section() { SectIndex = 7, Name = "7", Area = 0 }; + Section sect8 = new Section() { SectIndex = 8, Name = "8", Area = 0 }; + _allSection = new List<Section> { sect0, sect1, sect2, sect3, sect4, sect5, sect6, sect7, sect8 }; + } + } - class Section + public class Section { public int SectIndex { get;set; } public string Name { get; set; } @@ -43,11 +45,57 @@ } internal float CalcAreaPixelPt(double area) { + var areaMaxValue = (from x in _allSection select x.Area).Max(); + var areaMinValue = (from x in _allSection select x.Area).Min(); + _areaAxisRange.CoordMin = Math.Ceiling(areaMinValue / 2); + _areaAxisRange.CoordMax = Math.Ceiling(areaMaxValue * 1.4); var y = this._diagram_padding_top + this._diagram_padding_top + (_areaAxisRange.CoordMax - area) * (this._diagram_height - _diagram_padding_top - _diagram_padding_bottom) /(_areaAxisRange.CoordMax - _areaAxisRange.CoordMin); return Convert.ToSingle( y ); } + public void RefreshControl() + { + _selectedPointIndex = -1; + this.Invalidate(); + this.Refresh(); + } List<Section> _allSection; + int _current_section = -1; + public void SetBindingData(ViewModel.SectionShapePara para) + { + _allSection[para.Index].Area = para.SectionArea; + _current_section = para.Index; + this.Invalidate(); + this.Refresh(); + } + public void SetBindingData( List<double> sections) + { + + if(_selectedPointIndex != -1) + { + _allSection[_selectedPointIndex].Area = sections[_selectedPointIndex]; + } + else + { + int i = 0; + foreach (var allSection in _allSection) + { + allSection.Area = sections[i]; + i++; + } + } + this.Invalidate(); + this.Refresh(); + } + public List<double> GetBindingData() + { + List<double> sections = new List<double> (); + foreach (var allSection in _allSection) + { + sections.Add(allSection.Area); + } + return sections; + } AreaAxisRange _areaAxisRange = new AreaAxisRange(); /// <summary> /// @@ -57,7 +105,6 @@ { base.OnPaint(e); - _diagram_width = this.Width - this._diagram_margin_left- this._diagram_margin_right; _diagram_height = this.Height - this._diagram_margin_top - this._diagram_margin_bottom; if(_diagram_height<=0 || _diagram_width <= 10) @@ -65,7 +112,7 @@ return; } _diagram_leftTopPoint.X = this._diagram_margin_left; - _diagram_leftTopPoint.Y = this._diagram_margin_top; + _diagram_leftTopPoint.Y = this._diagram_margin_top - 10; _diagram_leftBottomPoint.X = this._diagram_margin_left; _diagram_leftBottomPoint.Y = this._diagram_margin_top + _diagram_height; @@ -78,7 +125,10 @@ Graphics g = e.Graphics; - + if (_allSection.Any(sect => sect.Area == 0)) + { + return; + } DrawAxisX(g); DrawAxisY(g); DrawDiagram(g); @@ -103,7 +153,7 @@ float _diagram_width = 0; float _diagram_height = 0; - float _diagram_margin_left = 40; + float _diagram_margin_left = 60; float _diagram_margin_right = 40; float _diagram_margin_top = 20; float _diagram_margin_bottom = 30; @@ -122,18 +172,18 @@ sf.Alignment = StringAlignment.Center; sf.LineAlignment = StringAlignment.Near; - var sect_count = _allSection.Count; - float space_width = (this._diagram_width - _diagram_padding_left - _diagram_padding_right) / (sect_count - 1); + var sect_count = _allSection.Count ; + float space_width = (this._diagram_width - 20 - _diagram_padding_left - _diagram_padding_right) / (sect_count - 2); //鍒诲害 tickmark using (SolidBrush brushText = new SolidBrush(Color.Red)) using (Font fontText = new Font("Courier New", 11)) using (Pen penAxisBase = new Pen(_tickmarkColorX, 2f)) { - for (int i = 0; i < sect_count; i++) + for (int i = 1; i < sect_count; i++) { var sect = _allSection[i]; - var x = this._diagram_leftBottomPoint.X + _diagram_padding_left + i * space_width; + var x = this._diagram_leftBottomPoint.X + _diagram_padding_left +( i - 1 )* space_width; g.DrawLine(penAxisBase, new PointF(x, _diagram_leftBottomPoint.Y), new PointF(x, _diagram_leftBottomPoint.Y + _tickmarkLengthX)); g.DrawString(sect.Name, fontText, brushText, new PointF(x, _diagram_leftBottomPoint.Y + _tickmarkLengthX + 5), sf); @@ -141,36 +191,151 @@ //鍩虹嚎 g.DrawLine(penAxisBase, _diagram_leftBottomPoint, _diagram_rightBottomPoint); + + // 娣诲姞绠ご + float arrowLength = 10f; // 绠ご鐨勯暱搴� + float arrowWidth = 5f; // 绠ご鐨勫搴� + PointF arrowBase = new PointF(_diagram_rightBottomPoint.X, _diagram_rightBottomPoint.Y); + PointF arrowTip = new PointF(_diagram_rightBottomPoint.X - arrowLength, _diagram_rightBottomPoint.Y); + g.DrawLine(penAxisBase, arrowBase, arrowTip); // 缁樺埗绠ご鐨勪富浣� + g.DrawLine(penAxisBase, new PointF(arrowTip.X, arrowTip.Y - arrowWidth), new PointF(arrowBase.X, arrowBase.Y)); // 缁樺埗绠ご鐨勫乏缈� + g.DrawLine(penAxisBase, new PointF(arrowTip.X, arrowTip.Y + arrowWidth), new PointF(arrowBase.X, arrowBase.Y)); // 缁樺埗绠ご鐨勫彸缈� + + // 娣诲姞鍗曚綅 m鲁 + string unitText = "鏂潰"; + PointF unitPosition = new PointF(_diagram_rightBottomPoint.X - arrowLength + 30, _diagram_leftBottomPoint.Y -5); + g.DrawString(unitText, fontText, brushText, unitPosition, sf); } } private void DrawAxisY(Graphics g) { + StringFormat sf = new StringFormat(); + sf.Alignment = StringAlignment.Center; + sf.LineAlignment = StringAlignment.Near; + var max = ((int)(Math.Ceiling(_allSection.Max(sect => sect.Area) * 1.1) / 10) + 1) * 10; + var min =(int)(Math.Ceiling(_allSection.Min(sect => sect.Area) / 2) / 10) * 10; + var median = (max + min) / 2; + var max_scale = CalcAreaPixelPt(max); + var min_scale = CalcAreaPixelPt(min); + var median_scale = (max_scale + min_scale) / 2; + using (SolidBrush brushText = new SolidBrush(Color.Red)) + using (Font fontText = new Font("Courier New", 9)) using (Pen penCurve = new Pen(Color.Blue, 2f)) { - g.DrawLine(penCurve, _diagram_leftBottomPoint, _diagram_leftTopPoint); + g.DrawLine(penCurve, new PointF(this._diagram_leftBottomPoint.X, max_scale), new PointF(this._diagram_leftBottomPoint.X - _tickmarkLengthX, max_scale)); + g.DrawLine(penCurve, new PointF(this._diagram_leftBottomPoint.X, min_scale), new PointF(this._diagram_leftBottomPoint.X - _tickmarkLengthX, min_scale)); + g.DrawLine(penCurve, new PointF(this._diagram_leftBottomPoint.X, median_scale), new PointF(this._diagram_leftBottomPoint.X - _tickmarkLengthX, median_scale)); + g.DrawLine(penCurve, _diagram_leftBottomPoint, _diagram_leftTopPoint ); + + // 娣诲姞y杞存湯灏剧殑绠ご + float arrowLength = 10f; // 绠ご鐨勯暱搴� + float arrowWidth = 5f; // 绠ご鐨勫搴� + PointF arrowBase = new PointF(this._diagram_leftBottomPoint.X, _diagram_leftTopPoint.Y ); + PointF arrowTip = new PointF(this._diagram_leftBottomPoint.X, this._diagram_leftTopPoint.Y + arrowLength ); + g.DrawLine(penCurve, arrowBase, arrowTip); // 缁樺埗绠ご鐨勪富浣� + g.DrawLine(penCurve, new PointF(arrowTip.X - arrowWidth, arrowTip.Y), new PointF(arrowBase.X, arrowBase.Y )); // 缁樺埗绠ご鐨勫乏缈� + g.DrawLine(penCurve, new PointF(arrowTip.X + arrowWidth, arrowTip.Y), new PointF(arrowBase.X - 1, arrowBase.Y )); // 缁樺埗绠ご鐨勫彸缈� + string unit_text = "mm鲁"; + PointF unit_position = new PointF(_diagram_leftBottomPoint.X - 20, _diagram_leftTopPoint.Y - 10); + PointF max_scale_position = new PointF(_diagram_leftBottomPoint.X - 25, max_scale -8); + PointF min_scale_position = new PointF(_diagram_leftBottomPoint.X - 25, min_scale - 8); + PointF median_scale_position = new PointF(_diagram_leftBottomPoint.X - 25, median_scale - 8); + g.DrawString(unit_text, fontText, brushText, unit_position, sf); + g.DrawString(max.ToString(), fontText, brushText, max_scale_position, sf); + g.DrawString(min.ToString(), fontText, brushText, min_scale_position, sf); + g.DrawString(median.ToString(), fontText, brushText, median_scale_position, sf); + } + using (Pen penCurve = new Pen(Color.Gray, 1f)) + { + penCurve.DashStyle = System.Drawing.Drawing2D.DashStyle.Dash; + float width = this._diagram_width - _diagram_padding_left - _diagram_padding_right; + g.DrawLine(penCurve, new PointF(this._diagram_leftBottomPoint.X, max_scale), new PointF(this._diagram_leftBottomPoint.X + width, max_scale)); + g.DrawLine(penCurve, new PointF(this._diagram_leftBottomPoint.X, min_scale), new PointF(this._diagram_leftBottomPoint.X + width, min_scale)); + g.DrawLine(penCurve, new PointF(this._diagram_leftBottomPoint.X, median_scale), new PointF(this._diagram_leftBottomPoint.X + width, median_scale)); } } + List<PointF> _lines = new List<PointF>(); + int _selectedPointIndex = -1; private void DrawDiagram(Graphics g) { using (Pen penCurve = new Pen(Color.Red, 2f)) using (SolidBrush penBrush = new SolidBrush(Color.Black)) { var sect_count = _allSection.Count; - float space_width = (this._diagram_width - _diagram_padding_left - _diagram_padding_right) / (sect_count - 1); + float space_width = (this._diagram_width - 20 - _diagram_padding_left - _diagram_padding_right) / (sect_count - 2); List<PointF> lines = new List<PointF>(); + PointF pt = new PointF(); for (int i = 0; i < sect_count; i++) { + if (i == 0) + { + pt.X = 0; + pt.Y = 0; + lines.Add(pt); + continue; + } var sect = _allSection[i]; - PointF pt = new PointF(); - pt.X = this._diagram_leftBottomPoint.X + _diagram_padding_left + i * space_width; + pt.X = this._diagram_leftBottomPoint.X + _diagram_padding_left + (i - 1) * space_width; pt.Y = this.CalcAreaPixelPt(sect.Area); - g.FillEllipse(penBrush, pt.X - 4f, pt.Y - 4f, 8, 8); - lines.Add(pt); + if(_selectedPointIndex != -1) + { + if(i == _selectedPointIndex) + { + g.FillEllipse(new SolidBrush(Color.Blue), pt.X - 4f, pt.Y - 4f, 8, 8); + lines.Add(pt); + continue; + } + else + { + g.FillEllipse(new SolidBrush(Color.LightGray), pt.X - 4f, pt.Y - 4f, 8, 8); + lines.Add(pt); + } + } + else + { + g.FillEllipse(penBrush, pt.X - 4f, pt.Y - 4f, 8, 8); + lines.Add(pt); + } } + List<PointF> linesWithoutFirst = new List<PointF>(lines.Skip(1).ToList()); - g.DrawCurve(penCurve, lines.ToArray()); + g.DrawCurve(penCurve, linesWithoutFirst.ToArray()); + _lines = lines; } // } + public int Judgment_point(double X , double Y) + { + _selectedPointIndex = -1; + _selectedPointIndex += 1; + if(_current_section != -1) + { + if (X > _lines[_current_section].X - 5 && X < _lines[_current_section].X + 5 && Y > _lines[_current_section].Y - 5 && Y < _lines[_current_section].Y + 5) + { + _selectedPointIndex = _current_section; + this.Invalidate(); + this.Refresh(); + return _selectedPointIndex; + } + else + { + _selectedPointIndex = -1; + this.Invalidate(); + this.Refresh(); + return _selectedPointIndex ; + } + } + foreach (var line in _lines) + { + if (X>line.X - 5 && X <line.X + 5 && Y > line.Y -5 && Y < line.Y + 5) + { + this.Invalidate(); + this.Refresh(); + return _selectedPointIndex; + } + _selectedPointIndex++; + } + return _selectedPointIndex = -1; + } } } diff --git "a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\346\210\252\351\235\242\351\235\242\347\247\257/SectAreaDockPanel.Designer.cs" "b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\346\210\252\351\235\242\351\235\242\347\247\257/SectAreaDockPanel.Designer.cs" index ee9bed9..38c848b 100644 --- "a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\346\210\252\351\235\242\351\235\242\347\247\257/SectAreaDockPanel.Designer.cs" +++ "b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\346\210\252\351\235\242\351\235\242\347\247\257/SectAreaDockPanel.Designer.cs" @@ -33,17 +33,17 @@ chart = new ChartSectArea(); SuspendLayout(); // - // lstConsole + // chart // chart.Dock = System.Windows.Forms.DockStyle.Fill; chart.Location = new System.Drawing.Point(0, 25); - - chart.Name = "lstConsole"; + chart.Name = "chart"; chart.Size = new System.Drawing.Size(500, 175); chart.TabIndex = 0; - chart.Text = "ChartSectArea"; + chart.KeyDown += chart_KeyDown; + chart.MouseClick += chart_MouseClick; // - // LogListDockPanel + // SectAreaDockPanel // AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; @@ -52,7 +52,7 @@ DockText = "闈㈢Н鍙樺寲"; Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0); Icon = Properties.Resources.Console; - Name = "LogListDockPanel"; + Name = "SectAreaDockPanel"; SerializationKey = "DockConsole"; Size = new System.Drawing.Size(500, 200); ResumeLayout(false); diff --git "a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\346\210\252\351\235\242\351\235\242\347\247\257/SectAreaDockPanel.cs" "b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\346\210\252\351\235\242\351\235\242\347\247\257/SectAreaDockPanel.cs" index f484d2b..48227c4 100644 --- "a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\346\210\252\351\235\242\351\235\242\347\247\257/SectAreaDockPanel.cs" +++ "b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\346\210\252\351\235\242\351\235\242\347\247\257/SectAreaDockPanel.cs" @@ -1,5 +1,12 @@ 锘縰sing DPumpHydr.WinFrmUI.RLT.Child.Crown; using DPumpHydr.WinFrmUI.RLT.Docking.Crown; +using System.Drawing; +using System.Windows.Forms; +using System.Collections.Generic; +using static System.Windows.Forms.VisualStyles.VisualStyleElement.TextBox; +using static System.Runtime.InteropServices.JavaScript.JSType; +using System; +using System.ComponentModel; namespace DPumpHydr.WinFrmUI.Volute { @@ -12,9 +19,102 @@ this.DefaultDockArea = RLT.Enum.Crown.DockArea.Bottom; this.DockText = "鎴潰闈㈢Н"; - this.SerializationKey = "SectAreaDockPanel"; + this.SerializationKey = "SectAreaDockPanel"; + + } + private ViewModel.SectionBundleInfo _bundle = null; + private ViewModel.SectionShapePara _para = null; + public Action<ViewModel.SectionBundleInfo , int> OnRefreshSingleSectBundle = null; + public void RefreshControl() + { + _selectedPointIndex = -1; + chart.RefreshControl(); } - + public void SetBindingData(ViewModel.SectionBundleInfo bundle) + { + if (bundle == null) return; + _bundle = bundle; + List<double> Data = new List<double>(); + for (int i = 0; i < 9; i++) + { + Data.Add(bundle.Area[i]); + } + chart.SetBindingData(Data); + } + public void SetBindingData(ViewModel.SectionShapePara para) + { + if(para == null) return; + _para = para; + chart.SetBindingData(para); + } + public ViewModel.SectionBundleInfo GetBindingData(out string error) + { + error = ""; + if (_bundle == null) + { + error = "_bundle涓虹┖"; + return null; + } + return _bundle; + } + protected override bool ProcessDialogKey(Keys keyData) + { + if (keyData == Keys.Up || keyData == Keys.Down || keyData == Keys.Left || keyData == Keys.Right) + { + return false; + } + else + { + return base.ProcessDialogKey(keyData); + } + } + private int _selectedPointIndex = -1; + private void chart_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e) + { + if (_selectedPointIndex == -1) + { + return; + } + var data = chart.GetBindingData(); + if (data == null) + { + return; + } + //鏍规嵁鎸夐敭澧炲姞鎴栧噺灏慪鍊� + if (e.KeyCode == Keys.Up) + { + data[_selectedPointIndex] += data[_selectedPointIndex] * 0.01; // 澧炲姞Y鍊� + chart.SetBindingData(data); + _bundle.Area[_selectedPointIndex] = data[_selectedPointIndex]; + OnRefreshSingleSectBundle.Invoke(_bundle, _selectedPointIndex); + } + else if (e.KeyCode == Keys.Down) + { + data[_selectedPointIndex] -= data[_selectedPointIndex] * 0.01; // 鍑忓皯Y鍊� + chart.SetBindingData(data); + _bundle.Area[_selectedPointIndex] = data[_selectedPointIndex]; + OnRefreshSingleSectBundle.Invoke(_bundle, _selectedPointIndex); + } + } + //int _sequence = 0; + private void chart_MouseClick(object sender, MouseEventArgs e) + { + int pointIndex = chart.Judgment_point(e.X, e.Y); + if (pointIndex == -1) + { + return; + } + if (_para != null) + { + if(_para.Index != pointIndex) + { + return; + } + } + _selectedPointIndex = pointIndex; + } + + } } \ No newline at end of file diff --git "a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\346\210\252\351\235\242\351\235\242\347\247\257/SectAreaDockPanel.resx" "b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\346\210\252\351\235\242\351\235\242\347\247\257/SectAreaDockPanel.resx" index 8b2ff64..af32865 100644 --- "a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\346\210\252\351\235\242\351\235\242\347\247\257/SectAreaDockPanel.resx" +++ "b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\346\210\252\351\235\242\351\235\242\347\247\257/SectAreaDockPanel.resx" @@ -1,7 +1,7 @@ 锘�<?xml version="1.0" encoding="utf-8"?> <root> <!-- - Microsoft ResX Schema + Microsoft ResX Schema Version 2.0 @@ -48,7 +48,7 @@ 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 diff --git "a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\346\226\255\351\235\242\350\256\276\350\256\241/ViewModel/SectionBundleInfo.cs" "b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\346\226\255\351\235\242\350\256\276\350\256\241/ViewModel/SectionBundleInfo.cs" index d358fd9..e87c549 100644 --- "a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\346\226\255\351\235\242\350\256\276\350\256\241/ViewModel/SectionBundleInfo.cs" +++ "b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\346\226\255\351\235\242\350\256\276\350\256\241/ViewModel/SectionBundleInfo.cs" @@ -72,6 +72,7 @@ model.R_Right = this.R_Right[index]; model.ShapeType = this.ShapeType; model.BaseWidth = this.BaseWidth; + model.SectionArea = this.Area[index]; model.BaseCircleRadius = this.BaseCircleRadius; return model; } diff --git "a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\346\226\255\351\235\242\350\256\276\350\256\241/ctrlSectionBundleInfo.Designer.cs" "b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\346\226\255\351\235\242\350\256\276\350\256\241/ctrlSectionBundleInfo.Designer.cs" index 4783dd3..4750780 100644 --- "a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\346\226\255\351\235\242\350\256\276\350\256\241/ctrlSectionBundleInfo.Designer.cs" +++ "b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\346\226\255\351\235\242\350\256\276\350\256\241/ctrlSectionBundleInfo.Designer.cs" @@ -263,7 +263,7 @@ metroTile鐭╁舰.HoverColor = System.Drawing.Color.FromArgb(65, 177, 225); metroTile鐭╁舰.HoverTextColor = System.Drawing.Color.White; metroTile鐭╁舰.IsDerivedStyle = true; - metroTile鐭╁舰.Location = new System.Drawing.Point(218, 41); + metroTile鐭╁舰.Location = new System.Drawing.Point(217, 41); metroTile鐭╁舰.Name = "metroTile鐭╁舰"; metroTile鐭╁舰.NormalBorderColor = System.Drawing.Color.FromArgb(65, 177, 225); metroTile鐭╁舰.NormalColor = System.Drawing.Color.FromArgb(65, 177, 225); @@ -271,7 +271,7 @@ metroTile鐭╁舰.PressBorderColor = System.Drawing.Color.FromArgb(65, 177, 225); metroTile鐭╁舰.PressColor = System.Drawing.Color.FromArgb(65, 177, 225); metroTile鐭╁舰.PressTextColor = System.Drawing.Color.White; - metroTile鐭╁舰.Size = new System.Drawing.Size(97, 80); + metroTile鐭╁舰.Size = new System.Drawing.Size(95, 80); metroTile鐭╁舰.Style = RLT.Enum.Metro.Style.Light; metroTile鐭╁舰.StyleManager = null; metroTile鐭╁舰.TabIndex = 4; @@ -311,7 +311,7 @@ metroTile涓嶅绉版褰�.HoverColor = System.Drawing.Color.FromArgb(65, 177, 225); metroTile涓嶅绉版褰�.HoverTextColor = System.Drawing.Color.White; metroTile涓嶅绉版褰�.IsDerivedStyle = true; - metroTile涓嶅绉版褰�.Location = new System.Drawing.Point(115, 41); + metroTile涓嶅绉版褰�.Location = new System.Drawing.Point(114, 41); metroTile涓嶅绉版褰�.Name = "metroTile涓嶅绉版褰�"; metroTile涓嶅绉版褰�.NormalBorderColor = System.Drawing.Color.FromArgb(65, 177, 225); metroTile涓嶅绉版褰�.NormalColor = System.Drawing.Color.FromArgb(65, 177, 225); @@ -319,7 +319,7 @@ metroTile涓嶅绉版褰�.PressBorderColor = System.Drawing.Color.FromArgb(65, 177, 225); metroTile涓嶅绉版褰�.PressColor = System.Drawing.Color.FromArgb(65, 177, 225); metroTile涓嶅绉版褰�.PressTextColor = System.Drawing.Color.White; - metroTile涓嶅绉版褰�.Size = new System.Drawing.Size(97, 80); + metroTile涓嶅绉版褰�.Size = new System.Drawing.Size(91, 80); metroTile涓嶅绉版褰�.Style = RLT.Enum.Metro.Style.Light; metroTile涓嶅绉版褰�.StyleManager = null; metroTile涓嶅绉版褰�.TabIndex = 2; @@ -359,7 +359,7 @@ metroTile瀵圭О姊舰.HoverColor = System.Drawing.Color.FromArgb(65, 177, 225); metroTile瀵圭О姊舰.HoverTextColor = System.Drawing.Color.White; metroTile瀵圭О姊舰.IsDerivedStyle = true; - metroTile瀵圭О姊舰.Location = new System.Drawing.Point(12, 41); + metroTile瀵圭О姊舰.Location = new System.Drawing.Point(11, 41); metroTile瀵圭О姊舰.Name = "metroTile瀵圭О姊舰"; metroTile瀵圭О姊舰.NormalBorderColor = System.Drawing.Color.FromArgb(65, 177, 225); metroTile瀵圭О姊舰.NormalColor = System.Drawing.Color.FromArgb(65, 177, 225); @@ -367,7 +367,7 @@ metroTile瀵圭О姊舰.PressBorderColor = System.Drawing.Color.FromArgb(65, 177, 225); metroTile瀵圭О姊舰.PressColor = System.Drawing.Color.FromArgb(65, 177, 225); metroTile瀵圭О姊舰.PressTextColor = System.Drawing.Color.White; - metroTile瀵圭О姊舰.Size = new System.Drawing.Size(97, 80); + metroTile瀵圭О姊舰.Size = new System.Drawing.Size(91, 80); metroTile瀵圭О姊舰.Style = RLT.Enum.Metro.Style.Light; metroTile瀵圭О姊舰.StyleManager = null; metroTile瀵圭О姊舰.TabIndex = 0; @@ -456,7 +456,7 @@ thunderGroupBox3.ForeColor = System.Drawing.Color.Black; thunderGroupBox3.Location = new System.Drawing.Point(3, 387); thunderGroupBox3.Name = "thunderGroupBox3"; - thunderGroupBox3.Size = new System.Drawing.Size(315, 324); + thunderGroupBox3.Size = new System.Drawing.Size(326, 324); thunderGroupBox3.TabIndex = 24; thunderGroupBox3.Text = "v1銆乿2鐨勭‘瀹�"; // @@ -470,7 +470,7 @@ skyTextBox鏂潰y17.BorderColorD = System.Drawing.Color.FromArgb(254, 254, 254); skyTextBox鏂潰y17.Font = new System.Drawing.Font("Verdana", 8F, System.Drawing.FontStyle.Bold); skyTextBox鏂潰y17.ForeColor = System.Drawing.Color.Black; - skyTextBox鏂潰y17.Location = new System.Drawing.Point(118, 101); + skyTextBox鏂潰y17.Location = new System.Drawing.Point(130, 101); skyTextBox鏂潰y17.MaxLength = 32767; skyTextBox鏂潰y17.MultiLine = false; skyTextBox鏂潰y17.Name = "skyTextBox鏂潰y17"; @@ -500,7 +500,7 @@ skyTextBox鏂潰H11.BorderColorD = System.Drawing.Color.FromArgb(254, 254, 254); skyTextBox鏂潰H11.Font = new System.Drawing.Font("Verdana", 8F, System.Drawing.FontStyle.Bold); skyTextBox鏂潰H11.ForeColor = System.Drawing.Color.Black; - skyTextBox鏂潰H11.Location = new System.Drawing.Point(228, 267); + skyTextBox鏂潰H11.Location = new System.Drawing.Point(240, 267); skyTextBox鏂潰H11.MaxLength = 32767; skyTextBox鏂潰H11.MultiLine = false; skyTextBox鏂潰H11.Name = "skyTextBox鏂潰H11"; @@ -522,7 +522,7 @@ skyTextBox鏂潰r11.BorderColorD = System.Drawing.Color.FromArgb(254, 254, 254); skyTextBox鏂潰r11.Font = new System.Drawing.Font("Verdana", 8F, System.Drawing.FontStyle.Bold); skyTextBox鏂潰r11.ForeColor = System.Drawing.Color.Black; - skyTextBox鏂潰r11.Location = new System.Drawing.Point(178, 267); + skyTextBox鏂潰r11.Location = new System.Drawing.Point(190, 267); skyTextBox鏂潰r11.MaxLength = 32767; skyTextBox鏂潰r11.MultiLine = false; skyTextBox鏂潰r11.Name = "skyTextBox鏂潰r11"; @@ -544,7 +544,7 @@ skyTextBox鏂潰H12.BorderColorD = System.Drawing.Color.FromArgb(254, 254, 254); skyTextBox鏂潰H12.Font = new System.Drawing.Font("Verdana", 8F, System.Drawing.FontStyle.Bold); skyTextBox鏂潰H12.ForeColor = System.Drawing.Color.Black; - skyTextBox鏂潰H12.Location = new System.Drawing.Point(228, 240); + skyTextBox鏂潰H12.Location = new System.Drawing.Point(240, 240); skyTextBox鏂潰H12.MaxLength = 32767; skyTextBox鏂潰H12.MultiLine = false; skyTextBox鏂潰H12.Name = "skyTextBox鏂潰H12"; @@ -566,7 +566,7 @@ skyTextBox鏂潰r12.BorderColorD = System.Drawing.Color.FromArgb(254, 254, 254); skyTextBox鏂潰r12.Font = new System.Drawing.Font("Verdana", 8F, System.Drawing.FontStyle.Bold); skyTextBox鏂潰r12.ForeColor = System.Drawing.Color.Black; - skyTextBox鏂潰r12.Location = new System.Drawing.Point(178, 240); + skyTextBox鏂潰r12.Location = new System.Drawing.Point(190, 240); skyTextBox鏂潰r12.MaxLength = 32767; skyTextBox鏂潰r12.MultiLine = false; skyTextBox鏂潰r12.Name = "skyTextBox鏂潰r12"; @@ -588,7 +588,7 @@ skyTextBox鏂潰H13.BorderColorD = System.Drawing.Color.FromArgb(254, 254, 254); skyTextBox鏂潰H13.Font = new System.Drawing.Font("Verdana", 8F, System.Drawing.FontStyle.Bold); skyTextBox鏂潰H13.ForeColor = System.Drawing.Color.Black; - skyTextBox鏂潰H13.Location = new System.Drawing.Point(228, 212); + skyTextBox鏂潰H13.Location = new System.Drawing.Point(240, 212); skyTextBox鏂潰H13.MaxLength = 32767; skyTextBox鏂潰H13.MultiLine = false; skyTextBox鏂潰H13.Name = "skyTextBox鏂潰H13"; @@ -610,7 +610,7 @@ skyTextBox鏂潰r13.BorderColorD = System.Drawing.Color.FromArgb(254, 254, 254); skyTextBox鏂潰r13.Font = new System.Drawing.Font("Verdana", 8F, System.Drawing.FontStyle.Bold); skyTextBox鏂潰r13.ForeColor = System.Drawing.Color.Black; - skyTextBox鏂潰r13.Location = new System.Drawing.Point(178, 212); + skyTextBox鏂潰r13.Location = new System.Drawing.Point(190, 212); skyTextBox鏂潰r13.MaxLength = 32767; skyTextBox鏂潰r13.MultiLine = false; skyTextBox鏂潰r13.Name = "skyTextBox鏂潰r13"; @@ -632,7 +632,7 @@ skyTextBox鏂潰H14.BorderColorD = System.Drawing.Color.FromArgb(254, 254, 254); skyTextBox鏂潰H14.Font = new System.Drawing.Font("Verdana", 8F, System.Drawing.FontStyle.Bold); skyTextBox鏂潰H14.ForeColor = System.Drawing.Color.Black; - skyTextBox鏂潰H14.Location = new System.Drawing.Point(228, 185); + skyTextBox鏂潰H14.Location = new System.Drawing.Point(240, 185); skyTextBox鏂潰H14.MaxLength = 32767; skyTextBox鏂潰H14.MultiLine = false; skyTextBox鏂潰H14.Name = "skyTextBox鏂潰H14"; @@ -654,7 +654,7 @@ skyTextBox鏂潰r14.BorderColorD = System.Drawing.Color.FromArgb(254, 254, 254); skyTextBox鏂潰r14.Font = new System.Drawing.Font("Verdana", 8F, System.Drawing.FontStyle.Bold); skyTextBox鏂潰r14.ForeColor = System.Drawing.Color.Black; - skyTextBox鏂潰r14.Location = new System.Drawing.Point(178, 185); + skyTextBox鏂潰r14.Location = new System.Drawing.Point(190, 185); skyTextBox鏂潰r14.MaxLength = 32767; skyTextBox鏂潰r14.MultiLine = false; skyTextBox鏂潰r14.Name = "skyTextBox鏂潰r14"; @@ -676,7 +676,7 @@ skyTextBox鏂潰H15.BorderColorD = System.Drawing.Color.FromArgb(254, 254, 254); skyTextBox鏂潰H15.Font = new System.Drawing.Font("Verdana", 8F, System.Drawing.FontStyle.Bold); skyTextBox鏂潰H15.ForeColor = System.Drawing.Color.Black; - skyTextBox鏂潰H15.Location = new System.Drawing.Point(228, 156); + skyTextBox鏂潰H15.Location = new System.Drawing.Point(240, 156); skyTextBox鏂潰H15.MaxLength = 32767; skyTextBox鏂潰H15.MultiLine = false; skyTextBox鏂潰H15.Name = "skyTextBox鏂潰H15"; @@ -698,7 +698,7 @@ skyTextBox鏂潰r15.BorderColorD = System.Drawing.Color.FromArgb(254, 254, 254); skyTextBox鏂潰r15.Font = new System.Drawing.Font("Verdana", 8F, System.Drawing.FontStyle.Bold); skyTextBox鏂潰r15.ForeColor = System.Drawing.Color.Black; - skyTextBox鏂潰r15.Location = new System.Drawing.Point(178, 156); + skyTextBox鏂潰r15.Location = new System.Drawing.Point(190, 156); skyTextBox鏂潰r15.MaxLength = 32767; skyTextBox鏂潰r15.MultiLine = false; skyTextBox鏂潰r15.Name = "skyTextBox鏂潰r15"; @@ -720,7 +720,7 @@ skyTextBox鏂潰H16.BorderColorD = System.Drawing.Color.FromArgb(254, 254, 254); skyTextBox鏂潰H16.Font = new System.Drawing.Font("Verdana", 8F, System.Drawing.FontStyle.Bold); skyTextBox鏂潰H16.ForeColor = System.Drawing.Color.Black; - skyTextBox鏂潰H16.Location = new System.Drawing.Point(228, 129); + skyTextBox鏂潰H16.Location = new System.Drawing.Point(240, 129); skyTextBox鏂潰H16.MaxLength = 32767; skyTextBox鏂潰H16.MultiLine = false; skyTextBox鏂潰H16.Name = "skyTextBox鏂潰H16"; @@ -742,7 +742,7 @@ skyTextBox鏂潰r16.BorderColorD = System.Drawing.Color.FromArgb(254, 254, 254); skyTextBox鏂潰r16.Font = new System.Drawing.Font("Verdana", 8F, System.Drawing.FontStyle.Bold); skyTextBox鏂潰r16.ForeColor = System.Drawing.Color.Black; - skyTextBox鏂潰r16.Location = new System.Drawing.Point(178, 129); + skyTextBox鏂潰r16.Location = new System.Drawing.Point(190, 129); skyTextBox鏂潰r16.MaxLength = 32767; skyTextBox鏂潰r16.MultiLine = false; skyTextBox鏂潰r16.Name = "skyTextBox鏂潰r16"; @@ -764,7 +764,7 @@ skyTextBox鏂潰H17.BorderColorD = System.Drawing.Color.FromArgb(254, 254, 254); skyTextBox鏂潰H17.Font = new System.Drawing.Font("Verdana", 8F, System.Drawing.FontStyle.Bold); skyTextBox鏂潰H17.ForeColor = System.Drawing.Color.Black; - skyTextBox鏂潰H17.Location = new System.Drawing.Point(228, 101); + skyTextBox鏂潰H17.Location = new System.Drawing.Point(240, 101); skyTextBox鏂潰H17.MaxLength = 32767; skyTextBox鏂潰H17.MultiLine = false; skyTextBox鏂潰H17.Name = "skyTextBox鏂潰H17"; @@ -786,7 +786,7 @@ skyTextBox鏂潰r17.BorderColorD = System.Drawing.Color.FromArgb(254, 254, 254); skyTextBox鏂潰r17.Font = new System.Drawing.Font("Verdana", 8F, System.Drawing.FontStyle.Bold); skyTextBox鏂潰r17.ForeColor = System.Drawing.Color.Black; - skyTextBox鏂潰r17.Location = new System.Drawing.Point(178, 101); + skyTextBox鏂潰r17.Location = new System.Drawing.Point(190, 101); skyTextBox鏂潰r17.MaxLength = 32767; skyTextBox鏂潰r17.MultiLine = false; skyTextBox鏂潰r17.Name = "skyTextBox鏂潰r17"; @@ -808,7 +808,7 @@ skyTextBox鏂潰H18.BorderColorD = System.Drawing.Color.FromArgb(254, 254, 254); skyTextBox鏂潰H18.Font = new System.Drawing.Font("Verdana", 8F, System.Drawing.FontStyle.Bold); skyTextBox鏂潰H18.ForeColor = System.Drawing.Color.Black; - skyTextBox鏂潰H18.Location = new System.Drawing.Point(228, 72); + skyTextBox鏂潰H18.Location = new System.Drawing.Point(240, 72); skyTextBox鏂潰H18.MaxLength = 32767; skyTextBox鏂潰H18.MultiLine = false; skyTextBox鏂潰H18.Name = "skyTextBox鏂潰H18"; @@ -832,7 +832,7 @@ skyTextBox鏂潰r18.BorderColorD = System.Drawing.Color.FromArgb(254, 254, 254); skyTextBox鏂潰r18.Font = new System.Drawing.Font("Verdana", 8F, System.Drawing.FontStyle.Bold); skyTextBox鏂潰r18.ForeColor = System.Drawing.Color.Black; - skyTextBox鏂潰r18.Location = new System.Drawing.Point(178, 72); + skyTextBox鏂潰r18.Location = new System.Drawing.Point(190, 72); skyTextBox鏂潰r18.MaxLength = 32767; skyTextBox鏂潰r18.MultiLine = false; skyTextBox鏂潰r18.Name = "skyTextBox鏂潰r18"; @@ -851,7 +851,7 @@ crownLabel7.AutoSize = true; crownLabel7.Font = new System.Drawing.Font("Microsoft YaHei UI", 10F, System.Drawing.FontStyle.Bold); crownLabel7.ForeColor = System.Drawing.Color.Black; - crownLabel7.Location = new System.Drawing.Point(242, 40); + crownLabel7.Location = new System.Drawing.Point(254, 40); crownLabel7.Name = "crownLabel7"; crownLabel7.Size = new System.Drawing.Size(37, 19); crownLabel7.TabIndex = 53; @@ -862,7 +862,7 @@ crownLabely2.AutoSize = true; crownLabely2.Font = new System.Drawing.Font("Microsoft YaHei UI", 10F, System.Drawing.FontStyle.Bold); crownLabely2.ForeColor = System.Drawing.Color.Black; - crownLabely2.Location = new System.Drawing.Point(167, 40); + crownLabely2.Location = new System.Drawing.Point(179, 40); crownLabely2.Name = "crownLabely2"; crownLabely2.Size = new System.Drawing.Size(65, 19); crownLabely2.TabIndex = 53; @@ -878,7 +878,7 @@ skyTextBox鏂潰y11.BorderColorD = System.Drawing.Color.FromArgb(254, 254, 254); skyTextBox鏂潰y11.Font = new System.Drawing.Font("Verdana", 8F, System.Drawing.FontStyle.Bold); skyTextBox鏂潰y11.ForeColor = System.Drawing.Color.Black; - skyTextBox鏂潰y11.Location = new System.Drawing.Point(118, 267); + skyTextBox鏂潰y11.Location = new System.Drawing.Point(130, 267); skyTextBox鏂潰y11.MaxLength = 32767; skyTextBox鏂潰y11.MultiLine = false; skyTextBox鏂潰y11.Name = "skyTextBox鏂潰y11"; @@ -900,7 +900,7 @@ skyTextBox鏂潰y12.BorderColorD = System.Drawing.Color.FromArgb(254, 254, 254); skyTextBox鏂潰y12.Font = new System.Drawing.Font("Verdana", 8F, System.Drawing.FontStyle.Bold); skyTextBox鏂潰y12.ForeColor = System.Drawing.Color.Black; - skyTextBox鏂潰y12.Location = new System.Drawing.Point(118, 240); + skyTextBox鏂潰y12.Location = new System.Drawing.Point(130, 240); skyTextBox鏂潰y12.MaxLength = 32767; skyTextBox鏂潰y12.MultiLine = false; skyTextBox鏂潰y12.Name = "skyTextBox鏂潰y12"; @@ -922,7 +922,7 @@ skyTextBox鏂潰y13.BorderColorD = System.Drawing.Color.FromArgb(254, 254, 254); skyTextBox鏂潰y13.Font = new System.Drawing.Font("Verdana", 8F, System.Drawing.FontStyle.Bold); skyTextBox鏂潰y13.ForeColor = System.Drawing.Color.Black; - skyTextBox鏂潰y13.Location = new System.Drawing.Point(118, 212); + skyTextBox鏂潰y13.Location = new System.Drawing.Point(130, 212); skyTextBox鏂潰y13.MaxLength = 32767; skyTextBox鏂潰y13.MultiLine = false; skyTextBox鏂潰y13.Name = "skyTextBox鏂潰y13"; @@ -944,7 +944,7 @@ skyTextBox鏂潰y14.BorderColorD = System.Drawing.Color.FromArgb(254, 254, 254); skyTextBox鏂潰y14.Font = new System.Drawing.Font("Verdana", 8F, System.Drawing.FontStyle.Bold); skyTextBox鏂潰y14.ForeColor = System.Drawing.Color.Black; - skyTextBox鏂潰y14.Location = new System.Drawing.Point(118, 185); + skyTextBox鏂潰y14.Location = new System.Drawing.Point(130, 185); skyTextBox鏂潰y14.MaxLength = 32767; skyTextBox鏂潰y14.MultiLine = false; skyTextBox鏂潰y14.Name = "skyTextBox鏂潰y14"; @@ -966,7 +966,7 @@ skyTextBox鏂潰y15.BorderColorD = System.Drawing.Color.FromArgb(254, 254, 254); skyTextBox鏂潰y15.Font = new System.Drawing.Font("Verdana", 8F, System.Drawing.FontStyle.Bold); skyTextBox鏂潰y15.ForeColor = System.Drawing.Color.Black; - skyTextBox鏂潰y15.Location = new System.Drawing.Point(118, 156); + skyTextBox鏂潰y15.Location = new System.Drawing.Point(130, 156); skyTextBox鏂潰y15.MaxLength = 32767; skyTextBox鏂潰y15.MultiLine = false; skyTextBox鏂潰y15.Name = "skyTextBox鏂潰y15"; @@ -988,7 +988,7 @@ skyTextBox鏂潰y16.BorderColorD = System.Drawing.Color.FromArgb(254, 254, 254); skyTextBox鏂潰y16.Font = new System.Drawing.Font("Verdana", 8F, System.Drawing.FontStyle.Bold); skyTextBox鏂潰y16.ForeColor = System.Drawing.Color.Black; - skyTextBox鏂潰y16.Location = new System.Drawing.Point(118, 129); + skyTextBox鏂潰y16.Location = new System.Drawing.Point(130, 129); skyTextBox鏂潰y16.MaxLength = 32767; skyTextBox鏂潰y16.MultiLine = false; skyTextBox鏂潰y16.Name = "skyTextBox鏂潰y16"; @@ -1010,7 +1010,7 @@ skyTextBox鏂潰y18.BorderColorD = System.Drawing.Color.FromArgb(254, 254, 254); skyTextBox鏂潰y18.Font = new System.Drawing.Font("Verdana", 8F, System.Drawing.FontStyle.Bold); skyTextBox鏂潰y18.ForeColor = System.Drawing.Color.Black; - skyTextBox鏂潰y18.Location = new System.Drawing.Point(118, 72); + skyTextBox鏂潰y18.Location = new System.Drawing.Point(130, 72); skyTextBox鏂潰y18.MaxLength = 32767; skyTextBox鏂潰y18.MultiLine = false; skyTextBox鏂潰y18.Name = "skyTextBox鏂潰y18"; @@ -1029,7 +1029,7 @@ crownLabely1.AutoSize = true; crownLabely1.Font = new System.Drawing.Font("Microsoft YaHei UI", 10F, System.Drawing.FontStyle.Bold); crownLabely1.ForeColor = System.Drawing.Color.Black; - crownLabely1.Location = new System.Drawing.Point(122, 40); + crownLabely1.Location = new System.Drawing.Point(134, 40); crownLabely1.Name = "crownLabely1"; crownLabely1.Size = new System.Drawing.Size(42, 19); crownLabely1.TabIndex = 44; diff --git "a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\346\226\255\351\235\242\350\256\276\350\256\241/ctrlSectionBundleInfo.cs" "b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\346\226\255\351\235\242\350\256\276\350\256\241/ctrlSectionBundleInfo.cs" index be00f3a..4698470 100644 --- "a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\346\226\255\351\235\242\350\256\276\350\256\241/ctrlSectionBundleInfo.cs" +++ "b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\346\226\255\351\235\242\350\256\276\350\256\241/ctrlSectionBundleInfo.cs" @@ -59,9 +59,17 @@ RBtn涓嶅绉版褰�.Checked = false; RBtn鐭╁舰.Checked = true; } - + RefrehPara(); } + + public void RefreshSectPara(ViewModel.SectionBundleInfo paras, int selectedPointIndex) + { + paras.CalcHeightByArea(_geomBaseInfo, selectedPointIndex); + SetBindingData(paras); + } + + private void RefrehPara() { for (var argument = 1; argument <= 8; argument++) diff --git "a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\346\226\255\351\235\242\350\256\276\350\256\241/ctrlSectionBundleInfo.resx" "b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\346\226\255\351\235\242\350\256\276\350\256\241/ctrlSectionBundleInfo.resx" index 2f77e3e..d2d7540 100644 --- "a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\346\226\255\351\235\242\350\256\276\350\256\241/ctrlSectionBundleInfo.resx" +++ "b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\346\226\255\351\235\242\350\256\276\350\256\241/ctrlSectionBundleInfo.resx" @@ -1,7 +1,7 @@ 锘�<?xml version="1.0" encoding="utf-8"?> <root> <!-- - Microsoft ResX Schema + Microsoft ResX Schema Version 2.0 @@ -48,7 +48,7 @@ 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 diff --git "a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\346\226\255\351\235\242\350\256\276\350\256\241/ctrlSectionShapeInfo18.Designer.cs" "b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\346\226\255\351\235\242\350\256\276\350\256\241/ctrlSectionShapeInfo18.Designer.cs" index 935ddb2..85d9797 100644 --- "a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\346\226\255\351\235\242\350\256\276\350\256\241/ctrlSectionShapeInfo18.Designer.cs" +++ "b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\346\226\255\351\235\242\350\256\276\350\256\241/ctrlSectionShapeInfo18.Designer.cs" @@ -83,7 +83,7 @@ thunderGroupBox1.ForeColor = System.Drawing.Color.Black; thunderGroupBox1.Location = new System.Drawing.Point(3, 210); thunderGroupBox1.Name = "thunderGroupBox1"; - thunderGroupBox1.Size = new System.Drawing.Size(292, 238); + thunderGroupBox1.Size = new System.Drawing.Size(313, 238); thunderGroupBox1.TabIndex = 22; thunderGroupBox1.Text = "瑙掑害1"; // @@ -124,7 +124,7 @@ mTextBoxEdity1.HideSelection = true; mTextBoxEdity1.Hint = "y1(Gama1)"; mTextBoxEdity1.LeadingIcon = null; - mTextBoxEdity1.Location = new System.Drawing.Point(8, 35); + mTextBoxEdity1.Location = new System.Drawing.Point(11, 35); mTextBoxEdity1.MaxLength = 32767; mTextBoxEdity1.MouseState = RLT.Helper.MaterialDrawHelper.MaterialMouseState.OUT; mTextBoxEdity1.Name = "mTextBoxEdity1"; @@ -138,7 +138,7 @@ mTextBoxEdity1.SelectionLength = 0; mTextBoxEdity1.SelectionStart = 0; mTextBoxEdity1.ShortcutsEnabled = true; - mTextBoxEdity1.Size = new System.Drawing.Size(274, 48); + mTextBoxEdity1.Size = new System.Drawing.Size(281, 48); mTextBoxEdity1.TabIndex = 5; mTextBoxEdity1.TabStop = false; mTextBoxEdity1.Text = "璇疯緭鍏1"; @@ -165,7 +165,7 @@ mTextBoxEditH.HideSelection = true; mTextBoxEditH.Hint = "H"; mTextBoxEditH.LeadingIcon = null; - mTextBoxEditH.Location = new System.Drawing.Point(8, 167); + mTextBoxEditH.Location = new System.Drawing.Point(11, 167); mTextBoxEditH.MaxLength = 32767; mTextBoxEditH.MouseState = RLT.Helper.MaterialDrawHelper.MaterialMouseState.OUT; mTextBoxEditH.Name = "mTextBoxEditH"; @@ -179,7 +179,7 @@ mTextBoxEditH.SelectionLength = 0; mTextBoxEditH.SelectionStart = 0; mTextBoxEditH.ShortcutsEnabled = true; - mTextBoxEditH.Size = new System.Drawing.Size(274, 48); + mTextBoxEditH.Size = new System.Drawing.Size(281, 48); mTextBoxEditH.TabIndex = 27; mTextBoxEditH.TabStop = false; mTextBoxEditH.Text = " "; @@ -202,7 +202,7 @@ mTextBoxEdity2.HideSelection = true; mTextBoxEdity2.Hint = "y2(Gama2)"; mTextBoxEdity2.LeadingIcon = null; - mTextBoxEdity2.Location = new System.Drawing.Point(8, 101); + mTextBoxEdity2.Location = new System.Drawing.Point(11, 101); mTextBoxEdity2.MaxLength = 32767; mTextBoxEdity2.MouseState = RLT.Helper.MaterialDrawHelper.MaterialMouseState.OUT; mTextBoxEdity2.Name = "mTextBoxEdity2"; @@ -216,7 +216,7 @@ mTextBoxEdity2.SelectionLength = 0; mTextBoxEdity2.SelectionStart = 0; mTextBoxEdity2.ShortcutsEnabled = true; - mTextBoxEdity2.Size = new System.Drawing.Size(274, 48); + mTextBoxEdity2.Size = new System.Drawing.Size(281, 48); mTextBoxEdity2.TabIndex = 5; mTextBoxEdity2.TabStop = false; mTextBoxEdity2.Text = "璇疯緭鍏2"; @@ -235,7 +235,7 @@ skyLabelU.Enabled = false; skyLabelU.Font = new System.Drawing.Font("Swis721 BlkCn BT", 7F, System.Drawing.FontStyle.Bold); skyLabelU.ForeColor = System.Drawing.Color.DeepPink; - skyLabelU.Location = new System.Drawing.Point(149, 110); + skyLabelU.Location = new System.Drawing.Point(167, 110); skyLabelU.Name = "skyLabelU"; skyLabelU.Size = new System.Drawing.Size(49, 12); skyLabelU.TabIndex = 65; @@ -291,7 +291,7 @@ mTextBoxEditu.HideSelection = true; mTextBoxEditu.Hint = "U"; mTextBoxEditu.LeadingIcon = null; - mTextBoxEditu.Location = new System.Drawing.Point(149, 60); + mTextBoxEditu.Location = new System.Drawing.Point(167, 60); mTextBoxEditu.MaxLength = 32767; mTextBoxEditu.MouseState = RLT.Helper.MaterialDrawHelper.MaterialMouseState.OUT; mTextBoxEditu.Name = "mTextBoxEditu"; @@ -305,7 +305,7 @@ mTextBoxEditu.SelectionLength = 0; mTextBoxEditu.SelectionStart = 0; mTextBoxEditu.ShortcutsEnabled = true; - mTextBoxEditu.Size = new System.Drawing.Size(135, 48); + mTextBoxEditu.Size = new System.Drawing.Size(145, 48); mTextBoxEditu.TabIndex = 8; mTextBoxEditu.TabStop = false; mTextBoxEditu.Text = "璇疯緭鍏�"; @@ -331,7 +331,7 @@ mTextBoxEditW1.HideSelection = true; mTextBoxEditW1.Hint = "W1"; mTextBoxEditW1.LeadingIcon = null; - mTextBoxEditW1.Location = new System.Drawing.Point(10, 60); + mTextBoxEditW1.Location = new System.Drawing.Point(7, 60); mTextBoxEditW1.MaxLength = 32767; mTextBoxEditW1.MouseState = RLT.Helper.MaterialDrawHelper.MaterialMouseState.OUT; mTextBoxEditW1.Name = "mTextBoxEditW1"; @@ -345,7 +345,7 @@ mTextBoxEditW1.SelectionLength = 0; mTextBoxEditW1.SelectionStart = 0; mTextBoxEditW1.ShortcutsEnabled = true; - mTextBoxEditW1.Size = new System.Drawing.Size(133, 48); + mTextBoxEditW1.Size = new System.Drawing.Size(145, 48); mTextBoxEditW1.TabIndex = 9; mTextBoxEditW1.TabStop = false; mTextBoxEditW1.Text = "璇疯緭鍏�"; @@ -367,7 +367,7 @@ metroTile鏂潰褰㈢姸.HoverColor = System.Drawing.Color.FromArgb(65, 177, 225); metroTile鏂潰褰㈢姸.HoverTextColor = System.Drawing.Color.White; metroTile鏂潰褰㈢姸.IsDerivedStyle = true; - metroTile鏂潰褰㈢姸.Location = new System.Drawing.Point(55, 51); + metroTile鏂潰褰㈢姸.Location = new System.Drawing.Point(73, 44); metroTile鏂潰褰㈢姸.Name = "metroTile鏂潰褰㈢姸"; metroTile鏂潰褰㈢姸.NormalBorderColor = System.Drawing.Color.FromArgb(65, 177, 225); metroTile鏂潰褰㈢姸.NormalColor = System.Drawing.Color.FromArgb(65, 177, 225); @@ -402,7 +402,7 @@ thunderGroupBox2.ForeColor = System.Drawing.Color.Black; thunderGroupBox2.Location = new System.Drawing.Point(4, 627); thunderGroupBox2.Name = "thunderGroupBox2"; - thunderGroupBox2.Size = new System.Drawing.Size(288, 224); + thunderGroupBox2.Size = new System.Drawing.Size(325, 224); thunderGroupBox2.TabIndex = 23; thunderGroupBox2.Text = "杈撳叆鏂潰骞冲潎閫熷害"; thunderGroupBox2.Visible = false; @@ -448,7 +448,7 @@ mTextBoxEditW4.SelectionLength = 0; mTextBoxEditW4.SelectionStart = 0; mTextBoxEditW4.ShortcutsEnabled = true; - mTextBoxEditW4.Size = new System.Drawing.Size(274, 48); + mTextBoxEditW4.Size = new System.Drawing.Size(302, 48); mTextBoxEditW4.TabIndex = 9; mTextBoxEditW4.TabStop = false; mTextBoxEditW4.Text = "璇疯緭鍏4"; @@ -495,7 +495,7 @@ mTextBoxEditR1.HideSelection = true; mTextBoxEditR1.Hint = "R1"; mTextBoxEditR1.LeadingIcon = null; - mTextBoxEditR1.Location = new System.Drawing.Point(11, 455); + mTextBoxEditR1.Location = new System.Drawing.Point(6, 454); mTextBoxEditR1.MaxLength = 32767; mTextBoxEditR1.MouseState = RLT.Helper.MaterialDrawHelper.MaterialMouseState.OUT; mTextBoxEditR1.Name = "mTextBoxEditR1"; @@ -509,7 +509,7 @@ mTextBoxEditR1.SelectionLength = 0; mTextBoxEditR1.SelectionStart = 0; mTextBoxEditR1.ShortcutsEnabled = true; - mTextBoxEditR1.Size = new System.Drawing.Size(276, 48); + mTextBoxEditR1.Size = new System.Drawing.Size(305, 48); mTextBoxEditR1.TabIndex = 26; mTextBoxEditR1.TabStop = false; mTextBoxEditR1.Text = "璇疯緭鍏�"; @@ -535,7 +535,7 @@ mTextBoxEditR2.HideSelection = true; mTextBoxEditR2.Hint = "R2"; mTextBoxEditR2.LeadingIcon = null; - mTextBoxEditR2.Location = new System.Drawing.Point(11, 521); + mTextBoxEditR2.Location = new System.Drawing.Point(6, 520); mTextBoxEditR2.MaxLength = 32767; mTextBoxEditR2.MouseState = RLT.Helper.MaterialDrawHelper.MaterialMouseState.OUT; mTextBoxEditR2.Name = "mTextBoxEditR2"; @@ -549,7 +549,7 @@ mTextBoxEditR2.SelectionLength = 0; mTextBoxEditR2.SelectionStart = 0; mTextBoxEditR2.ShortcutsEnabled = true; - mTextBoxEditR2.Size = new System.Drawing.Size(128, 48); + mTextBoxEditR2.Size = new System.Drawing.Size(145, 48); mTextBoxEditR2.TabIndex = 28; mTextBoxEditR2.TabStop = false; mTextBoxEditR2.Text = " "; @@ -572,7 +572,7 @@ mTextBoxEditR4.HideSelection = true; mTextBoxEditR4.Hint = "R4"; mTextBoxEditR4.LeadingIcon = null; - mTextBoxEditR4.Location = new System.Drawing.Point(159, 521); + mTextBoxEditR4.Location = new System.Drawing.Point(166, 520); mTextBoxEditR4.MaxLength = 32767; mTextBoxEditR4.MouseState = RLT.Helper.MaterialDrawHelper.MaterialMouseState.OUT; mTextBoxEditR4.Name = "mTextBoxEditR4"; @@ -586,7 +586,7 @@ mTextBoxEditR4.SelectionLength = 0; mTextBoxEditR4.SelectionStart = 0; mTextBoxEditR4.ShortcutsEnabled = true; - mTextBoxEditR4.Size = new System.Drawing.Size(128, 48); + mTextBoxEditR4.Size = new System.Drawing.Size(145, 48); mTextBoxEditR4.TabIndex = 29; mTextBoxEditR4.TabStop = false; mTextBoxEditR4.Text = " "; @@ -605,12 +605,12 @@ mBtn鏇存柊妯″瀷.HighEmphasis = false; mBtn鏇存柊妯″瀷.Icon = null; mBtn鏇存柊妯″瀷.IconType = RLT.Controls.MaterialButton.MaterialIconType.Rebase; - mBtn鏇存柊妯″瀷.Location = new System.Drawing.Point(6, 582); + mBtn鏇存柊妯″瀷.Location = new System.Drawing.Point(3, 577); mBtn鏇存柊妯″瀷.Margin = new System.Windows.Forms.Padding(4, 6, 4, 6); mBtn鏇存柊妯″瀷.MouseState = RLT.Helper.MaterialDrawHelper.MaterialMouseState.HOVER; mBtn鏇存柊妯″瀷.Name = "mBtn鏇存柊妯″瀷"; mBtn鏇存柊妯″瀷.NoAccentTextColor = System.Drawing.Color.Empty; - mBtn鏇存柊妯″瀷.Size = new System.Drawing.Size(286, 33); + mBtn鏇存柊妯″瀷.Size = new System.Drawing.Size(310, 33); mBtn鏇存柊妯″瀷.TabIndex = 30; mBtn鏇存柊妯″瀷.Text = " 鏇存柊妯″瀷 "; mBtn鏇存柊妯″瀷.Type = RLT.Controls.MaterialButton.MaterialButtonType.Outlined; @@ -635,7 +635,7 @@ skyLabelR1.AutoSize = true; skyLabelR1.Font = new System.Drawing.Font("Swis721 BlkCn BT", 7F, System.Drawing.FontStyle.Bold); skyLabelR1.ForeColor = System.Drawing.Color.DeepPink; - skyLabelR1.Location = new System.Drawing.Point(17, 506); + skyLabelR1.Location = new System.Drawing.Point(6, 505); skyLabelR1.Name = "skyLabelR1"; skyLabelR1.Size = new System.Drawing.Size(55, 12); skyLabelR1.TabIndex = 69; @@ -669,7 +669,7 @@ Controls.Add(thunderGroupBox1); Margin = new System.Windows.Forms.Padding(4); Name = "ctrlSectionShapeInfo18"; - Size = new System.Drawing.Size(298, 995); + Size = new System.Drawing.Size(325, 995); thunderGroupBox1.ResumeLayout(false); thunderGroupBox1.PerformLayout(); thunderGroupBox2.ResumeLayout(false); diff --git "a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\346\226\255\351\235\242\350\256\276\350\256\241/ctrlSectionShapeInfo18.cs" "b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\346\226\255\351\235\242\350\256\276\350\256\241/ctrlSectionShapeInfo18.cs" index 098c4b7..7dffb7a 100644 --- "a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\346\226\255\351\235\242\350\256\276\350\256\241/ctrlSectionShapeInfo18.cs" +++ "b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\346\226\255\351\235\242\350\256\276\350\256\241/ctrlSectionShapeInfo18.cs" @@ -42,6 +42,11 @@ InitialModule(); } + public void RefreshSectPara(ViewModel.SectionShapePara paras) + { + SetBindingData(paras); + // paras.ii + } public ViewModel.SectionShapePara GetBindingData(out string error) { if (!Verify(out error)) diff --git "a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\346\226\255\351\235\242\350\256\276\350\256\241/ctrlSectionShapeInfo18.resx" "b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\346\226\255\351\235\242\350\256\276\350\256\241/ctrlSectionShapeInfo18.resx" index ff2ff9d..03aaea2 100644 --- "a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\346\226\255\351\235\242\350\256\276\350\256\241/ctrlSectionShapeInfo18.resx" +++ "b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\346\226\255\351\235\242\350\256\276\350\256\241/ctrlSectionShapeInfo18.resx" @@ -1,7 +1,7 @@ 锘�<?xml version="1.0" encoding="utf-8"?> <root> <!-- - Microsoft ResX Schema + Microsoft ResX Schema Version 2.0 @@ -48,7 +48,7 @@ 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 -- Gitblit v1.9.3