namespace Yw.WinFrmUI { /// /// /// public class SetHydroVisualMonitorViewModel { /// /// /// public SetHydroVisualMonitorViewModel() { } /// /// /// public SetHydroVisualMonitorViewModel(Yw.Vmo.HydroMonitorVmo vmo, Yw.Model.HydroVisualInfo visual) { this.Checked = vmo.ID > 0; this.Relation = visual.Name; this.PropName = HydroVisualCalcuPropHelper.GetName(vmo.PropName); this.Description = vmo.Description; this.Vmo = vmo; } /// /// 选择 /// [DisplayName("选择")] public bool Checked { get; set; } /// /// 构件 /// [DisplayName("构件")] public string Relation { get; set; } /// /// 属性 /// [DisplayName("属性")] public string PropName { get; set; } /// /// 说明 /// [DisplayName("说明")] public string Description { get; set; } /// /// vmo /// public Yw.Vmo.HydroMonitorVmo Vmo { get; set; } } }