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

        internal static string GetName(IFBasicCombination lusasLoadCombination)
        {
            string loadcaseName = "";

            if (lusasLoadCombination.getName().Contains("/"))
            {
                loadcaseName = lusasLoadCombination.getName().Substring(
                    lusasLoadCombination.getName().LastIndexOf("/") + 1);
            }
            else
            {
                loadcaseName = lusasLoadCombination.getName();
            }

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

        internal static int GetAdapterID(IFBasicCombination lusasLoadCombination, char lastCharacter)
        {
            int adapterID = 0;

            lusasLoadCombination.getName();

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

            return(adapterID);
        }