using Yw.Dto; namespace HStation.WinFrmUI.Basic { public class SysCatalogPropViewModel { public SysCatalogPropViewModel() { } public SysCatalogPropViewModel(SysPropHaveLogicalTreeDto rhs) { if (rhs.LogicalType == "sys-prop") { Name = rhs.LogicalName; ID = rhs.LogicalID; IsHave = rhs.Have; } else { Name = rhs.LogicalName; ID = rhs.LogicalID; IsHave = rhs.Have; } } public string GroupName { get; set; } public string Name { get; set; } public long ID { get; set; } public long ParentID { get; set; } public bool IsHave { get; set; } } }