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