/// <summary>
        /// Factories the specified application.
        /// </summary>
        /// <param name="app">The application.</param>
        /// <param name="uniqueName">Name of the unique.</param>
        /// <returns>Diaphragm.</returns>
        internal static Diaphragm Factory(ApiCSiApplication app, string uniqueName)
        {
            Diaphragm diaphragm = new Diaphragm(app, uniqueName);

            diaphragm.FillData();

            return(diaphragm);
        }
        public static Diaphragm Factory(string uniqueName)
        {
            if (Registry.Diaphragms.Keys.Contains(uniqueName))
            {
                return(Registry.Diaphragms[uniqueName]);
            }

            Diaphragm diaphragm = new Diaphragm(uniqueName);

            if (_pointObject != null)
            {
                // TODO: Add all point objects to diaphragm?
            }
            if (_areaObject != null)
            {
                // TODO: Add all area objects to diaphragm?
            }

            Registry.Diaphragms.Add(uniqueName, diaphragm);
            return(diaphragm);
        }