Exemple #1
0
        /// <summary>
        /// Staffs the changed event handler.
        /// </summary>
        /// <param name="obj">The <see cref="Rem.Ria.AgencyModule.StaffChangedEventArgs"/> instance containing the event data.</param>
        public void StaffChangedEventHandler(StaffChangedEventArgs obj)
        {
            var requestDispatcher = _asyncRequestDispatcherFactory.CreateAsyncRequestDispatcher();

            requestDispatcher.Add(new GetDtoRequest <StaffSummaryDto> {
                Key = obj.StaffKey
            });
            requestDispatcher.ProcessRequests(HandleInitializationCompleted, HandleInitializationException);
        }
 /// <summary>
 /// Raises the <see cref="E:StaffChanged"/> event.
 /// </summary>
 /// <param name="staffChangedEventArgs">The <see cref="Rem.Ria.AgencyModule.StaffChangedEventArgs"/> instance containing the event data.</param>
 public void OnStaffChanged( StaffChangedEventArgs staffChangedEventArgs )
 {
     UpdateLocationAssignments ();
 }
Exemple #3
0
 /// <summary>
 /// Filters the staff changed events.
 /// </summary>
 /// <param name="obj">The <see cref="Rem.Ria.AgencyModule.StaffChangedEventArgs"/> instance containing the event data.</param>
 /// <returns>A <see cref="System.Boolean"/></returns>
 public bool FilterStaffChangedEvents(StaffChangedEventArgs obj)
 {
     return(_staffDto != null && _staffDto.Key == obj.StaffKey);
 }
 /// <summary>
 /// Filters the staff changed.
 /// </summary>
 /// <param name="staffChangedEventArgs">The <see cref="Rem.Ria.AgencyModule.StaffChangedEventArgs"/> instance containing the event data.</param>
 /// <returns>A <see cref="System.Boolean"/></returns>
 public bool FilterStaffChanged( StaffChangedEventArgs staffChangedEventArgs )
 {
     return CurrentUserContext.Staff.Key == staffChangedEventArgs.StaffKey;
 }
 /// <summary>
 /// Staffs the changed event handler.
 /// </summary>
 /// <param name="obj">The <see cref="Rem.Ria.AgencyModule.StaffChangedEventArgs"/> instance containing the event data.</param>
 public void StaffChangedEventHandler( StaffChangedEventArgs obj )
 {
     var requestDispatcher = _asyncRequestDispatcherFactory.CreateAsyncRequestDispatcher ();
     requestDispatcher.Add ( new GetDtoRequest<StaffSummaryDto> { Key = obj.StaffKey } );
     requestDispatcher.ProcessRequests ( HandleInitializationCompleted, HandleInitializationException );
 }
 /// <summary>
 /// Filters the staff changed events.
 /// </summary>
 /// <param name="obj">The <see cref="Rem.Ria.AgencyModule.StaffChangedEventArgs"/> instance containing the event data.</param>
 /// <returns>A <see cref="System.Boolean"/></returns>
 public bool FilterStaffChangedEvents( StaffChangedEventArgs obj )
 {
     return _staffDto != null && _staffDto.Key == obj.StaffKey;
 }
 /// <summary>
 /// Raises the <see cref="E:StaffChanged"/> event.
 /// </summary>
 /// <param name="staffChangedEventArgs">The <see cref="Rem.Ria.AgencyModule.StaffChangedEventArgs"/> instance containing the event data.</param>
 public void OnStaffChanged(StaffChangedEventArgs staffChangedEventArgs)
 {
     UpdateLocationAssignments();
 }
 /// <summary>
 /// Filters the staff changed.
 /// </summary>
 /// <param name="staffChangedEventArgs">The <see cref="Rem.Ria.AgencyModule.StaffChangedEventArgs"/> instance containing the event data.</param>
 /// <returns>A <see cref="System.Boolean"/></returns>
 public bool FilterStaffChanged(StaffChangedEventArgs staffChangedEventArgs)
 {
     return(CurrentUserContext.Staff.Key == staffChangedEventArgs.StaffKey);
 }