using DevExpress.XtraEditors; 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 Yw; using Yw.DAL.Basic; namespace HStation.WinFrmUI { public partial class ViewAssetsCompressorFactorDlg : DevExpress.XtraEditors.XtraForm { public ViewAssetsCompressorFactorDlg() { InitializeComponent(); this.IconOptions.Icon = Yw.WinFrmUI.GlobalParas.AppIcon; this.layoutControl1.SetupLayoutControl(); } private HStation.Vmo.AssetsCompressorFactorVmo _vmo = null; /// /// 绑定数据 /// public void SetBindingData(HStation.Vmo.AssetsCompressorFactorVmo vmo) { if (vmo == null) { return; } _vmo = vmo; this.txtName.EditValue = vmo.Name; this.txtMaterial.EditValue = vmo.Material; this.txtDiameter.EditValue = vmo.Diameter; this.txtMinorLoss.EditValue = vmo.MinorLoss; this.txtDescription.EditValue = vmo.Description; } } }