示例#1
0
 public Roof(Roof roof)
 {
     if (roof != null)
     {
         this.m_bIsSelected = roof.m_bIsSelected;
     }
 }
示例#2
0
        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);
                    }
                }
            }
        }