Esempio n. 1
0
 public SellingStatistic()
 {
     statisticData = new Dictionary <string, int>();
     totalValue    = new Euro();
 }
Esempio n. 2
0
 public SellableProduct(string name, Euro price)
 {
     Name  = name;
     Price = price;
     image = null;
 }
Esempio n. 3
0
 public void SetItemData(string category, string itemName, string newItemName, Euro newPrice, Image itemNewImage)
 {
     if (!itemName.Equals(newItemName))
     {
         VerifyItemExist(category, newItemName);
     }
     foreach (KeyValuePair <string, IList <SellableProduct> > entry in sellingItems)
     {
         foreach (SellableProduct item in entry.Value)
         {
             if (itemName.Equals(item.Name))
             {
                 item.Name  = newItemName;
                 item.Price = newPrice;
                 item.Image = itemNewImage;
                 return;
             }
         }
     }
     throw new SellingItemDoesntExistException();
 }
Esempio n. 4
0
 public SellableProduct(string name, Euro price, Image image)
 {
     Name  = name;
     Price = price;
     Image = image;
 }