public void AddStaffIncentiveLine(staffincentiveline SIL) { SIL.staffincentive = this._StaffIncentive; _StaffIncentive.staffincentiveline.Add(SIL); StaffIncentiveLines.Add(new StaffIncentiveLineHelperObject(SIL, this)); //OnPropertyChanged("StaffIncentiveLine"); if (CollectionChanged != null) { CollectionChanged.Invoke(); } }
public StaffIncentiveLineHelperObject(staffincentiveline input, StaffIncentiveHelperObject parent) { this._StaffIncentiveLine = input; this.Parent = parent; }