private void handleFile(string[] chunks) { _currentFile = chunks[1]; var file = new ProjectFile(_currentFile, _currentProject); var args = getArguments(chunks, 2); if (args.Contains("filesearch")) file.SetFileSearch(); _builder.Add(file); }
private bool filter(ProjectFile reference, Query query) { if (query == null) return true; if (query.Project != null && !wildcardmatch(reference.Project, query.Project)) return false; if (query.File != null && !wildcardmatch(reference.File, query.File)) return false; return true; }
public void Add(ProjectFile file) { lock (_files) { var existing = _files.FirstOrDefault(x => x.File == file.File); if (existing == null) { _files.Add(file); return; } existing.Update(file.Project, file.FileSearch); } }
public void Add(ProjectFile file) { lock (_files) _files.Add(file); }
public void Add(ProjectFile file) { }
public string Format(ProjectFile file) { return string.Format("file|{0}", file.File); }
public void Add(ProjectFile file) { Files.Add(file); }