public void AddProcessingFile(string filename) { if (!Processing.Contains(filename, StringComparer.OrdinalIgnoreCase)) { Processing.Add(filename); } }
private void Archive(object sender, FileSystemEventArgs e) { if (FileUtils.IsFile(e.FullPath)) { Processing.Add(new FileEntry { File = e.Name }); _archiver.Process(e.FullPath); } }