예제 #1
0
 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;
 }
예제 #2
0
        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);
        }