Esempio n. 1
0
        /// <summary>
        /// Factories the specified application.
        /// </summary>
        /// <param name="app">The application.</param>
        /// <param name="uniqueName">Name of the unique.</param>
        /// <returns>ColdFormed.</returns>
        internal new static ColdFormed Factory(ApiCSiApplication app, string uniqueName, double temperature = 0)
        {
            ColdFormed material = new ColdFormed(app, uniqueName, temperature);

            material.FillData();

            return(material);
        }
Esempio n. 2
0
        public new static ColdFormed Factory(string uniqueName)
        {
            if (Registry.Materials.Keys.Contains(uniqueName))
            {
                return((ColdFormed)Registry.Materials[uniqueName]);
            }

            ColdFormed material = new ColdFormed(uniqueName);

            if (_materialProperties != null)
            {
                material.FillData();
            }
            Registry.Materials.Add(uniqueName, material);
            return(material);
        }