public SellingStatistic() { statisticData = new Dictionary <string, int>(); totalValue = new Euro(); }
public SellableProduct(string name, Euro price) { Name = name; Price = price; image = null; }
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(); }
public SellableProduct(string name, Euro price, Image image) { Name = name; Price = price; Image = image; }