public override void Save(object param)
 {
     PartWarehouseGroupDataService.AttachModel(_model);
     _model = PartWarehouseGroupDataService.GetSingle(_model.Id); OnPropertyChanged("ModifiedBy");OnPropertyChanged("ModifiedDate");Mode = ModificationStatus.Saved;
 }
Beispiel #2
0
     private void FixupPartWarehouseGroup(PartWarehouseGroup previousValue)
     {
         if (previousValue != null && previousValue.PartWarehouses.Contains(this))
         {
             previousValue.PartWarehouses.Remove(this);
         }
 
         if (PartWarehouseGroup != null)
         {
             if (!PartWarehouseGroup.PartWarehouses.Contains(this))
             {
                 PartWarehouseGroup.PartWarehouses.Add(this);
             }
         }
     }
 /// <summary>
 /// Initializes a new instance of the <see cref="PartWarehouseVM"/> class from the model.
 /// </summary>
 /// <param name="entity">The model.</param>
 /// <param name="access"></param>
 /// <param name="dataService"></param>
 public PartWarehouseGroupVM(PartWarehouseGroup entity, AccessType access, PartWarehouseGroupDataService dataService)
     : base(access)
 {
     InitializeData(dataService);
     _model = entity;
 }