| | |
| | | using DevExpress.XtraEditors; |
| | | using HStation.Vmo; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.ComponentModel; |
| | | using System.Data; |
| | | using System.Drawing; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using System.Windows.Forms; |
| | | using HStation.Vmo; |
| | | using Yw; |
| | | |
| | | namespace HStation.WinFrmUI |
| | |
| | | this.TextEditMinorLoss.EditValue = _last.MinorLoss; |
| | | this.textEditStartDiameter.EditValue = _last.StartDiameter; |
| | | this.textEditEndDiameter.EditValue = _last.EndDiameter; |
| | | this.txtCaliber.EditValue = _last.Diameter; |
| | | this.textEditTranslationType.EditValue = _last.TranslationType; |
| | | this.txtMaterial.EditValue = _last.Material; |
| | | this.txtDescription.EditValue = _last.Description; |
| | |
| | | _vmo.Name = this.txtName.Text.Trim(); |
| | | _vmo.MinorLoss = double.Parse(this.TextEditMinorLoss.EditValue?.ToString()); |
| | | _vmo.Material = this.txtMaterial.Text.Trim(); |
| | | _vmo.Diameter = double.Parse(this.txtCaliber.EditValue?.ToString()); |
| | | _vmo.StartDiameter = double.Parse(this.textEditStartDiameter.EditValue?.ToString()); |
| | | _vmo.EndDiameter = double.Parse(this.textEditEndDiameter.EditValue?.ToString()); |
| | | _vmo.TranslationType = (HStation.Assets.eTranslationType)this.textEditTranslationType.EditValue; |