예제 #1
0
        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);
        }
예제 #2
0
 private void RemoveImage(ImageInfo info)
 {
     Images.Remove(info);
 }
예제 #3
0
 private void AddImage(ImageInfo info)
 {
     Images.Add(info);
 }
예제 #4
0
 private void OnImageAdded(byte b, string s)
 {
     var info = new ImageInfo(b, s);
     disp.Invoke(() => AddImage(info));
 }
예제 #5
0
 protected bool Equals(ImageInfo other)
 {
     return OriginId == other.OriginId && string.Equals(FilePath, other.FilePath);
 }