예제 #1
0
 public void AddVendor(PropertyCheckListVendorModel propertyVendorModel)
 {
     if (CurrentPropertyCheckList.VendorList == null)
     {
         CurrentPropertyCheckList.VendorList = new ObservableCollection <PropertyCheckListVendorModel>();
     }
     CurrentPropertyCheckList.VendorList.Add(propertyVendorModel);
 }
예제 #2
0
 private void UpdateVendorFromModel(PropertyCheckListVendor target, PropertyCheckListVendorModel source)
 {
     target.VendorId            = source.VendorId;
     target.VendorName          = source.VendorName;
     target.PropertyCheckListId = source.PropertyCheckListId;
     target.CheckListVendorId   = source.CheckListVendorId;
     target.IsPrimaryVendor     = source.IsPrimaryVendor;
     target.IsGroup             = source.IsGroup;
 }