Exemple #1
0
 public WatcherCopier(FolderCopy fc, string location)
 {
     this.fc          = fc;
     fsw              = new FileSystemWatcher();
     fsw.Path         = location;
     fsw.NotifyFilter = NotifyFilters.LastAccess | NotifyFilters.LastWrite;
 }
Exemple #2
0
        public IntervalCopier(FolderCopy fc, int interval)
        {
            if (interval <= 0)
            {
                throw new Exception("interval must not be 0");
            }


            this.interval = interval;
            this.fc       = fc;
        }