Ejemplo n.º 1
0
        public static List <string> GetLinesFromPages(List <string> pages, bool processAll)
        {
            var result = new List <string>();
            //var sb = new StringBuilder();

            var foundBeginning = processAll;

            foreach (var line in pages)
            {
                if (line.Contains(HelperVISA.BEGIN_TRANSACTIONS) || line.Contains(HelperStreamline.BEGIN_TRANSACTIONS))
                {
                    foundBeginning = true;
                }

                if (line.Contains(HelperVISA.END_TRANSACTIONS))
                {
                    break;
                }

                if ((foundBeginning) && LineParser.IsCrap(line) == false)
                {
                    if (StreamLine.IsBracketLine(line))
                    {
                    }
                    //sb.AppendLine(line);
                    result.Add(line);
                }
            }

            //sb.AppendLine("---------------------------------------");

            return(result);
        }
Ejemplo n.º 2
0
        public static List <string> GetLinesFromPagesNEW(List <string> pages)
        {
            var result = new List <string>();

            var foundBeginning = false;

            foreach (var line in pages)
            {
                if (line.Contains(HelperVISA.BEGIN_TRANSACTIONS) || line.Contains(HelperStreamline.BEGIN_TRANSACTIONS))
                {
                    foundBeginning = true;
                }

                if (line.Contains(HelperVISA.END_TRANSACTIONS))
                {
                    break;
                }

                if ((foundBeginning) && LineParser.IsCrap(line) == false)
                {
                    if (StreamLine.IsBracketLine(line))
                    {
                    }
                    result.Add(line);
                }
            }


            return(result);
        }