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