Beispiel #1
0
 /**
  * For the Sample
  * @param pItem For the Sample
  */
 public void removeItem(Item pItem)
 {
     SimpleLogger.Instance.log("Inventory:RemoveItem");
     try
     {
         Thread.Sleep(TEMPO);
     }
     catch (ThreadInterruptedException e)
     {
         // @todo Auto-generated catch block
         e.StackTrace.ToString();
     }
     mItems.Remove(pItem);
 }
        /**
         * For the Sample
         * @param pSc For the Sample
         * @param pInventory For the Sample
         * @param pItem For the Sample
         */
        public static void removeShoppingCartItem(ShoppingCart pSc, Inventory pInventory, Item pItem)
        {
            try
            {
                Thread.Sleep(TEMPO2);
            }
            catch (ThreadInterruptedException e)
            {
                // @todo Auto-generated catch block
                e.StackTrace.ToString();
            }
            pSc.removeItem(pItem);

            pInventory.addItem(pItem);
        }