private void RemoveImages(byte b) { var paths = GetImagePaths(IMG_DIR + b); if(paths.Count == 0) return; foreach(var path in paths) { var info = new ImageInfo(b, path); RemoveImage(info); } Directory.Delete(IMG_DIR + b, true); }
private void RemoveImage(ImageInfo info) { Images.Remove(info); }
private void AddImage(ImageInfo info) { Images.Add(info); }
private void OnImageAdded(byte b, string s) { var info = new ImageInfo(b, s); disp.Invoke(() => AddImage(info)); }
protected bool Equals(ImageInfo other) { return OriginId == other.OriginId && string.Equals(FilePath, other.FilePath); }