public override void CloneFrom(object source)
{
var obj = source as ShoppingItem;
if (obj != null)
{
this.ID = obj.ID;
this.CategoryID = obj.CategoryID;
this.ShoppingItemName = obj.ShoppingItemName;
this.Quantity = obj.Quantity;
this.IsPurchased = obj.IsPurchased;
this.PurchasedProduct = obj.PurchasedProduct;
this.PurchaseLocation = obj.PurchaseLocation;
this.PurchasePrice = obj.PurchasePrice;
}
}
}