namespace Yw.WinFrmUI
|
{
|
public partial class ViewHydroSceneDlg : DevExpress.XtraEditors.XtraForm
|
{
|
public ViewHydroSceneDlg()
|
{
|
InitializeComponent();
|
this.IconOptions.Icon = Yw.WinFrmUI.GlobalParas.AppIcon;
|
this.layoutControl1.SetupLayoutControl();
|
}
|
|
private HydroSceneVmo _vmo = null;
|
|
/// <summary>
|
/// 绑定数据
|
/// </summary>
|
public void SetBindingData(HydroSceneVmo vmo)
|
{
|
if (vmo == null)
|
{
|
return;
|
}
|
_vmo = vmo;
|
this.txtName.EditValue = vmo.Name;
|
this.txtCode.EditValue = vmo.Code;
|
this.txtFlags.EditValue = Yw.Untity.FlagsHelper.ToString(vmo.Flags);
|
this.txtTagName.EditValue = vmo.TagName;
|
this.txtDescription.EditValue = vmo.Description;
|
}
|
|
|
}
|
}
|