Exemplo n.º 1
0
        public override void DeserializeObject(List <string> data)
        {
            base.DeserializeObject(data);
            try
            {
                Durability = Convert.ToInt32(data[currentItemList]);
                data.RemoveAt(currentItemList);

                SpecialEffect = (TypesOfEffects)Enum.Parse(typeof(TypesOfEffects), data[currentItemList]);
                data.RemoveAt(currentItemList);
            }
            catch
            {
                throw new Exception();
            }
        }
Exemplo n.º 2
0
 public NailPolish(string ProductName, string Brand, PriceCategory PriceCategoryOfProduct, Color Color, int Durability, TypesOfEffects SpecialEffect) :
     base(ProductName, Brand, PriceCategoryOfProduct, Color)
 {
     this.Durability    = Durability;
     this.SpecialEffect = SpecialEffect;
 }