Esempio n. 1
0
 public override void DeserializeObject(List<string> data)
 {
     base.DeserializeObject(data);
     try
     {
         Package = (TypeOfPackage)Enum.Parse(typeof(TypeOfPackage), data[currentItemList]);
         data.RemoveAt(currentItemList);
         isContainTalc = bool.Parse(data[currentItemList]);
         data.RemoveAt(currentItemList);
     }
     catch
     {
         throw new Exception();
     }
 }
Esempio n. 2
0
 public Lipstick(string ProductName, string Brand, PriceCategory PriceCategoryOfProduct, Color Color, string Aromatizer,
                 TypeOfPackage PackageType, TypeOfFinish Finish) : base(ProductName, Brand, PriceCategoryOfProduct, Color, Aromatizer)
 {
     this.PackageType = PackageType;
     this.Finish      = Finish;
 }
Esempio n. 3
0
 public int Add(TypeOfPackage s)
 {
     throw new NotImplementedException();
 }
Esempio n. 4
0
 public Powder(string ProductName, string Brand, PriceCategory PriceCategoryOfProduct, Color Color, SkinType TypeOfSkin, TypeOfFinish Finish, TypeOfPackage Package, bool isContainTalc)
     : base(ProductName, Brand, PriceCategoryOfProduct, Color, TypeOfSkin, Finish)
 {
     this.Package = Package;
     this.isContainTalc = isContainTalc;
 }