private void OnFolderContentChanged(object sender, FolderNodeEventArgs e) { switch (e.ChangeType) { case WatcherChangeTypes.Changed: _dispatcherService.BeginInvoke(() => OnChanged(e.NewPath)); break; case WatcherChangeTypes.Created: _dispatcherService.BeginInvoke(() => OnCreated(e.NewPath)); break; case WatcherChangeTypes.Deleted: _dispatcherService.BeginInvoke(() => OnDeleted(e.OldPath)); break; case WatcherChangeTypes.Renamed: _dispatcherService.BeginInvoke(() => OnRenamed(e.NewPath, e.OldPath)); break; } }
private void OnFolderContentChanged(object sender, FolderNodeEventArgs e) { switch (e.ChangeType) { case WatcherChangeTypes.Changed: _dispatcherService.BeginInvoke(() => OnChanged(e.NewPath)); break; case WatcherChangeTypes.Created: _dispatcherService.BeginInvoke(() => OnCreated(e.NewPath)); break; case WatcherChangeTypes.Deleted: _dispatcherService.BeginInvoke(() => OnDeleted(e.OldPath)); break; case WatcherChangeTypes.Renamed: _dispatcherService.BeginInvoke(() => OnRenamed(e.NewPath, e.OldPath)); break; } }