private void UpdateItem(SimpleEditableItem source, Item target) { target.CompanyName = source.CompanyName; target.ItemName = source.ItemName; target.ItemType = source.ItemType; target.MaterialType = source.MaterialType; target.ThirdPartyItemCode = source.ThirdPartyItemCode; target.ItemPrice = source.ItemPrice; }
private void CopyItem(Item source, SimpleEditableItem target) { target.ItemId = source.ItemId; if (EditMode) { target.CompanyName = source.CompanyName; target.ItemName = source.ItemName; target.ItemType = source.ItemType; target.MaterialType = source.MaterialType; target.ThirdPartyItemCode = source.ThirdPartyItemCode; target.ItemPrice = source.ItemPrice; } }
public void SetItem(Item item) { _editingItem = item; Item = new SimpleEditableItem(this.CommandHandler); CopyItem(item, Item); }