Esempio n. 1
0
        /// <summary>
        /// Adds a new Pier Label.
        /// </summary>
        /// <param name="app">The application.</param>
        /// <param name="pierResults">The pier results.</param>
        /// <param name="name">The name.</param>
        /// <returns>Pier.</returns>
        internal static Pier AddPier(ApiCSiApplication app,
                                     PierResults pierResults,
                                     string name)
        {
            ApiPier       pier          = getApiPier(app);
            List <string> existingItems = GetNameList(pier);

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

            pier.SetPier(name);
            return(Factory(app, pierResults, name));
        }
Esempio n. 2
0
 /// <summary>
 /// Retrieves the names of all defined label properties.
 /// </summary>
 /// <param name="pier">The pier.</param>
 /// <returns>System.String[].</returns>
 public static List <string> GetNameList(ApiPier pier)
 {
     return((pier == null) ? new List <string>() : new List <string>(pier.GetNameList()));
 }