public static string GetBoardConfigurationName(this ICoreObject boardConfiguration)
        {
            IOamIdentification attributes = CoreObjectExtension.GetAttributes <IOamIdentification>(boardConfiguration);

            if (attributes != null)
            {
                return(attributes.OamName);
            }
            else
            {
                return(null);
            }
        }
        public static ICoreObject GetBoardConfigurationByName(this ILifelistService lifelist,
                                                              ICoreObject localBoard,
                                                              string ConfigurationName)
        {
            ICoreObjectCollection configurations = lifelist.GetAllBoardConfigurations(localBoard);

            foreach (ICoreObject config in configurations)
            {
                IOamIdentification attributes = CoreObjectExtension.GetAttributes <IOamIdentification>(config);
                if (attributes != null && attributes.OamName == ConfigurationName)
                {
                    return(config);
                }
            }
            return(null);
        }
        public static ICoreObject GetSimConnectionConfig(this IConnectionService ics)
        {
            var    provider            = ics.ToConnectionServiceProvider();
            var    boardConfigurations = provider.GetUsableConfigurations("OMS");
            string str = "PLCSIM.TCPIP.1";

            foreach (ICoreObject o in boardConfigurations)
            {
                IOamIdentification attributes = CoreObjectExtension.GetAttributes <IOamIdentification>(o);
                if (attributes != null && attributes.OamName == str)
                {
                    return(o);
                }
            }
            return(null);
        }