public DirectoryWatchX(string path, string filter, bool includeSubDirectories, int bufferSize, NotifyFilter notifyFilter, bool watchForChanges, bool watchForCreation, bool watchForDeletions, bool watchForRenaming) { this.path = path; this.filter = filter; this.includeSubDirs = includeSubDirectories; this.bufferSize = bufferSize; this.notifyFilter = notifyFilter; this.watchChanged = watchForChanges; this.watchCreated = watchForCreation; this.watchDeleted = watchForDeletions; this.watchRenamed = watchForRenaming; }
public object Clone() { NotifyFilter n = new NotifyFilter(); n.Attributes = Attributes; n.CreationTime = CreationTime; n.DirectoryName = DirectoryName; n.FileName = FileName; n.LastAccess = LastAccess; n.LastWrite = LastWrite; n.Security = Security; n.Size = Size; return(n); }