public void RemoveWatching(string path) { TrackingDirs.Remove(path); RemoveUntracked(path); Save(); }
private void RemoveUntracked(string path) { for (int i = 0; i < Images.Count; i++) { ImageDescriptor current = Images[i]; if (!TrackingDirs.Any(n => n == current.TrackingDir)) { Images.Remove(current); } } }
public void AddTracking(string path) { TrackingDirs.Add(path); ReadTrackedDir(path); Save(); }