public FileWatcher(string sourcePath, string targetPath) { _sourcePath = sourcePath; _targetPath = targetPath; Wd = new WatcherDelegate(TurnOnWatch); if (!Directory.Exists(_sourcePath) || !File.Exists(_targetPath)) { return; } StartToWatch(); }
public static void AddWatcher(WatcherDelegate watcher) { watchers.Add(watcher); }
public static void AddWatcher(WatcherDelegate watcher) { watchers.Add (watcher); }