public PurchaseEditor(int partyid, int employee) { this.employee = employee; InitializeComponent(); purchase = new Data.Purchase(); InitializeFields(); purchase.Customer.PartyId = partyid; itemselector = new Controls.ItemSelector(); ItemsContentControl.Content = itemselector; itemselector.itemsupdated += new Shell.Controls.ItemSelector.ItemsUpdated(itemselector_itemsupdated); }