Esempio n. 1
0
        public PatternEntry <TPattern> AddPattern(EntryKind kind, TPattern pattern)
        {
            PatternEntry <TPattern> p = new PatternEntry <TPattern>(kind, pattern);

            AddPattern(p);
            return(p);
        }
Esempio n. 2
0
        public void RemovePattern(PatternEntry <TPattern> pattern)
        {
            List <PatternEntry <TPattern> > p = new List <PatternEntry <TPattern> >(_patterns);

            p.Remove(pattern);
            _patterns = p;
            _fileTree.UpdateMatches();
        }
Esempio n. 3
0
        public void AddPattern(PatternEntry <TPattern> pattern)
        {
            List <PatternEntry <TPattern> > p = new List <PatternEntry <TPattern> >(_patterns)
            {
                pattern
            };

            _patterns = p;
            _fileTree.UpdateMatches();
        }