private void FixupActionPlan(ActionPlan previousValue) { if (previousValue != null && previousValue.FishboneNode_ActionPlan.Contains(this)) { previousValue.FishboneNode_ActionPlan.Remove(this); } if (ActionPlan != null) { if (!ActionPlan.FishboneNode_ActionPlan.Contains(this)) { ActionPlan.FishboneNode_ActionPlan.Add(this); } } }
private void FixupActionPlan(ActionPlan previousValue) { if (previousValue != null && previousValue.DefectionReports.Contains(this)) { previousValue.DefectionReports.Remove(this); } if (ActionPlan != null) { if (!ActionPlan.DefectionReports.Contains(this)) { ActionPlan.DefectionReports.Add(this); } } }
/// <summary> /// Initializes a new instance of the <see cref="ProductVM"/> class from the model. /// </summary> /// <param name="entity">The model.</param> /// <param name="access"></param> /// <param name="dataService"></param> public ActionPlanVM(ActionPlan entity, AccessType access, ActionPlanDataService dataService) : base(access) { InitializeData(dataService); _model = entity; }
public override void Save(object param) { ActionPlanDataService.AttachModel(_model); _model = ActionPlanDataService.GetSingle(_model.Id); OnPropertyChanged("ModifiedBy");OnPropertyChanged("ModifiedDate");Mode = ModificationStatus.Saved; }