Skip to content

Instantly share code, notes, and snippets.

@jfromaniello
Created January 21, 2011 15:54
Show Gist options
  • Save jfromaniello/789875 to your computer and use it in GitHub Desktop.
Save jfromaniello/789875 to your computer and use it in GitHub Desktop.
public override Shipment_Item Shipment_Item
{
get
{
return base.Shipment_Item;
}
set
{
if (base.Shipment_Item == value) return;
if (base.Shipment_Item != null && base.Shipment_Item.ItemPayments.Contains(this))
{
base.Shipment_Item.RemoveItemPayment(this);
}
base.Shipment_Item = value;
if(value != null && !value.ItemPayments.Contains(this))
{
value.AddItemPayment(this);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment