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; } }
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; }
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); } } }