Defines whether a resource's date and time interval counts as working or non-working time.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.Scheduler.dll
Syntax:
public class WorkTimeExceptionRule : INotifyPropertyChanged, INotifyPropertyChangingEx
Inheritance: objectWorkTimeExceptionRule
Implements:
Constructors
Properties
The time of day until which the rule is applied.
public TimeSpan EndTime { get; set; }
The inclusive upper DateTime threshold for matching. If left null, there is no end limit.
public DateTime? ExceptionEndDate { get; set; }
The inclusive lower DateTime threshold for matching. If left null, there is no start limit.
public DateTime? ExceptionStartDate { get; set; }
Indicates whether the time interval described by the rule is considered a working time or non-working time.
public bool IsWorkTime { get; set; }
The id of the resource this rule stands for. If left null, the rull will stand for all resources.
public EventId ResourceId { get; set; }
The time of day after which the rule starts applying.
public TimeSpan StartTime { get; set; }
Methods
Raises PropertyChanged for a rule property that has changed.
protected virtual void OnPropertyChanged(string propertyName)
The name of the changed property.
Matches a date when its resource and weekday match and its full DateTime value falls within
the inclusive date thresholds and the time window.
The time window includes StartTime and excludes EndTime; it does not cross midnight.
On a match, isWorkTime receives IsWorkTime.
Events
Occurs when a rule property changes.
public event PropertyChangedEventHandler PropertyChanged
Implements: