private void DoMoveImageUp(ImageReference image) { var index = AllImages.IndexOf(image); if (index <= 0) { return; } AllImages.Move(index, index - 1); }
private void DoMoveImageDown(ImageReference image) { var index = AllImages.IndexOf(image); if (index >= AllImages.Count - 1) { return; } AllImages.Move(index, index + 1); }