コード例 #1
0
 public void AddProcessingFile(string filename)
 {
     if (!Processing.Contains(filename, StringComparer.OrdinalIgnoreCase))
     {
         Processing.Add(filename);
     }
 }
コード例 #2
0
        private void Archive(object sender, FileSystemEventArgs e)
        {
            if (FileUtils.IsFile(e.FullPath))
            {
                Processing.Add(new FileEntry
                {
                    File = e.Name
                });

                _archiver.Process(e.FullPath);
            }
        }