Esempio n. 1
0
 public override void DeserializeObject(List <string> data)
 {
     base.DeserializeObject(data);
     try
     {
         EyeshadowTexture = (KindOfEyeshadow)Enum.Parse(typeof(KindOfEyeshadow), data[currentItemList]);
         data.RemoveAt(currentItemList);
         PackageType = (FormOfPackage)Enum.Parse(typeof(FormOfPackage), data[currentItemList]);
         data.RemoveAt(currentItemList);
     }
     catch
     {
         throw new Exception();
     }
 }
Esempio n. 2
0
 public Eyeshadow(string productName, string brand, PriceCategory priceCategoryOfProduct, Color Color, bool IsWaterpoof, string Effect, KindOfEyeshadow EyeshadowTexture,
                  FormOfPackage PackageType) : base(productName, brand, priceCategoryOfProduct, Color, IsWaterpoof)
 {
     this.EyeshadowTexture = EyeshadowTexture;
     this.PackageType      = PackageType;
 }