Пример #1
0
        /// <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);
        }
Пример #2
0
        /// <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 );
        }
Пример #3
0
 /// <summary>
 /// Remove event.
 /// </summary>
 /// <param name="staffEvent">
 /// The staff event.
 /// </param>
 public virtual void RemoveEvent( StaffEvent staffEvent )
 {
     _staffEvents.Remove ( staffEvent );
     NotifyItemRemoved ( () => StaffEvents, staffEvent );
 }
Пример #4
0
 /// <summary>
 /// Remove event.
 /// </summary>
 /// <param name="staffEvent">
 /// The staff event.
 /// </param>
 public virtual void RemoveEvent(StaffEvent staffEvent)
 {
     _staffEvents.Remove(staffEvent);
     NotifyItemRemoved(() => StaffEvents, staffEvent);
 }