| | |
| | | using DevExpress.Utils; |
| | | using DevExpress.XtraEditors.Controls; |
| | | using HStation.Assets; |
| | | |
| | | namespace HStation.WinFrmUI.Assets |
| | | { |
| | |
| | | { |
| | | TextEditMaterial.EditValue = _ElbowVmo.MaterialName.ToString(); |
| | | } |
| | | this.imageComboBoxEditConnectlenght.Properties.AddEnum(typeof(eLengthType)); |
| | | this.imageComboBoxEditConnectlenght.EditValue = _ElbowVmo.ConnectionLength; |
| | | this.textEditAngle.Text = _ElbowVmo.Angle.ToString(); |
| | | this.TextEditName.Text = _ElbowVmo.Name; |
| | | this.TextEditCoefficient.Text = _ElbowVmo.Coefficient.ToString(); |
| | | this.DescriptionTextEdit.Text = _ElbowVmo.Description; |
| | |
| | | { |
| | | _ElbowVmo.Coefficient = Coefficient; |
| | | } |
| | | if (int.TryParse(textEditAngle.Text, out int angle)) |
| | | { |
| | | _ElbowVmo.Angle = angle; |
| | | } |
| | | _ElbowVmo.ConnectionLength = (eLengthType)this.imageComboBoxEditConnectlenght.EditValue; |
| | | if (await this.ReloadDataEvent.Invoke(_ElbowVmo)) |
| | | { |
| | | TipFormHelper.ShowSucceed("修改成功!"); |