namespace Yw.WinFrmUI { /// /// /// public class HydroWorkingMgrViewModel { /// /// /// public HydroWorkingMgrViewModel() { } /// /// /// public HydroWorkingMgrViewModel(HydroWorkingVmo rhs, bool hasChecked = false) { this.ID = rhs.ID; this.Name = rhs.Name; this.SortCode = rhs.SortCode; this.Description = rhs.Description; this.HasChecked = hasChecked; this.Vmo = rhs; } /// /// 重置 /// public void Reset(HydroWorkingVmo rhs) { this.ID = rhs.ID; this.Name = rhs.Name; this.SortCode = rhs.SortCode; this.Description = rhs.Description; this.Vmo = rhs; } /// /// id /// public long ID { get; set; } /// /// 名称 /// public string Name { get; set; } /// /// 排序码 /// public int SortCode { get; set; } /// /// 说明 /// public string Description { get; set; } /// /// 选择 /// public bool HasChecked { get; set; } /// /// /// public HydroWorkingVmo Vmo { get; set; } } }