예제 #1
0
        private void fileChanged(object sender, FileSystemEventArgs e)
        {
            var watcher = (FileSystemWatcher)sender;

            ChangeDetected?.Invoke(this,
                                   new Change(EntryType.Uncertain,
                                              WatcherChangeTypes.Changed,
                                              e.FullPath,
                                              fileSystemWatcher: watcher));
        }
예제 #2
0
        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));
        }
예제 #3
0
 private void OnChange(IEnumerable <ITrack> changedTables)
 {
     ChangeDetected?.Invoke(this, new ChangeDetectedEventArgs(changedTables));
 }
 protected void OnChangeDetected()
 => ChangeDetected?.Invoke(this, EventArgs.Empty);