示例#1
0
        public void removeBikeBasket(BikeBasket b)
        {
            string key = b.name + b.size + b.color;

            if (Basket.ContainsValue(b))
            {
                Basket.Remove(key);
            }
        }
示例#2
0
 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;
 }
示例#3
0
        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));
            }
        }