Exemplo n.º 1
0
        public Boolean ExecuteScripts(List <List <string> > ProcedureNames, int flanc)
        {
            Logging log = new Logging();

            try
            {
                if (ProcedureNames == null)
                {
                    return(false);
                }
                UserProcedure up = new UserProcedure();
                if (ProcedureNames[flanc].Count != 0)
                {
                    foreach (string userProc in ProcedureNames[flanc])
                    {
                        if (userProc.Trim() != "")
                        {
                            up.ExecuteProcedure(userProc, this);
                        }
                    }
                }
                log.Success();
                return(true);
            }
            catch (Exception ex)
            {
                log.Fatal(ex);
                return(false);
            }
        }