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