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(); } }
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; }
public int Add(TypeOfPackage s) { throw new NotImplementedException(); }
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; }