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(); } }
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; }