using HStation.Vmo; namespace HStation.WinFrmUI { public partial class XhsProjectInfoCtrl : DevExpress.XtraEditors.XtraUserControl { public XhsProjectInfoCtrl() { InitializeComponent(); this.layoutControl1.SetupLayoutControl(); } private ImportXhsProjectViewModel _project = null;//项目 /// /// 绑定数据 /// public void SetBindingData(ImportXhsProjectViewModel project) { _project = project; if (_project != null) { this.txtNO.EditValue = _project.NO; this.txtName.EditValue = _project.Name; this.txtCustomer.EditValue = _project.Customer; this.txtAddress.EditValue = _project.Address; this.txtFlags.EditValue = Yw.Untity.FlagsHelper.ToString(_project.Flags); this.txtTagNme.EditValue = _project.TagName; this.txtDescription.EditValue = _project.Description; } } } }