// levelFilter. A test used by the CollectonView to determin if a line should be shown
        // based on current display level & text filter
        private bool levelFilter(object item)
        {
            FileLine fl             = (FileLine)item;
            bool     passLevel      = fl.GetLevel().level >= currentLevel.level;
            bool     passTextFilter = true;

            if (rex != null)
            {
                passTextFilter = rex.IsMatch(fl.Text);
            }
            return(passTextFilter && passLevel);
        }
Example #2
0
        // common methods
        public void EnqueueLine(String m, bool status)
        {
            FileLine curTag;

            if (!status)
            {
                lineCount++;
                curTag = FileLine.Parse(m, lineCount);
            }
            else
            {
                curTag = FileLine.Parse(m, 0);
            }

            if (curTag != null)
            {
                lock (lines)
                    lines.Add(curTag);
            }
        }