public void removeBikeBasket(BikeBasket b) { string key = b.name + b.size + b.color; if (Basket.ContainsValue(b)) { Basket.Remove(key); } }
public BikeBasket(BikeBasket bk) { pic = bk.pic; name = bk.name; sizeList = bk.sizeList; colorList = bk.colorList; size = bk.size; color = bk.color; qnt = bk.qnt; curbike = bk.curbike; }
public void setBikeBasket(BikeBasket bc) { string key = bc.name + bc.size + bc.color; if (Basket.ContainsKey(key)) { Basket[key] = new BikeBasket(bc); } else { Basket.Add(key, new BikeBasket(bc)); } }