Beispiel #1
0
        private void DoMoveImageUp(ImageReference image)
        {
            var index = AllImages.IndexOf(image);

            if (index <= 0)
            {
                return;
            }

            AllImages.Move(index, index - 1);
        }
Beispiel #2
0
        private void DoMoveImageDown(ImageReference image)
        {
            var index = AllImages.IndexOf(image);

            if (index >= AllImages.Count - 1)
            {
                return;
            }

            AllImages.Move(index, index + 1);
        }