Esempio n. 1
0
        public static string PlaceConnectionNumber(Connection[] connections, string scheme, bool regenerate)
        {
            string mesg = EplDefinition.EPL_GEN_CONNECTION_NUM.ToString();

            try
            {
                ConnectionService connectionService = new ConnectionService();
                var connectionList = new System.Collections.ArrayList(connections);
                //Place connection number, base on the definition placed previous time.
                connectionService.DesignateConnections(connectionList, scheme, ConnectionService.DesignateOverwrition.ExceptManuals, true, regenerate);
            }
            catch (Exception ex)
            {
                mesg = EplError.EPL_ERROR.ToString();
                EplException("Place connection number error.", ex);
            }

            return(mesg);
        }