コード例 #1
0
        /// <summary>
        /// Factories the specified application.
        /// </summary>
        /// <param name="app">The application.</param>
        /// <param name="uniqueName">Name of the unique.</param>
        /// <param name="properties">The properties.</param>
        /// <returns>AngleSection.</returns>
        internal static DeckUnfilled Factory(ApiCSiApplication app, string uniqueName, DeckUnfilledProperties properties = null)
        {
            DeckUnfilled areaSection = new DeckUnfilled(app, uniqueName)
            {
                _properties = properties
            };

            if (properties == null)
            {
                areaSection.FillData();
            }

            return(areaSection);
        }
コード例 #2
0
        /// <summary>
        /// Fills the extended.
        /// </summary>
        public void FillExtended()
        {
            switch (SectionProperties.FloorType)
            {
            case eDeckType.SolidSlab:
                _extended = DeckSolidSlab.Factory(_apiApp, Name);
                break;

            case eDeckType.Unfilled:
                _extended = DeckUnfilled.Factory(_apiApp, Name);
                break;

            case eDeckType.Filled:
                _extended = DeckFilled.Factory(_apiApp, Name);
                break;
            }
        }
コード例 #3
0
        /// <summary>
        /// Sets the extended.
        /// </summary>
        /// <param name="extendedProperties">The extended properties.</param>
        public void SetExtended(DeckExtendedProperties extendedProperties)
        {
            if (extendedProperties == null)
            {
                return;
            }
            switch (extendedProperties)
            {
            case DeckSolidSlabProperties deckSolidSlabProperties:
                _extended = DeckSolidSlab.Factory(_apiApp, Name, deckSolidSlabProperties);
                break;

            case DeckUnfilledProperties deckUnfilledProperties:
                _extended = DeckUnfilled.Factory(_apiApp, Name, deckUnfilledProperties);
                break;

            case DeckFilledProperties deckFilledProperties:
                _extended = DeckFilled.Factory(_apiApp, Name, deckFilledProperties);
                break;
            }
        }