public void Read(IsWiXProduct Product) { _product = Product; Id = _product.Id; Codepage = _product.Codepage; Language = _product.Language; Manufacturer = _product.Manufacturer; Name = _product.Name; UpgradeCode = _product.UpgradeCode; Version = _product.Version; }
ProductModel LoadProduct() { ProductModel product = new ProductModel(); _iswixProduct = new IsWiXProduct(); product.Codepage = _iswixProduct.Codepage; product.Id = _iswixProduct.Id; product.Language = _iswixProduct.Language; product.Manufacturer = _iswixProduct.Manufacturer; product.Name = _iswixProduct.Name; product.UpgradeCode = _iswixProduct.UpgradeCode; product.Version = _iswixProduct.Version; product.PropertyChanged += Product_PropertyChanged; return(product); }