예제 #1
0
 private void OnProcessDirectory(string directory, bool hasMatchingFiles)
 {
     ProcessDirectoryHandler processDirectory = ProcessDirectory;
     if (processDirectory != null)
     {
         DirectoryEventArgs e = new DirectoryEventArgs(directory, hasMatchingFiles);
         processDirectory(this, e);
         alive_ = e.ContinueRunning;
     }
 }
예제 #2
0
        private void OnProcessDirectory(string directory, bool hasMatchingFiles)
        {
            ProcessDirectoryHandler processDirectory = ProcessDirectory;

            if (processDirectory != null)
            {
                DirectoryEventArgs e = new DirectoryEventArgs(directory, hasMatchingFiles);
                processDirectory(this, e);
                alive_ = e.ContinueRunning;
            }
        }
예제 #3
0
 public bool OnProcessDirectory(string directory, bool hasMatchingFiles)
 {
     bool continueRunning = true;
     ProcessDirectoryHandler processDirectory = ProcessDirectory;
     if (processDirectory != null)
     {
         DirectoryEventArgs e = new DirectoryEventArgs(directory, hasMatchingFiles);
         processDirectory(this, e);
         continueRunning = e.ContinueRunning;
     }
     return continueRunning;
 }
예제 #4
0
 private void ProcessDirectory(object sender, DirectoryEventArgs e)
 {
     if (!e.HasMatchingFiles && CreateEmptyDirectories)
     {
         if (_events != null)
         {
             _events.OnProcessDirectory(e.Name, e.HasMatchingFiles);
         }
         if (e.ContinueRunning && (e.Name != _sourceDirectory))
         {
             ZipEntry entry = _entryFactory.MakeDirectoryEntry(e.Name);
             _outputStream.PutNextEntry(entry);
         }
     }
 }