Ejemplo n.º 1
0
 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];
             }
         }
     }
 }
Ejemplo n.º 2
0
 private void DeletePictureMethod(Byte[] img)
 {
     Pictures.RemoveAt(Pictures.IndexOf(img));
 }