| | |
| | | |
| | | _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; |
| | |
| | | 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); |
| | |
| | | _occDesign3dCtrl.RefreshSingleSectShape18(para); |
| | | |
| | | _occDesign2dCtrl.RefreshSingleSectShape18(para); |
| | | this._sectAreaDockPanel.SetBindingData(para); |
| | | } |
| | | } |
| | | } |
| | |
| | | ViewModel.HdrBaseInfo _hdrBaseInfo = null; |
| | | ViewModel.GeomBaseInfo _geomBaseInfo = null; |
| | | ViewModel.SectionBundleInfo _sectionBundleInfo = null; |
| | | |
| | | ViewModel.eOutflowStyle _type ; |
| | | |
| | | |
| | | /// <summary> |
| | | /// ä¸ä¸æ¥ |
| | |
| | | |
| | | |
| | | _ctrlHdrBaseInfo.SetBindingData(_hdrBaseInfo); |
| | | AddStepParaCtrl(_ctrlHdrBaseInfo); |
| | | AddStepParaCtrl(_ctrlHdrBaseInfo); |
| | | this._sectAreaDockPanel.Visible = false; |
| | | } |
| | | |
| | | //ç¬¬äºæ¥ |
| | |
| | | } |
| | | _ctrlGeomBaseInfo.SetBindingData(_geomBaseInfo); |
| | | AddStepParaCtrl(_ctrlGeomBaseInfo); |
| | | this._sectAreaDockPanel.Visible = false; |
| | | } |
| | | |
| | | //ç¬¬ä¸æ¥ |
| | | //ç¬¬ä¸æ¥ æé¢æ»è§ |
| | | if (step_id == this._stepTreeDockPanel.Step_ID_Section18_Full) |
| | | { |
| | | if (_ctrlSectionBundleInfo == null) |
| | |
| | | _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) |
| | | { |
| | |
| | | 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) |
| | |
| | | _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(); |
| | |
| | | _occDesign3dCtrl.CreateOutflowBody(pt); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | _ctrlSetOutflowStyle.SetBindingData(_type); |
| | | this._sectAreaDockPanel.RefreshControl(); |
| | | this._sectAreaDockPanel.Visible = true; |
| | | AddStepParaCtrl(_ctrlSetOutflowStyle); |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | namespace 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 ç»ä»¶è®¾è®¡å¨çæç代ç |
| | | |
| | | /// <summary> |
| | | /// è®¾è®¡å¨æ¯ææéçæ¹æ³ - ä¸è¦ä¿®æ¹ |
| | | /// 使ç¨ä»£ç ç¼è¾å¨ä¿®æ¹æ¤æ¹æ³çå
容ã |
| | | /// </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æ©æ£ç®¡åºå£ç´å¾ = new RLT.Controls.SkyLabel(); |
| | | mlTextBoxEditæ©æ£ç®¡åºå£ç´å¾ = 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æ©æ£ç®¡åºå£ç´å¾); |
| | | thunderGroupBox2.Controls.Add(mlTextBoxEditæ©æ£ç®¡åºå£ç´å¾); |
| | | 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 = "请è¾å
¥r!"; |
| | | 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 = "请è¾å
¥L!"; |
| | | 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 = "请è¾å
¥h2!"; |
| | | 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 = "请è¾å
¥R2!"; |
| | | 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æ©æ£ç®¡åºå£ç´å¾ |
| | | // |
| | | 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(119, 12); |
| | | skyLabelæ©æ£ç®¡åºå£ç´å¾.TabIndex = 68; |
| | | 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 = "æ©æ£ç®¡åºå£ç´å¾D4"; |
| | | 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(296, 48); |
| | | mlTextBoxEditæ©æ£ç®¡åºå£ç´å¾.TabIndex = 67; |
| | | 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; |
| | | // |
| | | // 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 = "请è¾å
¥h1!"; |
| | | 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 = "请è¾å
¥R1!"; |
| | | 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æ©æ£ç®¡åºå£ç´å¾; |
| | | private RLT.Controls.MaterialTextBoxEdit mlTextBoxEditæ©æ£ç®¡åºå£ç´å¾; |
| | | 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ä¸å¿åºå£; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | using 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æ©æ£ç®¡åºå£ç´å¾.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 = "请è¾å
¥R1ï¼"; |
| | | isOk = false; |
| | | mlTextBoxEditR1.TrailingIcon = GlobalResource.GetTipTrailingIcon(); |
| | | skyLabelR1.Visible = true; |
| | | } |
| | | if (string.IsNullOrEmpty(mlTextBoxEditR2.Text) || mlTextBoxEditR2.Text == "请è¾å
¥" || double.Parse(mlTextBoxEditR2.Text) == 0) |
| | | { |
| | | error = "请è¾å
¥R2ï¼"; |
| | | isOk = false; |
| | | mlTextBoxEditR2.TrailingIcon = GlobalResource.GetTipTrailingIcon(); |
| | | skyLabelR2.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(mlTextBoxEdith1.Text) || mlTextBoxEdith1.Text == "请è¾å
¥" || double.Parse(mlTextBoxEdith1.Text) == 0) |
| | | { |
| | | error = "请è¾å
¥h1ï¼"; |
| | | isOk = false; |
| | | mlTextBoxEdith1.TrailingIcon = GlobalResource.GetTipTrailingIcon(); |
| | | skyLabelh1.Visible = true; |
| | | } |
| | | if (string.IsNullOrEmpty(mlTextBoxEdith2.Text) || mlTextBoxEdith2.Text == "请è¾å
¥" || double.Parse(mlTextBoxEdith2.Text) == 0) |
| | | { |
| | | error = "请è¾å
¥h2ï¼"; |
| | | isOk = false; |
| | | mlTextBoxEdith2.TrailingIcon = GlobalResource.GetTipTrailingIcon(); |
| | | skyLabelh2.Visible = true; |
| | | } |
| | | if (string.IsNullOrEmpty(mlTextBoxEditL.Text) || mlTextBoxEditL.Text == "请è¾å
¥" || double.Parse(mlTextBoxEditL.Text) == 0) |
| | | { |
| | | error = "请è¾å
¥Lï¼"; |
| | | isOk = false; |
| | | mlTextBoxEditL.TrailingIcon = GlobalResource.GetTipTrailingIcon(); |
| | | skyLabelL.Visible = true; |
| | | } |
| | | if (string.IsNullOrEmpty(mlTextBoxEditr.Text) || mlTextBoxEditr.Text == "请è¾å
¥" || double.Parse(mlTextBoxEditr.Text) == 0) |
| | | { |
| | | error = "请è¾å
¥rï¼"; |
| | | 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æ©æ£ç®¡åºå£ç´å¾, "æ©æ£ç®¡åºå£ç´å¾"); |
| | | } |
| | | 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æ©æ£ç®¡åºå£ç´å¾_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 mlTextBoxEdith2_Leave(object sender, EventArgs e) |
| | | { |
| | | if (string.IsNullOrEmpty(mlTextBoxEdith2.Text) || double.Parse(mlTextBoxEdith2.Text) == 0) |
| | | { |
| | | mlTextBoxEdith2.Text = "请è¾å
¥"; |
| | | } |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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> |
| | |
| | | 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æ©æ£ç®¡å½¢ç¶ |
| | |
| | | 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); |
| | |
| | | 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 = "请è¾å
¥æ©æ£ç®¡é¿åº¦!"; |
| | | skyLabelæ©æ£ç®¡é¿åº¦.Visible = false; |
| | | // |
| | | // mBtnæ´æ°æ¨¡å |
| | | // |
| | |
| | | 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 = "请è¾å
¥æ£ç¡®æ©æ£ç®¡é¿åº¦ï¼"; |
| | | mlTextBoxEditæ©æ£ç®¡é¿åº¦.HideSelection = true; |
| | | mlTextBoxEditæ©æ£ç®¡é¿åº¦.Hint = "æ©æ£ç®¡é¿åº¦L"; |
| | | 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 = "请è¾å
¥æ©æ£ç®¡é¿åº¦"; |
| | | 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第å
æ¥æç¤º |
| | | // |
| | |
| | | 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(); |
| | | } |
| | |
| | | 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; |
| | | } |
| | | } |
| | |
| | |  |
| | |  |
| | | |
| | | using DPumpHydr.WinFrmUI.Volute.ViewModel; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.ComponentModel; |
| | |
| | | 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 == "请è¾å
¥æ©æ£ç®¡é¿åº¦" || double.Parse(mlTextBoxEditæ©æ£ç®¡é¿åº¦.Text) == 0) |
| | | Control newControl = null; |
| | | switch (type) |
| | | { |
| | | error = "请è¾å
¥æ©æ£ç®¡é¿åº¦ï¼"; |
| | | 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æ£ç¨åº¦"); |
| | | metroToolTip第å
æ¥æç¤º.SetToolTip(this.mlTextBoxEditä¸å¿è·ç¦», "ä¸å¿è·ç¦» è§£é"); |
| | | metroToolTip第å
æ¥æç¤º.SetToolTip(this.crownLabelåºå£, "åºå£ è§£é"); |
| | | metroToolTip第å
æ¥æç¤º.SetToolTip(this.dungeonNumericåºå£, "åºå£ è§£é"); |
| | | metroToolTip第å
æ¥æç¤º.SetToolTip(this.metroTrackBaråºå£, "åºå£ è§£é"); |
| | | metroToolTip第å
æ¥æç¤º.SetToolTip(this.crownLabel第å
«ç«¯é¢, "第å
«æé¢ è§£é"); |
| | | metroToolTip第å
æ¥æç¤º.SetToolTip(this.dungeonNumeric第å
«ç«¯é¢, "第å
«ç«¯é¢ è§£é"); |
| | | metroToolTip第å
æ¥æç¤º.SetToolTip(this.metroTrackBar第å
«ç«¯é¢, "第å
«ç«¯é¢ è§£é"); |
| | | } |
| | | |
| | | 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 != "请è¾å
¥æ©æ£ç®¡é¿åº¦") |
| | | { |
| | | 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ä¸å¿è·ç¦»_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 == "请è¾å
¥æ©æ£ç®¡é¿åº¦" || string.IsNullOrEmpty(mlTextBoxEditæ©æ£ç®¡é¿åº¦.Text)) |
| | | { |
| | | skyLabelæ©æ£ç®¡é¿åº¦.Visible = true; |
| | | MessageBox.Show("请å
è¾å
¥æ©æ£ç®¡é¿åº¦ï¼"); |
| | | return; |
| | | } |
| | | if (mlTextBoxEditä¸å¿è·ç¦».Text == "请è¾å
¥ä¸å¿è·ç¦»" || string.IsNullOrEmpty(mlTextBoxEditä¸å¿è·ç¦».Text)) |
| | | { |
| | | skyLabelä¸å¿è·ç¦».Visible = true; |
| | | MessageBox.Show("请å
è¾å
¥ä¸å¿è·ç¦»ï¼"); |
| | | return; |
| | | } |
| | | |
| | | } |
| | | } |
| | | } |
| | |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <root> |
| | | <!-- |
| | | Microsoft ResX Schema |
| | | Microsoft ResX Schema |
| | | |
| | | Version 2.0 |
| | | |
| | |
| | | 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 |
| | |
| | | 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 = "éæ©åºå£ç±»å"; |
| | | // |
| | |
| | | RBtnä¾§é¢åºå£ç´çº¿.TabIndex = 8; |
| | | RBtnä¾§é¢åºå£ç´çº¿.Text = "ä¾§é¢åºå£ï¼ç´çº¿é¾æ¥ï¼"; |
| | | RBtnä¾§é¢åºå£ç´çº¿.TextRenderingType = System.Drawing.Text.TextRenderingHint.AntiAliasGridFit; |
| | | RBtnä¾§é¢åºå£ç´çº¿.CheckedChanged += RBtnä¾§é¢åºå£ç´çº¿_CheckedChanged; |
| | | // |
| | | // RBtnä¸å¿åºå£ |
| | | // |
| | |
| | | RBtnä¸å¿åºå£.TabIndex = 7; |
| | | RBtnä¸å¿åºå£.Text = "ä¸å¿åºå£ï¼åç´æ³å
°é¢æµåº"; |
| | | RBtnä¸å¿åºå£.TextRenderingType = System.Drawing.Text.TextRenderingHint.AntiAliasGridFit; |
| | | RBtnä¸å¿åºå£.CheckedChanged += RBtnä¸å¿åºå£_CheckedChanged; |
| | | // |
| | | // RBtnä¾§é¢åºå£æ²çº¿ |
| | | // |
| | |
| | | RBtnä¾§é¢åºå£æ²çº¿.TabIndex = 6; |
| | | RBtnä¾§é¢åºå£æ²çº¿.Text = "ä¾§é¢åºå£ï¼æ²çº¿é¾æ¥ï¼ï¼åç´æ³å
°é¢æµåº"; |
| | | RBtnä¾§é¢åºå£æ²çº¿.TextRenderingType = System.Drawing.Text.TextRenderingHint.AntiAliasGridFit; |
| | | RBtnä¾§é¢åºå£æ²çº¿.CheckedChanged += RBtnä¾§é¢åºå£æ²çº¿_CheckedChanged; |
| | | // |
| | | // designDraw11 |
| | | // |
| | |
| | | using System; |
| | | using DPumpHydr.WinFrmUI.Volute.ViewModel; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.ComponentModel; |
| | | using System.Data; |
| | |
| | | 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); |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <root> |
| | | <!-- |
| | | Microsoft ResX Schema |
| | | Microsoft ResX Schema |
| | | |
| | | Version 2.0 |
| | | |
| | |
| | | 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 |
¶Ô±ÈÐÂÎļþ |
| | |
| | | namespace 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 ç»ä»¶è®¾è®¡å¨çæç代ç |
| | | |
| | | /// <summary> |
| | | /// è®¾è®¡å¨æ¯ææéçæ¹æ³ - ä¸è¦ä¿®æ¹ |
| | | /// 使ç¨ä»£ç ç¼è¾å¨ä¿®æ¹æ¤æ¹æ³çå
容ã |
| | | /// </summary> |
| | | private void InitializeComponent() |
| | | { |
| | | thunderGroupBox2 = new RLT.Controls.ThunderGroupBox(); |
| | | skyLabeléèåè§åå¾ = new RLT.Controls.SkyLabel(); |
| | | mlTextBoxEditéèåè§åå¾ = new RLT.Controls.MaterialTextBoxEdit(); |
| | | skyLabelæ©æ£ç®¡åºå£ç´å¾ = new RLT.Controls.SkyLabel(); |
| | | mlTextBoxEditæ©æ£ç®¡åºå£ç´å¾ = 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æ©æ£ç®¡åºå£ç´å¾); |
| | | thunderGroupBox2.Controls.Add(mlTextBoxEditæ©æ£ç®¡åºå£ç´å¾); |
| | | 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æ©æ£ç®¡åºå£ç´å¾ |
| | | // |
| | | 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, 218); |
| | | skyLabelæ©æ£ç®¡åºå£ç´å¾.Name = "skyLabelæ©æ£ç®¡åºå£ç´å¾"; |
| | | skyLabelæ©æ£ç®¡åºå£ç´å¾.Size = new System.Drawing.Size(119, 12); |
| | | skyLabelæ©æ£ç®¡åºå£ç´å¾.TabIndex = 68; |
| | | 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 = "æ©æ£ç®¡åºå£ç´å¾D4"; |
| | | mlTextBoxEditæ©æ£ç®¡åºå£ç´å¾.LeadingIcon = null; |
| | | mlTextBoxEditæ©æ£ç®¡åºå£ç´å¾.Location = new System.Drawing.Point(13, 167); |
| | | 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 = 67; |
| | | 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ä¸å¿è·ç¦» |
| | | // |
| | | 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 = "请è¾å
¥æ©æ£ç®¡é¿åº¦!"; |
| | | 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 = "请è¾å
¥æ£ç¡®æ©æ£ç®¡é¿åº¦ï¼"; |
| | | mlTextBoxEditæ©æ£ç®¡é¿åº¦.HideSelection = true; |
| | | mlTextBoxEditæ©æ£ç®¡é¿åº¦.Hint = "æ©æ£ç®¡é¿åº¦L"; |
| | | 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 = "请è¾å
¥æ©æ£ç®¡é¿åº¦"; |
| | | 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æ©æ£ç®¡åºå£ç´å¾; |
| | | private RLT.Controls.MaterialTextBoxEdit mlTextBoxEditæ©æ£ç®¡åºå£ç´å¾; |
| | | private RLT.Controls.MetroToolTip metroToolTipä¾§é¢åºå£åç´; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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 sideCurveExitControl : UserControl |
| | | { |
| | | public sideCurveExitControl() |
| | | { |
| | | InitializeComponent(); |
| | | BuildAllTips(); |
| | | BuildIcon(); |
| | | } |
| | | private void BuildIcon() |
| | | { |
| | | //è¾å
¥æ¡åç¼å¾ç |
| | | mlTextBoxEditæ©æ£ç®¡é¿åº¦.LeadingIcon = GlobalResource.GetLeadingIcon(); |
| | | mlTextBoxEditä¸å¿è·ç¦».LeadingIcon = GlobalResource.GetLeadingIcon(); |
| | | mlTextBoxEditæ©æ£ç®¡åºå£ç´å¾.LeadingIcon = GlobalResource.GetLeadingIcon(); |
| | | mlTextBoxEditéèåè§åå¾.LeadingIcon = GlobalResource.GetLeadingIcon(); |
| | | } |
| | | public bool Verify(out string error) |
| | | { |
| | | error = ""; |
| | | bool isOk = 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ä¸å¿è·ç¦».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 == "请è¾å
¥æ©æ£ç®¡åºå£ç´å¾" || double.Parse(mlTextBoxEditæ©æ£ç®¡åºå£ç´å¾.Text) == 0) |
| | | { |
| | | error = "请è¾å
¥æ©æ£ç®¡åºå£ç´å¾ï¼"; |
| | | 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; |
| | | } |
| | | return isOk; |
| | | } |
| | | private void BuildAllTips() |
| | | { |
| | | metroToolTipä¾§é¢åºå£åç´.SetToolTip(this.mlTextBoxEditæ©æ£ç®¡é¿åº¦, "æ©æ£ç®¡é¿åº¦"); |
| | | metroToolTipä¾§é¢åºå£åç´.SetToolTip(this.mlTextBoxEditä¸å¿è·ç¦», "ä¸å¿è·ç¦»"); |
| | | metroToolTipä¾§é¢åºå£åç´.SetToolTip(this.mlTextBoxEditæ©æ£ç®¡åºå£ç´å¾, "æ©æ£ç®¡åºå£ç´å¾"); |
| | | metroToolTipä¾§é¢åºå£åç´.SetToolTip(this.mlTextBoxEditéèåè§åå¾, "éèåè§åå¾"); |
| | | } |
| | | 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ä¸å¿è·ç¦»_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æ©æ£ç®¡åºå£ç´å¾_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éèåè§åå¾_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; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | using 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æ©æ£ç®¡åºå£ç´å¾.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 = "请è¾å
¥R1ï¼"; |
| | | isOk = false; |
| | | mlTextBoxEditR1.TrailingIcon = GlobalResource.GetTipTrailingIcon(); |
| | | skyLabelR1.Visible = true; |
| | | } |
| | | if (string.IsNullOrEmpty(mlTextBoxEditR2.Text) || mlTextBoxEditR2.Text == "请è¾å
¥" || double.Parse(mlTextBoxEditR2.Text) == 0) |
| | | { |
| | | error = "请è¾å
¥R2ï¼"; |
| | | isOk = false; |
| | | mlTextBoxEditR2.TrailingIcon = GlobalResource.GetTipTrailingIcon(); |
| | | skyLabelR2.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(mlTextBoxEdith1.Text) || mlTextBoxEdith1.Text == "请è¾å
¥" || double.Parse(mlTextBoxEdith1.Text) == 0) |
| | | { |
| | | error = "请è¾å
¥h1ï¼"; |
| | | isOk = false; |
| | | mlTextBoxEdith1.TrailingIcon = GlobalResource.GetTipTrailingIcon(); |
| | | skyLabelh1.Visible = true; |
| | | } |
| | | if (string.IsNullOrEmpty(mlTextBoxEditA.Text) || mlTextBoxEditA.Text == "请è¾å
¥" || double.Parse(mlTextBoxEditA.Text) == 0) |
| | | { |
| | | error = "请è¾å
¥h2ï¼"; |
| | | isOk = false; |
| | | mlTextBoxEditA.TrailingIcon = GlobalResource.GetTipTrailingIcon(); |
| | | skyLabelA.Visible = true; |
| | | } |
| | | if (string.IsNullOrEmpty(mlTextBoxEditL.Text) || mlTextBoxEditL.Text == "请è¾å
¥" || double.Parse(mlTextBoxEditL.Text) == 0) |
| | | { |
| | | error = "请è¾å
¥Lï¼"; |
| | | isOk = false; |
| | | mlTextBoxEditL.TrailingIcon = GlobalResource.GetTipTrailingIcon(); |
| | | skyLabelL.Visible = true; |
| | | } |
| | | if (string.IsNullOrEmpty(mlTextBoxEditr.Text) || mlTextBoxEditr.Text == "请è¾å
¥" || double.Parse(mlTextBoxEditr.Text) == 0) |
| | | { |
| | | error = "请è¾å
¥rï¼"; |
| | | 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æ©æ£ç®¡åºå£ç´å¾, "æ©æ£ç®¡åºå£ç´å¾"); |
| | | } |
| | | 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æ©æ£ç®¡åºå£ç´å¾_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; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | namespace 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 ç»ä»¶è®¾è®¡å¨çæç代ç |
| | | |
| | | /// <summary> |
| | | /// è®¾è®¡å¨æ¯ææéçæ¹æ³ - ä¸è¦ä¿®æ¹ |
| | | /// 使ç¨ä»£ç ç¼è¾å¨ä¿®æ¹æ¤æ¹æ³çå
容ã |
| | | /// </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æ©æ£ç®¡åºå£ç´å¾ = new RLT.Controls.SkyLabel(); |
| | | mlTextBoxEditæ©æ£ç®¡åºå£ç´å¾ = 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æ©æ£ç®¡åºå£ç´å¾); |
| | | thunderGroupBox2.Controls.Add(mlTextBoxEditæ©æ£ç®¡åºå£ç´å¾); |
| | | 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 = "请è¾å
¥r!"; |
| | | 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 = "请è¾å
¥L!"; |
| | | 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 = "请è¾å
¥A!"; |
| | | 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 = "请è¾å
¥R2!"; |
| | | 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æ©æ£ç®¡åºå£ç´å¾ |
| | | // |
| | | 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(119, 12); |
| | | skyLabelæ©æ£ç®¡åºå£ç´å¾.TabIndex = 68; |
| | | 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 = "æ©æ£ç®¡åºå£ç´å¾D4"; |
| | | 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(296, 48); |
| | | mlTextBoxEditæ©æ£ç®¡åºå£ç´å¾.TabIndex = 67; |
| | | 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; |
| | | // |
| | | // 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 = "请è¾å
¥h1!"; |
| | | 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 = "请è¾å
¥R1!"; |
| | | 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æ©æ£ç®¡åºå£ç´å¾; |
| | | private RLT.Controls.MaterialTextBoxEdit mlTextBoxEditæ©æ£ç®¡åºå£ç´å¾; |
| | | 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ä¾§é¢åºå£ç´çº¿; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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> |
| | |
| | | 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 = "åæ°"; |
| | | // |
| | |
| | | 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 = "请è¾å
¥é度系æ°"; |
| | |
| | | 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 = "请è¾å
¥åºåç´å¾"; |
| | |
| | | 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 = "åºå宽度"; |
| | | // |
| | |
| | | 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; |
| | |
| | | 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; |
| | |
| | | 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 = "请è¾å
¥åºå宽度"; |
| | |
| | | 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; |
| | |
| | | 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; |
| | |
| | | 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 = "请è¾å
¥éè宿¾è§"; |
| | |
| | | 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 = "éè宿¾è§"; |
| | | // |
| | |
| | | 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); |
| | |
| | | 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 = "å¶è½®å ä½åæ°"; |
| | | // |
| | |
| | | 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 = "请è¾å
¥åºå£å®½åº¦"; |
| | |
| | | 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 = "请è¾å
¥åºå£ç´å¾"; |
| | |
| | | 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 = "è®¾è®¡åæ°"; |
| | | // |
| | |
| | | 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 = "请è¾å
¥æ¬ç¨"; |
| | |
| | | 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 = "请è¾å
¥è½¬é"; |
| | |
| | | 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 = "请è¾å
¥æ»æµé"; |
| | |
| | | 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 = "ç±»å"; |
| | | // |
| | |
| | | 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; |
| | |
| | | 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; |
| | |
| | | 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); |
| | |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <root> |
| | | <!-- |
| | | Microsoft ResX Schema |
| | | Microsoft ResX Schema |
| | | |
| | | Version 2.0 |
| | | |
| | |
| | | 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 |
| | |
| | | using System; |
| | | using Microsoft.VisualBasic; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.ComponentModel; |
| | | using System.Data; |
| | |
| | | { |
| | | 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; } |
| | |
| | | } |
| | | 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> |
| | | /// |
| | |
| | | { |
| | | 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) |
| | |
| | | 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; |
| | |
| | | |
| | | |
| | | Graphics g = e.Graphics; |
| | | |
| | | if (_allSection.Any(sect => sect.Area == 0)) |
| | | { |
| | | return; |
| | | } |
| | | DrawAxisX(g); |
| | | DrawAxisY(g); |
| | | DrawDiagram(g); |
| | |
| | | |
| | | 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; |
| | |
| | | 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); |
| | |
| | | |
| | | //åºçº¿ |
| | | 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; |
| | | } |
| | | } |
| | | } |
| | |
| | | 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; |
| | |
| | | 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); |
| | |
| | | using 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 |
| | | { |
| | |
| | | |
| | | 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; |
| | | } |
| | | //æ ¹æ®æé®å¢å æåå°Yå¼ |
| | | 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; |
| | | } |
| | | |
| | | |
| | | } |
| | | } |
| | |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <root> |
| | | <!-- |
| | | Microsoft ResX Schema |
| | | Microsoft ResX Schema |
| | | |
| | | Version 2.0 |
| | | |
| | |
| | | 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 |
| | |
| | | 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; |
| | | } |
| | |
| | | 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); |
| | |
| | | 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; |
| | |
| | | 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); |
| | |
| | | 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; |
| | |
| | | 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); |
| | |
| | | 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; |
| | |
| | | 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ãv2çç¡®å®"; |
| | | // |
| | |
| | | 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"; |
| | |
| | | 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"; |
| | |
| | | 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"; |
| | |
| | | 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"; |
| | |
| | | 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"; |
| | |
| | | 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"; |
| | |
| | | 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"; |
| | |
| | | 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"; |
| | |
| | | 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"; |
| | |
| | | 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"; |
| | |
| | | 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"; |
| | |
| | | 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"; |
| | |
| | | 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"; |
| | |
| | | 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"; |
| | |
| | | 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"; |
| | |
| | | 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"; |
| | |
| | | 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"; |
| | |
| | | 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; |
| | |
| | | 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; |
| | |
| | | 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"; |
| | |
| | | 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"; |
| | |
| | | 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"; |
| | |
| | | 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"; |
| | |
| | | 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"; |
| | |
| | | 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"; |
| | |
| | | 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"; |
| | |
| | | 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; |
| | |
| | | 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++) |
| | |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <root> |
| | | <!-- |
| | | Microsoft ResX Schema |
| | | Microsoft ResX Schema |
| | | |
| | | Version 2.0 |
| | | |
| | |
| | | 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 |
| | |
| | | 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"; |
| | | // |
| | |
| | | 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"; |
| | |
| | | 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 = "请è¾å
¥y1"; |
| | |
| | | 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"; |
| | |
| | | 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 = " "; |
| | |
| | | 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"; |
| | |
| | | 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 = "请è¾å
¥y2"; |
| | |
| | | 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; |
| | |
| | | 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"; |
| | |
| | | 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 = "请è¾å
¥"; |
| | |
| | | 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"; |
| | |
| | | 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 = "请è¾å
¥"; |
| | |
| | | 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); |
| | |
| | | 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; |
| | |
| | | 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 = "请è¾å
¥W4"; |
| | |
| | | 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"; |
| | |
| | | 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 = "请è¾å
¥"; |
| | |
| | | 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"; |
| | |
| | | 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 = " "; |
| | |
| | | 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"; |
| | |
| | | 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 = " "; |
| | |
| | | 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; |
| | |
| | | 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; |
| | |
| | | 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); |
| | |
| | | |
| | | InitialModule(); |
| | | } |
| | | public void RefreshSectPara(ViewModel.SectionShapePara paras) |
| | | { |
| | | SetBindingData(paras); |
| | | // paras.ii |
| | | } |
| | | public ViewModel.SectionShapePara GetBindingData(out string error) |
| | | { |
| | | if (!Verify(out error)) |
| | |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <root> |
| | | <!-- |
| | | Microsoft ResX Schema |
| | | Microsoft ResX Schema |
| | | |
| | | Version 2.0 |
| | | |
| | |
| | | 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 |