public Roof(Roof roof) { if (roof != null) { this.m_bIsSelected = roof.m_bIsSelected; } }
public WarehouseSheet(WarehouseSheet whSheet) : base(whSheet) { if (whSheet != null) { // Clone roofs list if (whSheet.RoofsList != null) { foreach (Roof roof in whSheet.RoofsList) { if (roof == null) { continue; } Roof roofClone = roof.Clone() as Roof; if (roofClone == null) { continue; } this.RoofsList.Add(roofClone); } } } }