using HStation.Assets; namespace HStation.WinFrmUI { public partial class ViewAssetsElbowMainDlg : DevExpress.XtraEditors.XtraForm { public ViewAssetsElbowMainDlg() { InitializeComponent(); this.IconOptions.Icon = Yw.WinFrmUI.GlobalParas.AppIcon; this.layoutControl1.SetupLayoutControl(); } private HStation.Vmo.AssetsElbowMainVmo _vmo = null; /// /// 绑定数据 /// public void SetBindingData(HStation.Vmo.AssetsElbowMainVmo vmo) { if (vmo == null) { return; } _vmo = vmo; this.txtName.EditValue = vmo.Name; this.txtMaterial.EditValue = vmo.Material; this.txtCaliber.EditValue = vmo.Caliber; this.txtCoefficient.EditValue = vmo.MinorLoss; this.txtKeyWord.EditValue = HStation.Service.Assets.KeyWordHelper.ToString(vmo.KeyWords); this.txtFlags.EditValue = Yw.Untity.FlagsHelper.ToString(vmo.Flags); this.txtTagName.EditValue = vmo.TagName; this.txtDescription.EditValue = vmo.Description; this.imageComboBoxEditConnectlenght.Properties.AddEnum(typeof(eElbowType)); this.imageComboBoxEditConnectlenght.EditValue = vmo.ElbowType; this.txtAngle.EditValue = vmo.Angle; } } }