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