WinFrmUI/DPumpHydr.WinFrmUI.Volute/MainViewPage_StepInfo.cs
@@ -5,6 +5,7 @@ using System.IO; using System.Text; using System.Linq; using DPumpHydr.WinFrmUI.Volute.ViewModel; namespace DPumpHydr.WinFrmUI.Volute { @@ -54,6 +55,11 @@ return GoPrevStepCore(); } ViewModel.HdrBaseInfo _hdrBaseInfo = null; ViewModel.GeomBaseInfo _geomBaseInfo = null; /// <summary> /// ä¸ä¸æ¥æ ¸å¿ /// </summary> /// <returns></returns> private bool GoNextStepCore() { var next_step = (from x in _allStepNodes @@ -71,13 +77,44 @@ MessageBox.Show(error_info); return false; } hdrBaseInfo.CalcNs(); _hdrBaseInfo = hdrBaseInfo; if(_geomBaseInfo == null) { _geomBaseInfo = new ViewModel.GeomBaseInfo(); } _geomBaseInfo.Calc(hdrBaseInfo); } if (_currentStepID == Step_ID_Geom_Base_Info) { string error_info; var geomBaseInfo = _ctrlGeomBaseInfo.GetBindingData(out error_info); if (geomBaseInfo == null) { MessageBox.Show(error_info); return false; } _geomBaseInfo = geomBaseInfo; } //if (_currentStepID == Step_ID_Section18_Base) //{ // string error_info; // var geomBaseInfo = _ctrlGeomBaseInfo.GetBindingData(out error_info); // if (geomBaseInfo == null) // { // MessageBox.Show(error_info); // return false; // } // _geomBaseInfo = geomBaseInfo; //} SetParasCtrl(next_step.ID); return true; } /// <summary> /// ä¸ä¸æ¥æ ¸å¿ /// </summary> /// <returns></returns> private bool GoPrevStepCore() { if (_currentStepID == Step_ID_Hdr_Base_Info) @@ -94,7 +131,10 @@ return true; } /// <summary> /// çæç¬¬å æ¥æ§ä»¶ /// </summary> /// <param name="step_id"></param> private void SetParasCtrl(long step_id) { if (step_id == Step_ID_Hdr_Base_Info) @@ -103,7 +143,9 @@ _ctrlHdrBaseInfo = new ctrlHdrBaseInfo(); this.panelParas.Controls.Clear(); this.panelParas.Controls.Add(_ctrlHdrBaseInfo); _ctrlHdrBaseInfo.SetBindingData(_hdrBaseInfo); } if (step_id == Step_ID_Geom_Base_Info) { if (_ctrlGeomBaseInfo == null) @@ -112,9 +154,9 @@ _ctrlGeomBaseInfo.Name = "ctrlGeomBaseInfo"; _ctrlGeomBaseInfo.Dock = DockStyle.Right; } this.panelParas.Controls.Clear(); this.panelParas.Controls.Add(_ctrlGeomBaseInfo); _ctrlGeomBaseInfo.SetBindingData(_geomBaseInfo); } WinFrmUI/DPumpHydr.WinFrmUI.Volute/³öË®Éè¼Æ/ctrlSetOutflowStyle.Designer.cs
@@ -279,7 +279,6 @@ 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"; @@ -318,7 +317,6 @@ 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"; WinFrmUI/DPumpHydr.WinFrmUI.Volute/³öË®Éè¼Æ/ctrlSetOutflowStyle.cs
@@ -35,14 +35,14 @@ { error = ""; bool isOk = true; if (string.IsNullOrEmpty(mlTextBoxEditæ©æ£ç®¡é¿åº¦.Text) || mlTextBoxEditæ©æ£ç®¡é¿åº¦.Text == "请è¾å ¥æ©æ£ç®¡é¿åº¦") 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ä¸å¿è·ç¦».Text) || mlTextBoxEditä¸å¿è·ç¦».Text == "请è¾å ¥ä¸å¿è·ç¦»") if (string.IsNullOrEmpty(mlTextBoxEditä¸å¿è·ç¦».Text) || mlTextBoxEditä¸å¿è·ç¦».Text == "请è¾å ¥ä¸å¿è·ç¦»" || double.Parse(mlTextBoxEditä¸å¿è·ç¦».Text) == 0) { error = "请è¾å ¥ä¸å¿è·ç¦»ï¼"; isOk = false; @@ -116,7 +116,7 @@ private void mlTextBoxEditæ©æ£é¿åº¦_Leave(object sender, EventArgs e) { if (string.IsNullOrEmpty(mlTextBoxEditæ©æ£ç®¡é¿åº¦.Text)) if (string.IsNullOrEmpty(mlTextBoxEditæ©æ£ç®¡é¿åº¦.Text) || double.Parse(mlTextBoxEditæ©æ£ç®¡é¿åº¦.Text) == 0) { mlTextBoxEditæ©æ£ç®¡é¿åº¦.Text = "请è¾å ¥æ©æ£ç®¡é¿åº¦"; } @@ -134,7 +134,7 @@ private void mlTextBoxEditä¸å¿è·ç¦»_Leave(object sender, EventArgs e) { if (string.IsNullOrEmpty(mlTextBoxEditä¸å¿è·ç¦».Text)) if (string.IsNullOrEmpty(mlTextBoxEditä¸å¿è·ç¦».Text) || double.Parse(mlTextBoxEditä¸å¿è·ç¦».Text) == 0) { mlTextBoxEditä¸å¿è·ç¦».Text = "请è¾å ¥ä¸å¿è·ç¦»"; } WinFrmUI/DPumpHydr.WinFrmUI.Volute/»ù±¾²ÎÊý/ViewModel/GeomBaseInfo.cs
@@ -26,6 +26,10 @@ public double K3 { get; set; } /// <summary> /// æ¯è½¬é /// </summary> public double ns { get; set; } /// <summary> /// è¿æ¥çæ¬æä½æå¤§å¤ç´å¾ /// </summary> public double XgtBodyMaxDia { get; set; } @@ -40,6 +44,7 @@ /// <param name="base_info"></param> public void Calc(HdrBaseInfo base_info) { this.ns = base_info.ns; //计ç®å¹¶è®¾ç½®K3 if (base_info.ns < 170) K3 = (69.1549 - 0.446605 * base_info.ns + 0.0014497 * base_info.ns * base_info.ns) / 100; WinFrmUI/DPumpHydr.WinFrmUI.Volute/»ù±¾²ÎÊý/ctrlGeomBaseInfo.Designer.cs
@@ -38,19 +38,23 @@ mTextBoxEditåºåç´å¾ = new RLT.Controls.MaterialTextBoxEdit(); thunderGroupBox2 = new RLT.Controls.ThunderGroupBox(); skyLabelåºå宽度 = new RLT.Controls.SkyLabel(); crownLabel6 = new RLT.Controls.CrownLabel(); crownLabel5 = new RLT.Controls.CrownLabel(); crownLabelmaxåºå宽度1 = new RLT.Controls.CrownLabel(); crownLabelminåºå宽度1 = new RLT.Controls.CrownLabel(); crownLabel2 = new RLT.Controls.CrownLabel(); metroTrackBaråºå宽度 = new RLT.Controls.MetroTrackBar(); mTextBoxEditåºå宽度 = new RLT.Controls.MaterialTextBoxEdit(); crownLabel8 = new RLT.Controls.CrownLabel(); crownLabel7 = new RLT.Controls.CrownLabel(); crownLabelmaxéè宿¾è§1 = new RLT.Controls.CrownLabel(); crownLabelminéè宿¾è§1 = new RLT.Controls.CrownLabel(); crownLabel3 = new RLT.Controls.CrownLabel(); metroTrackBaréè宿¾è§ = new RLT.Controls.MetroTrackBar(); mTextBoxEditéè宿¾è§ = new RLT.Controls.MaterialTextBoxEdit(); thunderGroupBox3 = new RLT.Controls.ThunderGroupBox(); skyLabeléè宿¾è§ = new RLT.Controls.SkyLabel(); metroToolTipç¬¬äºæ¥æç¤º = new RLT.Controls.MetroToolTip(); crownLabelminåºå宽度2 = new RLT.Controls.CrownLabel(); crownLabelmaxåºå宽度2 = new RLT.Controls.CrownLabel(); crownLabelminéè宿¾è§2 = new RLT.Controls.CrownLabel(); crownLabelmaxéè宿¾è§2 = new RLT.Controls.CrownLabel(); thunderGroupBox1.SuspendLayout(); thunderGroupBox2.SuspendLayout(); thunderGroupBox3.SuspendLayout(); @@ -213,9 +217,11 @@ thunderGroupBox2.BodyColorB = System.Drawing.Color.DarkGray; thunderGroupBox2.BodyColorC = System.Drawing.SystemColors.ButtonFace; thunderGroupBox2.BodyColorD = System.Drawing.SystemColors.ButtonFace; thunderGroupBox2.Controls.Add(crownLabelmaxåºå宽度2); thunderGroupBox2.Controls.Add(crownLabelminåºå宽度2); thunderGroupBox2.Controls.Add(skyLabelåºå宽度); thunderGroupBox2.Controls.Add(crownLabel6); thunderGroupBox2.Controls.Add(crownLabel5); thunderGroupBox2.Controls.Add(crownLabelmaxåºå宽度1); thunderGroupBox2.Controls.Add(crownLabelminåºå宽度1); thunderGroupBox2.Controls.Add(crownLabel2); thunderGroupBox2.Controls.Add(metroTrackBaråºå宽度); thunderGroupBox2.Controls.Add(mTextBoxEditåºå宽度); @@ -239,29 +245,29 @@ skyLabelåºå宽度.Text = "请è¾å ¥åºå宽度ï¼"; skyLabelåºå宽度.Visible = false; // // crownLabel6 // crownLabelmaxåºå宽度1 // crownLabel6.AutoSize = true; crownLabel6.BackColor = System.Drawing.SystemColors.Control; crownLabel6.Font = new System.Drawing.Font("Microsoft YaHei UI", 8F, System.Drawing.FontStyle.Bold); crownLabel6.ForeColor = System.Drawing.Color.Black; crownLabel6.Location = new System.Drawing.Point(202, 98); crownLabel6.Name = "crownLabel6"; crownLabel6.Size = new System.Drawing.Size(38, 16); crownLabel6.TabIndex = 22; crownLabel6.Text = "49.00"; crownLabelmaxåºå宽度1.AutoSize = true; 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.Name = "crownLabelmaxåºå宽度1"; crownLabelmaxåºå宽度1.Size = new System.Drawing.Size(38, 16); crownLabelmaxåºå宽度1.TabIndex = 22; crownLabelmaxåºå宽度1.Text = "49.00"; // // crownLabel5 // crownLabelminåºå宽度1 // crownLabel5.AutoSize = true; crownLabel5.BackColor = System.Drawing.SystemColors.Control; crownLabel5.Font = new System.Drawing.Font("Microsoft YaHei UI", 8F, System.Drawing.FontStyle.Bold); crownLabel5.ForeColor = System.Drawing.Color.Black; crownLabel5.Location = new System.Drawing.Point(13, 98); crownLabel5.Name = "crownLabel5"; crownLabel5.Size = new System.Drawing.Size(38, 16); crownLabel5.TabIndex = 21; crownLabel5.Text = "15.40"; crownLabelminåºå宽度1.AutoSize = true; crownLabelminåºå宽度1.BackColor = System.Drawing.SystemColors.Control; crownLabelminåºå宽度1.Font = new System.Drawing.Font("Microsoft YaHei UI", 8F, System.Drawing.FontStyle.Bold); crownLabelminåºå宽度1.ForeColor = System.Drawing.Color.Black; crownLabelminåºå宽度1.Location = new System.Drawing.Point(13, 98); crownLabelminåºå宽度1.Name = "crownLabelminåºå宽度1"; crownLabelminåºå宽度1.Size = new System.Drawing.Size(38, 16); crownLabelminåºå宽度1.TabIndex = 21; crownLabelminåºå宽度1.Text = "15.40"; // // crownLabel2 // @@ -271,9 +277,9 @@ crownLabel2.ForeColor = System.Drawing.Color.Black; crownLabel2.Location = new System.Drawing.Point(14, 117); crownLabel2.Name = "crownLabel2"; crownLabel2.Size = new System.Drawing.Size(141, 16); crownLabel2.Size = new System.Drawing.Size(124, 16); crownLabel2.TabIndex = 19; crownLabel2.Text = " b3åèèå´15.40å°49.00"; crownLabel2.Text = " b3åèèå´ å°"; // // metroTrackBaråºå宽度 // @@ -337,29 +343,29 @@ mTextBoxEditåºå宽度.Leave += mTextBoxEditåºå宽度_Leave; mTextBoxEditåºå宽度.TextChanged += mTextBoxEditåºå宽度_TextChanged; // // crownLabel8 // crownLabelmaxéè宿¾è§1 // crownLabel8.AutoSize = true; crownLabel8.BackColor = System.Drawing.SystemColors.Control; crownLabel8.Font = new System.Drawing.Font("Microsoft YaHei UI", 8F, System.Drawing.FontStyle.Bold); crownLabel8.ForeColor = System.Drawing.Color.Black; crownLabel8.Location = new System.Drawing.Point(202, 98); crownLabel8.Name = "crownLabel8"; crownLabel8.Size = new System.Drawing.Size(38, 16); crownLabel8.TabIndex = 24; crownLabel8.Text = "30.00"; crownLabelmaxéè宿¾è§1.AutoSize = true; 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.Name = "crownLabelmaxéè宿¾è§1"; crownLabelmaxéè宿¾è§1.Size = new System.Drawing.Size(38, 16); crownLabelmaxéè宿¾è§1.TabIndex = 24; crownLabelmaxéè宿¾è§1.Text = "30.00"; // // crownLabel7 // crownLabelminéè宿¾è§1 // crownLabel7.AutoSize = true; crownLabel7.BackColor = System.Drawing.SystemColors.Control; crownLabel7.Font = new System.Drawing.Font("Microsoft YaHei UI", 8F, System.Drawing.FontStyle.Bold); crownLabel7.ForeColor = System.Drawing.Color.Black; crownLabel7.Location = new System.Drawing.Point(13, 98); crownLabel7.Name = "crownLabel7"; crownLabel7.Size = new System.Drawing.Size(38, 16); crownLabel7.TabIndex = 23; crownLabel7.Text = "25.00"; crownLabelminéè宿¾è§1.AutoSize = true; crownLabelminéè宿¾è§1.BackColor = System.Drawing.SystemColors.Control; crownLabelminéè宿¾è§1.Font = new System.Drawing.Font("Microsoft YaHei UI", 8F, System.Drawing.FontStyle.Bold); crownLabelminéè宿¾è§1.ForeColor = System.Drawing.Color.Black; crownLabelminéè宿¾è§1.Location = new System.Drawing.Point(13, 98); crownLabelminéè宿¾è§1.Name = "crownLabelminéè宿¾è§1"; crownLabelminéè宿¾è§1.Size = new System.Drawing.Size(38, 16); crownLabelminéè宿¾è§1.TabIndex = 23; crownLabelminéè宿¾è§1.Text = "25.00"; // // crownLabel3 // @@ -369,9 +375,9 @@ crownLabel3.ForeColor = System.Drawing.Color.Black; crownLabel3.Location = new System.Drawing.Point(13, 117); crownLabel3.Name = "crownLabel3"; crownLabel3.Size = new System.Drawing.Size(140, 16); crownLabel3.Size = new System.Drawing.Size(123, 16); crownLabel3.TabIndex = 20; crownLabel3.Text = "Ï0åèèå´25.00å°30.00"; crownLabel3.Text = "Ï0åèèå´ å°"; // // metroTrackBaréè宿¾è§ // @@ -442,10 +448,12 @@ thunderGroupBox3.BodyColorB = System.Drawing.Color.DarkGray; thunderGroupBox3.BodyColorC = System.Drawing.SystemColors.ButtonFace; thunderGroupBox3.BodyColorD = System.Drawing.SystemColors.ButtonFace; thunderGroupBox3.Controls.Add(crownLabelmaxéè宿¾è§2); thunderGroupBox3.Controls.Add(crownLabelminéè宿¾è§2); thunderGroupBox3.Controls.Add(skyLabeléè宿¾è§); thunderGroupBox3.Controls.Add(crownLabel8); thunderGroupBox3.Controls.Add(crownLabelmaxéè宿¾è§1); thunderGroupBox3.Controls.Add(mTextBoxEditéè宿¾è§); thunderGroupBox3.Controls.Add(crownLabel7); thunderGroupBox3.Controls.Add(crownLabelminéè宿¾è§1); thunderGroupBox3.Controls.Add(metroTrackBaréè宿¾è§); thunderGroupBox3.Controls.Add(crownLabel3); thunderGroupBox3.Font = new System.Drawing.Font("Tw Cen MT Condensed Extra Bold", 12F, System.Drawing.FontStyle.Bold); @@ -479,6 +487,54 @@ metroToolTipç¬¬äºæ¥æç¤º.StyleManager = null; metroToolTipç¬¬äºæ¥æç¤º.ThemeAuthor = "Taiizor"; metroToolTipç¬¬äºæ¥æç¤º.ThemeName = "MetroLight"; // // crownLabelminåºå宽度2 // crownLabelminåºå宽度2.AutoSize = true; crownLabelminåºå宽度2.BackColor = System.Drawing.SystemColors.Control; crownLabelminåºå宽度2.Font = new System.Drawing.Font("Microsoft YaHei UI", 8F, System.Drawing.FontStyle.Bold); crownLabelminåºå宽度2.ForeColor = System.Drawing.Color.Black; crownLabelminåºå宽度2.Location = new System.Drawing.Point(82, 117); crownLabelminåºå宽度2.Name = "crownLabelminåºå宽度2"; crownLabelminåºå宽度2.Size = new System.Drawing.Size(38, 16); crownLabelminåºå宽度2.TabIndex = 27; crownLabelminåºå宽度2.Text = "15.40"; // // crownLabelmaxåºå宽度2 // crownLabelmaxåºå宽度2.AutoSize = true; crownLabelmaxåºå宽度2.BackColor = System.Drawing.SystemColors.Control; crownLabelmaxåºå宽度2.Font = new System.Drawing.Font("Microsoft YaHei UI", 8F, System.Drawing.FontStyle.Bold); crownLabelmaxåºå宽度2.ForeColor = System.Drawing.Color.Black; crownLabelmaxåºå宽度2.Location = new System.Drawing.Point(144, 117); crownLabelmaxåºå宽度2.Name = "crownLabelmaxåºå宽度2"; crownLabelmaxåºå宽度2.Size = new System.Drawing.Size(38, 16); crownLabelmaxåºå宽度2.TabIndex = 28; crownLabelmaxåºå宽度2.Text = "49.00"; // // crownLabelminéè宿¾è§2 // crownLabelminéè宿¾è§2.AutoSize = true; crownLabelminéè宿¾è§2.BackColor = System.Drawing.SystemColors.Control; crownLabelminéè宿¾è§2.Font = new System.Drawing.Font("Microsoft YaHei UI", 8F, System.Drawing.FontStyle.Bold); crownLabelminéè宿¾è§2.ForeColor = System.Drawing.Color.Black; crownLabelminéè宿¾è§2.Location = new System.Drawing.Point(81, 117); crownLabelminéè宿¾è§2.Name = "crownLabelminéè宿¾è§2"; crownLabelminéè宿¾è§2.Size = new System.Drawing.Size(38, 16); crownLabelminéè宿¾è§2.TabIndex = 26; crownLabelminéè宿¾è§2.Text = "25.00"; // // crownLabelmaxéè宿¾è§2 // crownLabelmaxéè宿¾è§2.AutoSize = true; crownLabelmaxéè宿¾è§2.BackColor = System.Drawing.SystemColors.Control; crownLabelmaxéè宿¾è§2.Font = new System.Drawing.Font("Microsoft YaHei UI", 8F, System.Drawing.FontStyle.Bold); crownLabelmaxéè宿¾è§2.ForeColor = System.Drawing.Color.Black; crownLabelmaxéè宿¾è§2.Location = new System.Drawing.Point(144, 117); crownLabelmaxéè宿¾è§2.Name = "crownLabelmaxéè宿¾è§2"; crownLabelmaxéè宿¾è§2.Size = new System.Drawing.Size(38, 16); crownLabelmaxéè宿¾è§2.TabIndex = 27; crownLabelmaxéè宿¾è§2.Text = "30.00"; // // ctrlGeomBaseInfo // @@ -519,15 +575,19 @@ private RLT.Controls.CrownLabel crownLabel2; private RLT.Controls.MetroTrackBar metroTrackBaråºå宽度; private RLT.Controls.MetroTrackBar metroTrackBaréè宿¾è§; private RLT.Controls.CrownLabel crownLabel8; private RLT.Controls.CrownLabel crownLabel7; private RLT.Controls.CrownLabel crownLabel6; private RLT.Controls.CrownLabel crownLabel5; private RLT.Controls.CrownLabel crownLabelmaxéè宿¾è§1; private RLT.Controls.CrownLabel crownLabelminéè宿¾è§1; private RLT.Controls.CrownLabel crownLabelmaxåºå宽度1; private RLT.Controls.CrownLabel crownLabelminåºå宽度1; private RLT.Controls.ThunderGroupBox thunderGroupBox3; private RLT.Controls.MetroToolTip metroToolTipç¬¬äºæ¥æç¤º; private RLT.Controls.SkyLabel skyLabelé度系æ°; private RLT.Controls.SkyLabel skyLabelåºåç´å¾; private RLT.Controls.SkyLabel skyLabelåºå宽度; private RLT.Controls.SkyLabel skyLabeléè宿¾è§; private RLT.Controls.CrownLabel crownLabelmaxåºå宽度2; private RLT.Controls.CrownLabel crownLabelminåºå宽度2; private RLT.Controls.CrownLabel crownLabelmaxéè宿¾è§2; private RLT.Controls.CrownLabel crownLabelminéè宿¾è§2; } } WinFrmUI/DPumpHydr.WinFrmUI.Volute/»ù±¾²ÎÊý/ctrlGeomBaseInfo.cs
@@ -20,33 +20,82 @@ BuildAllTips(); BuildIcon(); } ViewModel.GeomBaseInfo _paras = null; public void SetBindingData(ViewModel.GeomBaseInfo vm) { this._paras = vm; if (vm == null) { return; } this.crownLabelæ¯è½¬é.Text = vm.ns.ToString(); this.mTextBoxEdité度系æ°.Text = vm.K3.ToString(); this.mTextBoxEditåºåç´å¾.Text = vm.D3.ToString(); this.mTextBoxEditåºå宽度.Text = vm.B3.ToString(); this.crownLabelminåºå宽度1.Text = vm.B3_Min.ToString(); this.crownLabelminåºå宽度2.Text = vm.B3_Min.ToString(); this.crownLabelmaxåºå宽度1.Text = vm.B3_Max.ToString(); this.crownLabelmaxåºå宽度2.Text = vm.B3_Max.ToString(); this.metroTrackBaråºå宽度.Minimum = (int)(vm.B3_Min * 100); this.metroTrackBaråºå宽度.Maximum = (int)(vm.B3_Max * 100); this.metroTrackBaråºå宽度.Value = this.metroTrackBaråºå宽度.Minimum; this.mTextBoxEditéè宿¾è§.Text = vm.FAI0.ToString(); this.crownLabelminéè宿¾è§1.Text = vm.FAI0_Min.ToString(); this.crownLabelminéè宿¾è§2.Text = vm.FAI0_Min.ToString(); this.crownLabelmaxéè宿¾è§1.Text = vm.FAI0_Max.ToString(); this.crownLabelmaxéè宿¾è§2.Text = vm.FAI0_Max.ToString(); //var a = vm.FAI0_Min * 100; //this.metroTrackBaréè宿¾è§.Minimum = Convert.ToInt32(a); //this.metroTrackBaréè宿¾è§.Maximum = Convert.ToInt32(vm.FAI0_Max * 100); //this.metroTrackBaréè宿¾è§.Value = this.metroTrackBaréè宿¾è§.Minimum; } public ViewModel.GeomBaseInfo GetBindingData(out string error) { if (!Verify(out error)) { return null; } error = null; if (_paras == null) { _paras = new ViewModel.GeomBaseInfo(); } _paras.K3 = Convert.ToDouble(this.mTextBoxEdité度系æ°.Text); _paras.D3 = Convert.ToDouble(this.mTextBoxEditåºåç´å¾.Text); _paras.B3 = Convert.ToDouble(this.mTextBoxEditåºå宽度.Text); _paras.FAI0 = Convert.ToDouble(this.mTextBoxEditéè宿¾è§.Text); return _paras; } public bool Verify(out string error) { error = ""; var image = "alert-square-rounded.png"; bool isOk = true; if (string.IsNullOrEmpty(mTextBoxEdité度系æ°.Text) || mTextBoxEdité度系æ°.Text == "请è¾å ¥é度系æ°") if (string.IsNullOrEmpty(mTextBoxEdité度系æ°.Text) || mTextBoxEdité度系æ°.Text == "请è¾å ¥é度系æ°" || double.Parse(mTextBoxEdité度系æ°.Text) == 0) { isOk = false; error = "请è¾å ¥å¿ 填项ï¼"; mTextBoxEdité度系æ°.TrailingIcon = GlobalResource.GetTipTrailingIcon(); skyLabelé度系æ°.Visible = true; } if (string.IsNullOrEmpty(mTextBoxEditåºåç´å¾.Text) || mTextBoxEditåºåç´å¾.Text == "请è¾å ¥åºåç´å¾") if (string.IsNullOrEmpty(mTextBoxEditåºåç´å¾.Text) || mTextBoxEditåºåç´å¾.Text == "请è¾å ¥åºåç´å¾" || double.Parse(mTextBoxEditåºåç´å¾.Text) == 0) { isOk = false; error = "请è¾å ¥å¿ 填项ï¼"; mTextBoxEditåºåç´å¾.TrailingIcon = GlobalResource.GetTipTrailingIcon(); skyLabelåºåç´å¾.Visible = true; } if (string.IsNullOrEmpty(mTextBoxEditåºå宽度.Text) || mTextBoxEditåºå宽度.Text == "请è¾å ¥åºå宽度") if (string.IsNullOrEmpty(mTextBoxEditåºå宽度.Text) || mTextBoxEditåºå宽度.Text == "请è¾å ¥åºå宽度" || double.Parse(mTextBoxEditåºå宽度.Text) == 0) { isOk = false; error = "请è¾å ¥å¿ 填项ï¼"; mTextBoxEditåºå宽度.TrailingIcon = GlobalResource.GetTipTrailingIcon(); skyLabelåºå宽度.Visible = true; } if (string.IsNullOrEmpty(mTextBoxEditéè宿¾è§.Text) || mTextBoxEditéè宿¾è§.Text == "请è¾å ¥éè宿¾è§") if (string.IsNullOrEmpty(mTextBoxEditéè宿¾è§.Text) || mTextBoxEditéè宿¾è§.Text == "请è¾å ¥éè宿¾è§" || double.Parse(mTextBoxEditéè宿¾è§.Text) == 0) { isOk = false; error = "请è¾å ¥å¿ 填项ï¼"; @@ -98,7 +147,7 @@ private void mTextBoxEdité度系æ°_Leave(object sender, EventArgs e) { if (string.IsNullOrEmpty(mTextBoxEdité度系æ°.Text)) if (string.IsNullOrEmpty(mTextBoxEdité度系æ°.Text) || double.Parse(mTextBoxEdité度系æ°.Text) == 0) { mTextBoxEdité度系æ°.Text = "请è¾å ¥é度系æ°"; } @@ -136,7 +185,7 @@ private void mTextBoxEditåºåç´å¾_Leave(object sender, EventArgs e) { if (string.IsNullOrEmpty(mTextBoxEditåºåç´å¾.Text)) if (string.IsNullOrEmpty(mTextBoxEditåºåç´å¾.Text) || double.Parse(mTextBoxEditåºåç´å¾.Text) == 0) { mTextBoxEditåºåç´å¾.Text = "请è¾å ¥åºåç´å¾"; } @@ -174,7 +223,7 @@ private void mTextBoxEditåºå宽度_Leave(object sender, EventArgs e) { if (string.IsNullOrEmpty(mTextBoxEditåºå宽度.Text)) if (string.IsNullOrEmpty(mTextBoxEditåºå宽度.Text) || double.Parse(mTextBoxEditåºå宽度.Text) == 0) { mTextBoxEditåºå宽度.Text = "请è¾å ¥åºå宽度"; } @@ -221,7 +270,7 @@ private void mTextBoxEditéè宿¾è§_Leave(object sender, EventArgs e) { if (string.IsNullOrEmpty(mTextBoxEditéè宿¾è§.Text)) if (string.IsNullOrEmpty(mTextBoxEditéè宿¾è§.Text) || double.Parse(mTextBoxEditéè宿¾è§.Text) == 0) { mTextBoxEditéè宿¾è§.Text = "请è¾å ¥éè宿¾è§"; } WinFrmUI/DPumpHydr.WinFrmUI.Volute/»ù±¾²ÎÊý/ctrlHdrBaseInfo.Designer.cs
@@ -38,7 +38,7 @@ skyLabel转é = new RLT.Controls.SkyLabel(); skyLabelæ»æµé = new RLT.Controls.SkyLabel(); mTextBoxEditæ¬ç¨ = new RLT.Controls.MaterialTextBoxEdit(); RBtnåè壳ååæ° = new RLT.Controls.RibbonRadioButton(); RBtnå叿³µ = new RLT.Controls.RibbonRadioButton(); mTextBoxEdit转é = new RLT.Controls.MaterialTextBoxEdit(); mTextBoxEditæ»æµé = new RLT.Controls.MaterialTextBoxEdit(); thunderGroupBox1 = new RLT.Controls.ThunderGroupBox(); @@ -182,7 +182,7 @@ thunderGroupBox2.Controls.Add(skyLabel转é); thunderGroupBox2.Controls.Add(skyLabelæ»æµé); thunderGroupBox2.Controls.Add(mTextBoxEditæ¬ç¨); thunderGroupBox2.Controls.Add(RBtnåè壳ååæ°); thunderGroupBox2.Controls.Add(RBtnå叿³µ); thunderGroupBox2.Controls.Add(mTextBoxEdit转é); thunderGroupBox2.Controls.Add(mTextBoxEditæ»æµé); thunderGroupBox2.Font = new System.Drawing.Font("Tw Cen MT Condensed Extra Bold", 12F, System.Drawing.FontStyle.Bold); @@ -266,25 +266,25 @@ mTextBoxEditæ¬ç¨.Leave += mTextBoxEditæ¬ç¨_Leave; mTextBoxEditæ¬ç¨.TextChanged += mTextBoxEditæ¬ç¨_TextChanged; // // RBtnåè壳ååæ° // RBtnå叿³µ // RBtnåè壳ååæ°.BackColor = System.Drawing.Color.Transparent; RBtnåè壳ååæ°.Checked = false; RBtnåè壳ååæ°.CheckedBorderColorA = System.Drawing.Color.FromArgb(203, 201, 205); RBtnåè壳ååæ°.CheckedBorderColorB = System.Drawing.Color.FromArgb(188, 186, 190); RBtnåè壳ååæ°.CheckedColor = System.Drawing.Color.FromArgb(40, 40, 40); RBtnåè壳ååæ°.CircleBorderColor = System.Drawing.Color.FromArgb(117, 120, 117); RBtnåè壳ååæ°.CircleEdgeColor = System.Drawing.Color.WhiteSmoke; RBtnåè壳ååæ°.CompositingQualityType = System.Drawing.Drawing2D.CompositingQuality.HighQuality; 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(14, 34); RBtnåè壳ååæ°.Name = "RBtnåè壳ååæ°"; RBtnåè壳ååæ°.Size = new System.Drawing.Size(227, 16); RBtnåè壳ååæ°.SmoothingType = System.Drawing.Drawing2D.SmoothingMode.HighQuality; RBtnåè壳ååæ°.TabIndex = 4; RBtnåè壳ååæ°.Text = "åè壳å"; RBtnåè壳ååæ°.TextRenderingType = System.Drawing.Text.TextRenderingHint.AntiAliasGridFit; RBtnå叿³µ.BackColor = System.Drawing.Color.Transparent; RBtnå叿³µ.Checked = false; RBtnå叿³µ.CheckedBorderColorA = System.Drawing.Color.FromArgb(203, 201, 205); RBtnå叿³µ.CheckedBorderColorB = System.Drawing.Color.FromArgb(188, 186, 190); RBtnå叿³µ.CheckedColor = System.Drawing.Color.FromArgb(40, 40, 40); RBtnå叿³µ.CircleBorderColor = System.Drawing.Color.FromArgb(117, 120, 117); RBtnå叿³µ.CircleEdgeColor = System.Drawing.Color.WhiteSmoke; RBtnå叿³µ.CompositingQualityType = System.Drawing.Drawing2D.CompositingQuality.HighQuality; 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(14, 34); RBtnå叿³µ.Name = "RBtnå叿³µ"; RBtnå叿³µ.Size = new System.Drawing.Size(227, 16); RBtnå叿³µ.SmoothingType = System.Drawing.Drawing2D.SmoothingMode.HighQuality; RBtnå叿³µ.TabIndex = 4; RBtnå叿³µ.Text = "å叿³µ"; RBtnå叿³µ.TextRenderingType = System.Drawing.Text.TextRenderingHint.AntiAliasGridFit; // // mTextBoxEdit转é // @@ -344,6 +344,7 @@ mTextBoxEditæ»æµé.PrefixSuffix = RLT.Controls.MaterialTextBoxEdit.PrefixSuffixTypes.Suffix; mTextBoxEditæ»æµé.PrefixSuffixText = "m³/h "; mTextBoxEditæ»æµé.ReadOnly = false; mTextBoxEditæ»æµé.RightToLeft = System.Windows.Forms.RightToLeft.Yes; mTextBoxEditæ»æµé.SelectedText = ""; mTextBoxEditæ»æµé.SelectionLength = 0; mTextBoxEditæ»æµé.SelectionStart = 0; @@ -352,7 +353,7 @@ mTextBoxEditæ»æµé.TabIndex = 3; mTextBoxEditæ»æµé.TabStop = false; mTextBoxEditæ»æµé.Text = "请è¾å ¥æ»æµé"; mTextBoxEditæ»æµé.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; mTextBoxEditæ»æµé.TextAlign = System.Windows.Forms.HorizontalAlignment.Left; mTextBoxEditæ»æµé.TrailingIcon = null; mTextBoxEditæ»æµé.UseAccent = false; mTextBoxEditæ»æµé.UseSystemPasswordChar = false; @@ -531,7 +532,7 @@ private RLT.Controls.MaterialTextBoxEdit mTextBoxEditåºå£å®½åº¦; private RLT.Controls.MaterialTextBoxEdit mTextBoxEditåºå£ç´å¾; private RLT.Controls.ThunderGroupBox thunderGroupBox2; private RLT.Controls.RibbonRadioButton RBtnåè壳ååæ°; private RLT.Controls.RibbonRadioButton RBtnå叿³µ; private RLT.Controls.MaterialTextBoxEdit mTextBoxEditæ»æµé; private RLT.Controls.MaterialTextBoxEdit mTextBoxEdit转é; private RLT.Controls.MaterialTextBoxEdit mTextBoxEditæ¬ç¨; WinFrmUI/DPumpHydr.WinFrmUI.Volute/»ù±¾²ÎÊý/ctrlHdrBaseInfo.cs
@@ -35,6 +35,7 @@ this.mTextBoxEdit转é.Text = vm.n.ToString(); this.mTextBoxEditåºå£ç´å¾.Text = vm.D2.ToString(); this.mTextBoxEditåºå£å®½åº¦.Text = vm.B2.ToString(); this.RBtnå叿³µ.Checked = vm.IsSXB; } public ViewModel.HdrBaseInfo GetBindingData(out string error) { @@ -52,6 +53,7 @@ _paras.n = Convert.ToDouble(this.mTextBoxEdit转é.Text); _paras.D2 = Convert.ToDouble(this.mTextBoxEditåºå£ç´å¾.Text); _paras.B2 = Convert.ToDouble(this.mTextBoxEditåºå£å®½åº¦.Text); _paras.IsSXB = this.RBtnå叿³µ.Checked; return _paras; } @@ -65,35 +67,35 @@ // bool isOk = true ; if (string.IsNullOrEmpty(mTextBoxEditæ»æµé.Text) || mTextBoxEditæ»æµé.Text == "请è¾å ¥æ»æµé") if (string.IsNullOrEmpty(mTextBoxEditæ»æµé.Text) || mTextBoxEditæ»æµé.Text == "请è¾å ¥æ»æµé" || double.Parse(mTextBoxEditæ»æµé.Text) == 0) { isOk = false; error = "请è¾å ¥å¿ 填项ï¼"; mTextBoxEditæ»æµé.TrailingIcon = GlobalResource.GetTipTrailingIcon(); skyLabelæ»æµé.Visible = true; } if (string.IsNullOrEmpty(mTextBoxEdit转é.Text) || mTextBoxEdit转é.Text == "请è¾å ¥è½¬é") if (string.IsNullOrEmpty(mTextBoxEdit转é.Text) || mTextBoxEdit转é.Text == "请è¾å ¥è½¬é" || double.Parse(mTextBoxEdit转é.Text) == 0) { isOk = false; error = "请è¾å ¥å¿ 填项ï¼"; mTextBoxEdit转é.TrailingIcon = GlobalResource.GetTipTrailingIcon(); skyLabel转é.Visible = true; } if (string.IsNullOrEmpty(mTextBoxEditæ¬ç¨.Text) || mTextBoxEditæ¬ç¨.Text == "请è¾å ¥æ¬ç¨") if (string.IsNullOrEmpty(mTextBoxEditæ¬ç¨.Text) || mTextBoxEditæ¬ç¨.Text == "请è¾å ¥æ¬ç¨" || double.Parse(mTextBoxEditæ¬ç¨.Text) == 0) { isOk = false; error = "请è¾å ¥å¿ 填项ï¼"; mTextBoxEditæ¬ç¨.TrailingIcon = GlobalResource.GetTipTrailingIcon(); skyLabelæ¬ç¨.Visible = true; } if (string.IsNullOrEmpty(mTextBoxEditåºå£ç´å¾.Text) || mTextBoxEditåºå£ç´å¾.Text == "请è¾å ¥åºå£ç´å¾") if (string.IsNullOrEmpty(mTextBoxEditåºå£ç´å¾.Text) || mTextBoxEditåºå£ç´å¾.Text == "请è¾å ¥åºå£ç´å¾" || double.Parse(mTextBoxEditåºå£ç´å¾.Text) == 0) { isOk = false; error = "请è¾å ¥å¿ 填项ï¼"; mTextBoxEditåºå£ç´å¾.TrailingIcon = GlobalResource.GetTipTrailingIcon(); skyLabelåºå£ç´å¾.Visible = true; } if (string.IsNullOrEmpty(mTextBoxEditåºå£å®½åº¦.Text) || mTextBoxEditåºå£å®½åº¦.Text == "请è¾å ¥åºå£å®½åº¦") if (string.IsNullOrEmpty(mTextBoxEditåºå£å®½åº¦.Text) || mTextBoxEditåºå£å®½åº¦.Text == "请è¾å ¥åºå£å®½åº¦" || double.Parse(mTextBoxEditåºå£å®½åº¦.Text) == 0) { isOk = false; error = "请è¾å ¥å¿ 填项ï¼"; @@ -232,7 +234,7 @@ private void mTextBoxEditæ»æµé_Leave(object sender, EventArgs e) { if (string.IsNullOrEmpty(mTextBoxEditæ»æµé.Text)) if (string.IsNullOrEmpty(mTextBoxEditæ»æµé.Text) || double.Parse(mTextBoxEditæ»æµé.Text) == 0) { mTextBoxEditæ»æµé.Text = "请è¾å ¥æ»æµé"; } @@ -250,7 +252,7 @@ private void mTextBoxEdit转é_Leave(object sender, EventArgs e) { if (string.IsNullOrEmpty(mTextBoxEdit转é.Text)) if (string.IsNullOrEmpty(mTextBoxEdit转é.Text) || double.Parse(mTextBoxEdit转é.Text) == 0) { mTextBoxEdit转é.Text = "请è¾å ¥è½¬é"; } @@ -269,7 +271,7 @@ private void mTextBoxEditæ¬ç¨_Leave(object sender, EventArgs e) { if (string.IsNullOrEmpty(mTextBoxEditæ¬ç¨.Text)) if (string.IsNullOrEmpty(mTextBoxEditæ¬ç¨.Text) || double.Parse(mTextBoxEditæ¬ç¨.Text) == 0) { mTextBoxEditæ¬ç¨.Text = "请è¾å ¥æ¬ç¨"; } @@ -288,7 +290,7 @@ private void mTextBoxEditåºå£ç´å¾D_Leave(object sender, EventArgs e) { if (string.IsNullOrEmpty(mTextBoxEditåºå£ç´å¾.Text)) if (string.IsNullOrEmpty(mTextBoxEditåºå£ç´å¾.Text) || double.Parse(mTextBoxEditåºå£ç´å¾.Text) == 0) { mTextBoxEditåºå£ç´å¾.Text = "请è¾å ¥åºå£ç´å¾"; } @@ -306,7 +308,7 @@ private void mTextBoxEditåºå£å®½åº¦_Leave(object sender, EventArgs e) { if (string.IsNullOrEmpty(mTextBoxEditåºå£å®½åº¦.Text)) if (string.IsNullOrEmpty(mTextBoxEditåºå£å®½åº¦.Text) || double.Parse(mTextBoxEditåºå£å®½åº¦.Text) == 0) { mTextBoxEditåºå£å®½åº¦.Text = "请è¾å ¥åºå£å®½åº¦"; } WinFrmUI/DPumpHydr.WinFrmUI.Volute/»ù±¾²ÎÊý/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 WinFrmUI/DPumpHydr.WinFrmUI.Volute/¶ÏÃæÉè¼Æ/ctrlSectionBaseInfo.Designer.cs
@@ -171,7 +171,6 @@ mTextBoxEditè室平åé度.MaxLength = 32767; mTextBoxEditè室平åé度.MouseState = RLT.Helper.MaterialDrawHelper.MaterialMouseState.OUT; mTextBoxEditè室平åé度.Name = "mTextBoxEditè室平åé度"; mTextBoxEditè室平åé度.NullValuePromptText = null; mTextBoxEditè室平åé度.PasswordChar = '\0'; mTextBoxEditè室平åé度.PrefixSuffix = RLT.Controls.MaterialTextBoxEdit.PrefixSuffixTypes.Suffix; mTextBoxEditè室平åé度.PrefixSuffixText = "m/s"; WinFrmUI/DPumpHydr.WinFrmUI.Volute/¶ÏÃæÉè¼Æ/ctrlSectionBaseInfo.cs
@@ -24,26 +24,84 @@ BuildAllTips(); BuildIcon(); } ViewModel.SectionBaseInfo _paras = null; public void SetBindingData(ViewModel.SectionBaseInfo vm) { this._paras = vm; if (vm == null) { return; } this.mTextBoxEditè室平åé度.Text = vm.V3.ToString(); //this.skyTextBoxæé¢VIIIy1.Text = vm.GaMa1.ToString(); //this.skyTextBoxæé¢VIIIy2.Text = vm.GaMa2.ToString(); if (_paras.ShapeType == 0) { RBtnæé¢å¯¹ç§°æ¢¯å½¢.Checked = true; RBtnä¸å¯¹ç§°æ¢¯å½¢.Checked = false; RBtnç©å½¢.Checked = false ; } if (_paras.ShapeType == 1) { RBtnæé¢å¯¹ç§°æ¢¯å½¢.Checked = false; RBtnä¸å¯¹ç§°æ¢¯å½¢.Checked = true; RBtnç©å½¢.Checked = false; } if (_paras.ShapeType == 2) { RBtnæé¢å¯¹ç§°æ¢¯å½¢.Checked = false; RBtnä¸å¯¹ç§°æ¢¯å½¢.Checked = false; RBtnç©å½¢.Checked = true; } } public ViewModel.SectionBaseInfo GetBindingData(out string error) { if (!Verify(out error)) { return null; } error = null; if (_paras == null) { _paras = new ViewModel.SectionBaseInfo(); } _paras.V3 = Convert.ToDouble(this.mTextBoxEditè室平åé度.Text); //_paras.GaMa1 = Convert.ToDouble(this.skyTextBoxæé¢VIIIy1.Text); //_paras.GaMa2 = Convert.ToDouble(this.skyTextBoxæé¢VIIIy2.Text); if (RBtnæé¢å¯¹ç§°æ¢¯å½¢.Checked) { _paras.ShapeType = 0; } if (RBtnä¸å¯¹ç§°æ¢¯å½¢.Checked) { _paras.ShapeType = 1; } if (RBtnç©å½¢.Checked) { _paras.ShapeType = 2; } return _paras; } public bool Verify(out string error) { error = ""; bool isOk = true; if (string.IsNullOrEmpty(mTextBoxEditè室平åé度.Text) || mTextBoxEditè室平åé度.Text == "请è¾å ¥") if (string.IsNullOrEmpty(mTextBoxEditè室平åé度.Text) || mTextBoxEditè室平åé度.Text == "请è¾å ¥" || double.Parse(mTextBoxEditè室平åé度.Text) == 0) { error = "请è¾å ¥å¿ 填项ï¼"; isOk = false; mTextBoxEditè室平åé度.TrailingIcon = GlobalResource.GetTipTrailingIcon(); skyLabelè室平åé度.Visible = true; } if (string.IsNullOrEmpty(skyTextBoxæé¢VIIIy1.Text)) if (string.IsNullOrEmpty(skyTextBoxæé¢VIIIy1.Text) || double.Parse(skyTextBoxæé¢VIIIy1.Text) == 0) { error = "请è¾å ¥å¿ 填项ï¼"; isOk = false; skyLabelæç¤ºy2.Visible = false; skyLabely2.Visible = true; } if (string.IsNullOrEmpty(skyTextBoxæé¢VIIIy2.Text)) if (string.IsNullOrEmpty(skyTextBoxæé¢VIIIy2.Text) || double.Parse(skyTextBoxæé¢VIIIy2.Text) == 0) { error = "请è¾å ¥å¿ 填项ï¼"; isOk = false; @@ -107,7 +165,7 @@ private void mTextBoxEditè室平åé度_Leave(object sender, EventArgs e) { if (string.IsNullOrEmpty(mTextBoxEditè室平åé度.Text)) if (string.IsNullOrEmpty(mTextBoxEditè室平åé度.Text) || double.Parse(mTextBoxEditè室平åé度.Text) == 0) { mTextBoxEditè室平åé度.Text = "请è¾å ¥"; } @@ -181,7 +239,7 @@ private void mlBtnæ´æ¹æé¢è§åº¦_Click(object sender, EventArgs e) { if (!RBtnæé¢å¯¹ç§°æ¢¯å½¢.Checked && !RBtnä¸å¯¹ç§°æ¢¯å½¢.Checked && !RBtnä¸å¯¹ç§°æ¢¯å½¢.Checked) if (!RBtnæé¢å¯¹ç§°æ¢¯å½¢.Checked && !RBtnä¸å¯¹ç§°æ¢¯å½¢.Checked && !RBtnç©å½¢.Checked) { MessageBox.Show("请å éæ©æé¢ç±»åï¼"); return; WinFrmUI/DPumpHydr.WinFrmUI.Volute/¶ÏÃæÉè¼Æ/ctrlSectionShapeInfo18.Designer.cs
@@ -146,7 +146,6 @@ mTextBoxEditW1.MaxLength = 32767; mTextBoxEditW1.MouseState = RLT.Helper.MaterialDrawHelper.MaterialMouseState.OUT; mTextBoxEditW1.Name = "mTextBoxEditW1"; mTextBoxEditW1.NullValuePromptText = null; mTextBoxEditW1.PasswordChar = '\0'; mTextBoxEditW1.PrefixSuffix = RLT.Controls.MaterialTextBoxEdit.PrefixSuffixTypes.Suffix; mTextBoxEditW1.PrefixSuffixText = "mm"; @@ -185,7 +184,6 @@ mTextBoxEditu.MaxLength = 32767; mTextBoxEditu.MouseState = RLT.Helper.MaterialDrawHelper.MaterialMouseState.OUT; mTextBoxEditu.Name = "mTextBoxEditu"; mTextBoxEditu.NullValuePromptText = null; mTextBoxEditu.PasswordChar = '\0'; mTextBoxEditu.PrefixSuffix = RLT.Controls.MaterialTextBoxEdit.PrefixSuffixTypes.Suffix; mTextBoxEditu.PrefixSuffixText = "mm"; @@ -267,7 +265,6 @@ mTextBoxEditv1.MaxLength = 32767; mTextBoxEditv1.MouseState = RLT.Helper.MaterialDrawHelper.MaterialMouseState.OUT; mTextBoxEditv1.Name = "mTextBoxEditv1"; mTextBoxEditv1.NullValuePromptText = null; mTextBoxEditv1.PasswordChar = '\0'; mTextBoxEditv1.PrefixSuffix = RLT.Controls.MaterialTextBoxEdit.PrefixSuffixTypes.Suffix; mTextBoxEditv1.PrefixSuffixText = "°"; @@ -420,7 +417,6 @@ mTextBoxEditW4.MaxLength = 32767; mTextBoxEditW4.MouseState = RLT.Helper.MaterialDrawHelper.MaterialMouseState.OUT; mTextBoxEditW4.Name = "mTextBoxEditW4"; mTextBoxEditW4.NullValuePromptText = null; mTextBoxEditW4.PasswordChar = '\0'; mTextBoxEditW4.PrefixSuffix = RLT.Controls.MaterialTextBoxEdit.PrefixSuffixTypes.Suffix; mTextBoxEditW4.PrefixSuffixText = "m/s"; @@ -501,7 +497,6 @@ mTextBoxEditv2.MaxLength = 32767; mTextBoxEditv2.MouseState = RLT.Helper.MaterialDrawHelper.MaterialMouseState.OUT; mTextBoxEditv2.Name = "mTextBoxEditv2"; mTextBoxEditv2.NullValuePromptText = null; mTextBoxEditv2.PasswordChar = '\0'; mTextBoxEditv2.PrefixSuffix = RLT.Controls.MaterialTextBoxEdit.PrefixSuffixTypes.Suffix; mTextBoxEditv2.PrefixSuffixText = "°"; @@ -540,7 +535,6 @@ mTextBoxEditR1.MaxLength = 32767; mTextBoxEditR1.MouseState = RLT.Helper.MaterialDrawHelper.MaterialMouseState.OUT; mTextBoxEditR1.Name = "mTextBoxEditR1"; mTextBoxEditR1.NullValuePromptText = null; mTextBoxEditR1.PasswordChar = '\0'; mTextBoxEditR1.PrefixSuffix = RLT.Controls.MaterialTextBoxEdit.PrefixSuffixTypes.Suffix; mTextBoxEditR1.PrefixSuffixText = "mm"; @@ -580,7 +574,6 @@ mTextBoxEditH.MaxLength = 32767; mTextBoxEditH.MouseState = RLT.Helper.MaterialDrawHelper.MaterialMouseState.OUT; mTextBoxEditH.Name = "mTextBoxEditH"; mTextBoxEditH.NullValuePromptText = null; mTextBoxEditH.PasswordChar = '\0'; mTextBoxEditH.PrefixSuffix = RLT.Controls.MaterialTextBoxEdit.PrefixSuffixTypes.Suffix; mTextBoxEditH.PrefixSuffixText = "mm"; @@ -617,7 +610,6 @@ mTextBoxEditR2.MaxLength = 32767; mTextBoxEditR2.MouseState = RLT.Helper.MaterialDrawHelper.MaterialMouseState.OUT; mTextBoxEditR2.Name = "mTextBoxEditR2"; mTextBoxEditR2.NullValuePromptText = null; mTextBoxEditR2.PasswordChar = '\0'; mTextBoxEditR2.PrefixSuffix = RLT.Controls.MaterialTextBoxEdit.PrefixSuffixTypes.Suffix; mTextBoxEditR2.PrefixSuffixText = "mm"; @@ -654,7 +646,6 @@ mTextBoxEditR4.MaxLength = 32767; mTextBoxEditR4.MouseState = RLT.Helper.MaterialDrawHelper.MaterialMouseState.OUT; mTextBoxEditR4.Name = "mTextBoxEditR4"; mTextBoxEditR4.NullValuePromptText = null; mTextBoxEditR4.PasswordChar = '\0'; mTextBoxEditR4.PrefixSuffix = RLT.Controls.MaterialTextBoxEdit.PrefixSuffixTypes.Suffix; mTextBoxEditR4.PrefixSuffixText = "mm"; WinFrmUI/DPumpHydr.WinFrmUI.Volute/¶ÏÃæÉè¼Æ/ctrlSectionShapeInfo18.cs
@@ -27,7 +27,7 @@ { error = ""; bool isOk = true; if (string.IsNullOrEmpty(mTextBoxEditR1.Text) || mTextBoxEditR1.Text == "请è¾å ¥") if (string.IsNullOrEmpty(mTextBoxEditR1.Text) || mTextBoxEditR1.Text == "请è¾å ¥" || double.Parse(mTextBoxEditR1.Text) == 0) { isOk = false; error = "请è¾å ¥å¿ 填项ï¼"; @@ -36,14 +36,14 @@ } if (RBtnW1.Checked) { if (string.IsNullOrEmpty(mTextBoxEditW1.Text) || mTextBoxEditW1.Text == "请è¾å ¥") if (string.IsNullOrEmpty(mTextBoxEditW1.Text) || mTextBoxEditW1.Text == "请è¾å ¥" || double.Parse(mTextBoxEditW1.Text) == 0) { isOk = false; error = "请è¾å ¥W1ï¼"; mTextBoxEditW1.TrailingIcon = GlobalResource.GetTipTrailingIcon(); skyLabelW1.Visible = true; } if (string.IsNullOrEmpty(mTextBoxEditu.Text) || mTextBoxEditu.Text == "请è¾å ¥") if (string.IsNullOrEmpty(mTextBoxEditu.Text) || mTextBoxEditu.Text == "请è¾å ¥" || double.Parse(mTextBoxEditu.Text) == 0) { isOk = false; error = "请è¾å ¥Uï¼"; @@ -53,7 +53,7 @@ } if (RBtnv1.Checked) { if (string.IsNullOrEmpty(mTextBoxEditv1.Text) || mTextBoxEditv1.Text == "请è¾å ¥V1") if (string.IsNullOrEmpty(mTextBoxEditv1.Text) || mTextBoxEditv1.Text == "请è¾å ¥V1" || double.Parse(mTextBoxEditv1.Text) == 0) { isOk = false; error = "请è¾å ¥V1ï¼"; @@ -63,7 +63,7 @@ } if (RBtnv2.Checked) { if (string.IsNullOrEmpty(mTextBoxEditv2.Text) || mTextBoxEditv2.Text == "请è¾å ¥V2") if (string.IsNullOrEmpty(mTextBoxEditv2.Text) || mTextBoxEditv2.Text == "请è¾å ¥V2" || double.Parse(mTextBoxEditv2.Text) == 0) { isOk = false; error = "请è¾å ¥V2ï¼"; @@ -73,7 +73,7 @@ } if (RBtnW4.Checked) { if (string.IsNullOrEmpty(mTextBoxEditW4.Text) || mTextBoxEditW4.Text == "请è¾å ¥W4") if (string.IsNullOrEmpty(mTextBoxEditW4.Text) || mTextBoxEditW4.Text == "请è¾å ¥W4" || double.Parse(mTextBoxEditW4.Text) == 0) { isOk = false; error = "请è¾å ¥W4ï¼"; @@ -116,7 +116,7 @@ private void mTextBoxEditW1_Leave(object sender, EventArgs e) { if (string.IsNullOrEmpty(mTextBoxEditW1.Text) && mTextBoxEditW1.Enabled == true) if ((string.IsNullOrEmpty(mTextBoxEditW1.Text) || double.Parse(mTextBoxEditW1.Text) == 0) && mTextBoxEditW1.Enabled == true) { mTextBoxEditW1.Text = "请è¾å ¥"; } @@ -176,7 +176,7 @@ private void mTextBoxEditu_Leave(object sender, EventArgs e) { if (string.IsNullOrEmpty(mTextBoxEditu.Text) && mTextBoxEditu.Enabled == true) if ((string.IsNullOrEmpty(mTextBoxEditu.Text) || double.Parse(mTextBoxEditu.Text) == 0) && mTextBoxEditu.Enabled == true) { mTextBoxEditu.Text = "请è¾å ¥"; } @@ -193,7 +193,7 @@ private void mTextBoxEditv1_Leave(object sender, EventArgs e) { if (string.IsNullOrEmpty(mTextBoxEditv1.Text) && mTextBoxEditv1.Enabled == true) if ((string.IsNullOrEmpty(mTextBoxEditv1.Text) || double.Parse(mTextBoxEditv1.Text) == 0) && mTextBoxEditv1.Enabled == true) { mTextBoxEditv1.Text = "请è¾å ¥V1"; } @@ -231,7 +231,7 @@ private void mTextBoxEditv2_Leave(object sender, EventArgs e) { if (string.IsNullOrEmpty(mTextBoxEditv2.Text) && mTextBoxEditv2.Enabled == true) if ((string.IsNullOrEmpty(mTextBoxEditv2.Text) || double.Parse(mTextBoxEditv2.Text) == 0) && mTextBoxEditv2.Enabled == true) { mTextBoxEditv2.Text = "请è¾å ¥V2"; } @@ -269,7 +269,7 @@ private void mTextBoxEditW4_Leave(object sender, EventArgs e) { if (string.IsNullOrEmpty(mTextBoxEditW4.Text) && mTextBoxEditW4.Enabled == true) if ((string.IsNullOrEmpty(mTextBoxEditW4.Text) || double.Parse(mTextBoxEditW4.Text) == 0) && mTextBoxEditW4.Enabled == true) { mTextBoxEditW4.Text = "请è¾å ¥W4"; } @@ -308,7 +308,7 @@ private void mTextBoxEditR1_Leave(object sender, EventArgs e) { if (string.IsNullOrEmpty(mTextBoxEditR1.Text) && mTextBoxEditR1.Enabled == true) if ((string.IsNullOrEmpty(mTextBoxEditR1.Text) || double.Parse(mTextBoxEditR1.Text) == 0) && mTextBoxEditR1.Enabled == true) { mTextBoxEditR1.Text = "请è¾å ¥"; }