lixiaojun
2024-10-18 1fe41eb1c9f2b2914b4a66a145f1ad0a75b9c915
WinFrmUI/HStation.WinFrmUI.Assets.Core/05-elbow/02-main/EditElbowMainDlg.cs
@@ -1,5 +1,6 @@
using DevExpress.Utils;
using DevExpress.XtraEditors.Controls;
using HStation.Assets;
namespace HStation.WinFrmUI.Assets
{
@@ -50,6 +51,9 @@
            {
                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;
@@ -87,6 +91,11 @@
            {
                _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("修改成功!");