コード例 #1
0
ファイル: Slab.cs プロジェクト: OrganizationUsername/MPT.Net
        /// <summary>
        /// Sets the extended.
        /// </summary>
        /// <param name="extendedProperties">The extended properties.</param>
        public void SetExtended(SlabExtendedProperties extendedProperties)
        {
            switch (extendedProperties)
            {
            case SlabRibbedProperties slabRibbedProperties:
                _extended        = SlabRibbed.Factory(Name, slabRibbedProperties);
                _layerProperties = null;
                break;

            case SlabWaffleProperties slabWaffleProperties:
                _extended        = SlabWaffle.Factory(Name, slabWaffleProperties);
                _layerProperties = null;
                break;

            default:
                _extended = null;
                break;
            }
        }
コード例 #2
0
ファイル: Slab.cs プロジェクト: OrganizationUsername/MPT.Net
        /// <summary>
        /// Fills the extended.
        /// </summary>
        public void FillExtended()
        {
            if (SectionProperties.ShellType == eShellType.ShellLayered)
            {
                _extended = null;
                return;
            }

            switch (SectionProperties.FloorType)
            {
            case eSlabType.Ribbed:
                _extended = SlabRibbed.Factory(Name);
                break;

            case eSlabType.Waffle:
                _extended = SlabWaffle.Factory(Name);
                break;

            case eSlabType.Slab:
            case eSlabType.Drop:
                _extended = null;
                break;
            }
        }