Ejemplo n.º 1
0
        /// <summary>
        /// Returns a frame object of the specified name.
        /// </summary>
        /// <param name="pierResults">The pier results.</param>
        /// <param name="uniqueName">Name of the unique.</param>
        /// <returns>Frame.</returns>
        internal static Pier Factory(
            PierResults pierResults,
            string uniqueName)
        {
            Pier item = new Pier(pierResults, uniqueName);

            return(item);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Returns a frame object of the specified name.
        /// </summary>
        /// <param name="app">The application.</param>
        /// <param name="pierResults">The pier results.</param>
        /// <param name="uniqueName">Name of the unique.</param>
        /// <returns>Frame.</returns>
        internal static Pier Factory(ApiCSiApplication app,
                                     PierResults pierResults,
                                     string uniqueName)
        {
            Pier item = new Pier(app, pierResults, uniqueName);

            item.FillData();
            return(item);
        }
Ejemplo n.º 3
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));
        }
Ejemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="API.Core.Program.ModelBehavior.Definition.LoadCombinations" /> class.
 /// </summary>
 internal Piers()
 {
     Results = new PierResults();
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="API.Core.Program.ModelBehavior.Definition.LoadCombinations" /> class.
 /// </summary>
 /// <param name="app">The application.</param>
 internal Piers(ApiCSiApplication app) : base(app)
 {
     Results = new PierResults(_apiApp);
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Pier" /> class.
 /// </summary>
 /// <param name="app">The application.</param>
 /// <param name="pierResults">The pier results.</param>
 /// <param name="name">The name.</param>
 protected Pier(ApiCSiApplication app,
                PierResults pierResults,
                string name) : base(app, name)
 {
     _results = pierResults;
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Pier" /> class.
 /// </summary>
 /// <param name="pierResults">The pier results.</param>
 /// <param name="name">The name.</param>
 protected Pier(
     PierResults pierResults,
     string name) : base(name)
 {
     _results = pierResults;
 }