예제 #1
0
        public void MoveBlockDown(StackerBlockViewModel block)
        {
            var oldIndex = Stack.IndexOf(block);

            if (oldIndex != Stack.Count - 1)
            {
                Stack.Move(oldIndex, oldIndex + 1);
            }
        }
예제 #2
0
        public void MoveBlockUp(StackerBlockViewModel block)
        {
            var oldIndex = Stack.IndexOf(block);

            if (oldIndex != 0)
            {
                Stack.Move(oldIndex, oldIndex - 1);
            }
        }