Ejemplo n.º 1
0
        /***************************************************/
        /**** Public Methods                            ****/
        /***************************************************/

        public static Loadcase ToLoadcase(this IFLoadcase lusasLoadcase)
        {
            Loadcase loadcase = new Loadcase
            {
                Name   = GetName(lusasLoadcase),
                Number = lusasLoadcase.getID()
            };

            int adapterNameId = lusasLoadcase.getID();

            loadcase.SetAdapterId(typeof(LusasId), adapterNameId);

            return(loadcase);
        }
Ejemplo n.º 2
0
        /***************************************************/

        internal static int GetAdapterID(IFLoadcase lusasLoadcase, char lastCharacter)
        {
            int adapterID = 0;

            lusasLoadcase.getName();

            if (lusasLoadcase.getName().Contains("/"))
            {
                adapterID = int.Parse(lusasLoadcase.getName().Split(lastCharacter, '/')[1]);
            }
            else
            {
                adapterID = lusasLoadcase.getID();
            }

            return(adapterID);
        }