/// <summary> /// Add event. /// </summary> /// <param name="staffEvent"> /// The staff event. /// </param> protected internal virtual void AddEvent(StaffEvent staffEvent) { staffEvent.Staff = this; _staffEvents.Add(staffEvent); NotifyItemAdded(() => StaffEvents, staffEvent); }
/// <summary> /// Add event. /// </summary> /// <param name="staffEvent"> /// The staff event. /// </param> protected internal virtual void AddEvent( StaffEvent staffEvent ) { staffEvent.Staff = this; _staffEvents.Add ( staffEvent ); NotifyItemAdded ( () => StaffEvents, staffEvent ); }
/// <summary> /// Remove event. /// </summary> /// <param name="staffEvent"> /// The staff event. /// </param> public virtual void RemoveEvent( StaffEvent staffEvent ) { _staffEvents.Remove ( staffEvent ); NotifyItemRemoved ( () => StaffEvents, staffEvent ); }
/// <summary> /// Remove event. /// </summary> /// <param name="staffEvent"> /// The staff event. /// </param> public virtual void RemoveEvent(StaffEvent staffEvent) { _staffEvents.Remove(staffEvent); NotifyItemRemoved(() => StaffEvents, staffEvent); }