示例#1
0
 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--;
     }
 }
示例#2
0
 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++;
     }
 }