Beispiel #1
0
 public override void DeserializeObject(List <string> data)
 {
     base.DeserializeObject(data);
     try
     {
         Coverage = (GradeOfCoverage)Enum.Parse(typeof(GradeOfCoverage), data[currentItemList]);
         data.RemoveAt(currentItemList);
         isShimmer = bool.Parse(data[currentItemList]);
         data.RemoveAt(currentItemList);
     }
     catch
     {
         throw new Exception();
     }
 }
Beispiel #2
0
 public Foundation(string ProductName, string Brand, PriceCategory PriceCategoryOfProduct, Color Color, SkinType TypeOfSkin, TypeOfFinish Finish, GradeOfCoverage Coverage, bool isSPF) :
     base(ProductName, Brand, PriceCategoryOfProduct, Color, TypeOfSkin, Finish)
 {
     this.isSPF    = isSPF;
     this.Coverage = Coverage;
 }
Beispiel #3
0
 public LipGloss(string ProductName, string Brand, PriceCategory PriceCategoryOfProduct, Color Color, string Aromatizer,
                 GradeOfCoverage Coverage, bool isShimmer) : base(ProductName, Brand, PriceCategoryOfProduct, Color, Aromatizer)
 {
     this.isShimmer = isShimmer;
     this.Coverage  = Coverage;
 }