void OnChangeImage(bool isBack)
 {
     if (SelectedPicture != null)
     {
         if (isBack)
         {
             int index = Pictures.IndexOf(SelectedPicture);
             if (index != 0)
             {
                 SelectedPicture = Pictures[index - 1];
             }
         }
         else
         {
             int index = Pictures.IndexOf(SelectedPicture);
             if (index != (Pictures.Count - 1))
             {
                 SelectedPicture = Pictures[index + 1];
             }
         }
     }
 }
Esempio n. 2
0
 private void DeletePictureMethod(Byte[] img)
 {
     Pictures.RemoveAt(Pictures.IndexOf(img));
 }