private void UpdateVendor(EditableVendor source, Vendor target) { target.Name = source.Name; target.Category = source.Category; target.TransactionKey = source.TransactionKey; target.TransactionCount = source.TransactionCount; }
public void SetVendor(Vendor vendor) { _editingVendor = vendor; if (Vendor != null) { Vendor.ErrorsChanged -= RaiseCanExecuteChanged; } Vendor = new EditableVendor(_editingVendor.Id); Vendor.ErrorsChanged += RaiseCanExecuteChanged; CopyVendor(vendor, Vendor); }
private void CopyVendor(Vendor source, EditableVendor target) { target.Name = source.Name; target.Category = source.Category; target.TransactionKey = source.TransactionKey; }