コード例 #1
0
 /// <summary>
 /// Adds a new Spandrel Label.
 /// </summary>
 /// <param name="spandrelResults">The spandrel results.</param>
 /// <param name="name">The name.</param>
 /// <param name="isMultiStory">if set to <c>true</c> [is multi story].</param>
 /// <returns>Spandrel.</returns>
 internal static Spandrel Add(
     SpandrelResults spandrelResults,
     string name,
     bool isMultiStory)
 {
     return(Factory(spandrelResults, name));
 }
コード例 #2
0
        /// <summary>
        /// Returns a frame object of the specified name.
        /// </summary>
        /// <param name="spandrelResults">The spandrel results.</param>
        /// <param name="uniqueName">Name of the unique.</param>
        /// <returns>Frame.</returns>
        internal static Spandrel Factory(
            SpandrelResults spandrelResults,
            string uniqueName)
        {
            Spandrel item = new Spandrel(spandrelResults, uniqueName);

            return(item);
        }
コード例 #3
0
        /// <summary>
        /// Returns a frame object of the specified name.
        /// </summary>
        /// <param name="app">The application.</param>
        /// <param name="spandrelResults">The spandrel results.</param>
        /// <param name="uniqueName">Name of the unique.</param>
        /// <returns>Frame.</returns>
        internal static Spandrel Factory(ApiCSiApplication app,
                                         SpandrelResults spandrelResults,
                                         string uniqueName)
        {
            Spandrel item = new Spandrel(app, spandrelResults, uniqueName);

            item.FillData();
            return(item);
        }
コード例 #4
0
        /// <summary>
        /// Adds a new Spandrel Label.
        /// </summary>
        /// <param name="app">The application.</param>
        /// <param name="spandrelResults">The spandrel results.</param>
        /// <param name="name">The name.</param>
        /// <param name="isMultiStory">if set to <c>true</c> [is multi story].</param>
        /// <returns>Spandrel.</returns>
        internal static Spandrel AddSpandrel(ApiCSiApplication app,
                                             SpandrelResults spandrelResults,
                                             string name,
                                             bool isMultiStory)
        {
            ApiSpandrel   spandrel      = getApiSpandrel(app);
            List <string> existingItems = GetNameList(spandrel);

            if (existingItems.Contains(name))
            {
                return(null);
            }

            spandrel.SetSpandrel(name, isMultiStory);
            return(Factory(app, spandrelResults, name));
        }
コード例 #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="LoadCombinations" /> class.
 /// </summary>
 /// <param name="app">The application.</param>
 internal Spandrels(ApiCSiApplication app) : base(app)
 {
     Results = new SpandrelResults(_apiApp);
 }
コード例 #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Spandrel" /> class.
 /// </summary>
 /// <param name="app">The application.</param>
 /// <param name="spandrelResults">The spandrel results.</param>
 /// <param name="name">The name.</param>
 protected Spandrel(ApiCSiApplication app,
                    SpandrelResults spandrelResults,
                    string name) : base(app, name)
 {
     _results = spandrelResults;
 }
コード例 #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Spandrels" /> class.
 /// </summary>
 internal Spandrels()
 {
     Results = new SpandrelResults();
 }
コード例 #8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Spandrel" /> class.
 /// </summary>
 /// <param name="spandrelResults">The spandrel results.</param>
 /// <param name="name">The name.</param>
 protected Spandrel(
     SpandrelResults spandrelResults,
     string name) : base(name)
 {
     _results = spandrelResults;
 }