public CompleteExample(string path, string filter) { this.path = path; this.filter = filter; directoryFilesProcessing = new DirectoryFilesProcessing(path, filter); directoryFilesProcessing.NewFileToProcess += ProcessFile; containerWatcher = new ContainerWatcher(path, filter); containerWatcher.NewFileCreated += ProcessFile; containerWatcher.WatcherWillStartAgain += WatcherWillStartAgain; containerWatcher.LogMessage += LogNewMessage; }