コード例 #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;
 }