예제 #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
파일: Staff.cs 프로젝트: divyang4481/REM
        /// <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
파일: Staff.cs 프로젝트: divyang4481/REM
 /// <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);
 }