private void fileChanged(object sender, FileSystemEventArgs e) { var watcher = (FileSystemWatcher)sender; ChangeDetected?.Invoke(this, new Change(EntryType.Uncertain, WatcherChangeTypes.Changed, e.FullPath, fileSystemWatcher: watcher)); }
private void fileRenamed(object sender, RenamedEventArgs e) { var watcher = (FileSystemWatcher)sender; ChangeDetected?.Invoke(this, new Change(EntryType.File, WatcherChangeTypes.Renamed, e.FullPath, e.OldFullPath, watcher)); }
private void OnChange(IEnumerable <ITrack> changedTables) { ChangeDetected?.Invoke(this, new ChangeDetectedEventArgs(changedTables)); }
protected void OnChangeDetected() => ChangeDetected?.Invoke(this, EventArgs.Empty);