Occurs when the print adapter retrieves the work time value for use in the report.
public event WorkTimeValidationEventHandler ValidateWorkTime
Public Event ValidateWorkTime As WorkTimeValidationEventHandler
The ValidateWorkTime event's data class is WorkTimeValidationEventArgs. The following properties provide information specific to this event:
|DateTimeRange||Provides access to a datetime range for which the work-time interval is validated.|
|Resource||Provides access to a resource for which the work-time interval is validated.|
|WorkTime||Gets or sets the work-time interval to be validated.|
|WorkTimes||Gets the list of work times specified for a single day.|
Handle the ValidateWorkTime event to check and modify the work time when the report is being built and the controls are rendered.
This event enables you to set a different work time for different days and resources. Check the WorkTimeValidationEventArgs.Resource and the WorkTimeValidationEventArgs.DateTimeRange, which identify the scope for which the work time is specified, and set the WorkTimeValidationEventArgs.WorkTime as required to accomplish the task.