ClassWorkTimeExceptionRule
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.Scheduler.dll
Syntax:
public class WorkTimeExceptionRule : INotifyPropertyChanged, INotifyPropertyChangingEx
Inheritance: objectWorkTimeExceptionRule
Implements:
Constructors
WorkTimeExceptionRule()
Declaration
public WorkTimeExceptionRule()
Properties
EndTime
The time of day until which the rule is applied.
ExceptionEndDate
The date after which the rule does not apply. If left null, there is no end limit for the rule.
Declaration
public DateTime? ExceptionEndDate { get; set; }
Property Value
ExceptionStartDate
The date after which the rule applies. If left null, there is no start limit for the rule.
Declaration
public DateTime? ExceptionStartDate { get; set; }
Property Value
IsWorkTime
Indicates whether the time interval described by the rule is considered a working time or non-working time.
ResourceId
The id of the resource this rule stands for. If left null, the rull will stand for all resources.
StartTime
The time of day after which the rule starts applying.
Methods
OnPropertyChanged(string)
Declaration
protected virtual void OnPropertyChanged(string propertyName)
Parameters
propertyName
TryMatchDate(DateTime, EventId, out bool)
Tries to match a given date against the rule. If the date matches, the isWorkTime argument is assigned with the IsWorkTime property of the rule and the method returns true. If the date does not match the rule, the method returns false.
Declaration
public virtual bool TryMatchDate(DateTime date, EventId resourceId, out bool isWorkTime)
Parameters
date
The date you try to match.
resourceId
The resource id of the view you are checking the date for.
isWorkTime
If matching succeds, the this will be assigned with the IsWorkTime property of the rule.
Returns
Events
PropertyChanged
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Value
Implements