| | |
| | | using DevExpress.XtraEditors.Controls; |
| | | using HStation.Assets; |
| | | |
| | | namespace HStation.WinFrmUI.Assets |
| | | { |
| | |
| | | TextEditMaterial.Properties.Items.Add(imageItem); |
| | | } |
| | | } |
| | | imageComboBoxEditConnectlenght.Properties.AddEnum(typeof(eLengthType)); |
| | | TextEditCaliber.SelectedIndex = 0; |
| | | TextEditMaterial.SelectedIndex = 0; |
| | | } |
| | |
| | | { |
| | | _ElbowVmo.Caliber = caliber; |
| | | } |
| | | if (double.TryParse(TextEditCoefficient.Text, out double Coefficient)) |
| | | if (double.TryParse(TextEditCoefficient.Text, out double coefficient)) |
| | | { |
| | | _ElbowVmo.Coefficient = Coefficient; |
| | | _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("添加成功!"); |