using HStation.Vmo; namespace HStation.WinFrmUI { public partial class ViewAssetsHydrantSeriesDlg : DevExpress.XtraEditors.XtraForm { public ViewAssetsHydrantSeriesDlg() { InitializeComponent(); this.IconOptions.Icon = Yw.WinFrmUI.GlobalParas.AppIcon; this.layoutControl1.SetupLayoutControl(); } private AssetsHydrantSeriesVmo _vmo = null; /// /// 绑定数据 /// public void SetBindingData(AssetsHydrantSeriesVmo vmo) { if (vmo == null) { return; } _vmo = new AssetsHydrantSeriesVmo(vmo); this.txtName.EditValue = vmo.Name; this.txtFlags.EditValue = Yw.Untity.FlagsHelper.ToString(vmo.Flags); this.txtTagName.EditValue = vmo.TagName; this.txtDescription.EditValue = vmo.Description; } } }