public PatternEntry <TPattern> AddPattern(EntryKind kind, TPattern pattern) { PatternEntry <TPattern> p = new PatternEntry <TPattern>(kind, pattern); AddPattern(p); return(p); }
public void RemovePattern(PatternEntry <TPattern> pattern) { List <PatternEntry <TPattern> > p = new List <PatternEntry <TPattern> >(_patterns); p.Remove(pattern); _patterns = p; _fileTree.UpdateMatches(); }
public void AddPattern(PatternEntry <TPattern> pattern) { List <PatternEntry <TPattern> > p = new List <PatternEntry <TPattern> >(_patterns) { pattern }; _patterns = p; _fileTree.UpdateMatches(); }