Beispiel #1
0
        public void DeleteImage(ItemImage image)
        {
            Images.Remove(image);

            SelectedImage = Images.Count == 0 ? null : Images[Math.Min(SelectedImageIndex, ImageCount - 1)];
            NotifyPropertyChanged(nameof(ImageCount));
        }
Beispiel #2
0
        public void AddNewImage(byte[] imageData)
        {
            ItemImage image = new ItemImage(imageData);

            Images.Add(image);
            SelectedImage = image;

            NotifyPropertyChanged(nameof(ImageCount));
        }