public void DishInOrderDown() { if (RemoveToOrderDish.PositionInOrder > 1) { OrderDishez.Move((int)RemoveToOrderDish.PositionInOrder - 1, (int)RemoveToOrderDish.PositionInOrder - 2); OrderDishez[(int)RemoveToOrderDish.PositionInOrder - 1].PositionInOrder++; RemoveToOrderDish.PositionInOrder--; } }
public void DishInOrderUp() { if (RemoveToOrderDish.PositionInOrder < OrderDishez.Count) { OrderDishez.Move((int)RemoveToOrderDish.PositionInOrder - 1, (int)RemoveToOrderDish.PositionInOrder); OrderDishez[(int)RemoveToOrderDish.PositionInOrder - 1].PositionInOrder--; RemoveToOrderDish.PositionInOrder++; } }