Class
WorkTimeExceptionRule

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.Scheduler.dll

Syntax:

cs-api-definition
public class WorkTimeExceptionRule : INotifyPropertyChanged, INotifyPropertyChangingEx

Inheritance: objectWorkTimeExceptionRule

Implements: INotifyPropertyChangedINotifyPropertyChangingEx

Constructors

WorkTimeExceptionRule()

Declaration

cs-api-definition
public WorkTimeExceptionRule()

Properties

EndTime

The time of day until which the rule is applied.

Declaration

cs-api-definition
public TimeSpan EndTime { get; set; }

Property Value

TimeSpan

ExceptionEndDate

The date after which the rule does not apply. If left null, there is no end limit for the rule.

Declaration

cs-api-definition
public DateTime? ExceptionEndDate { get; set; }

Property Value

DateTime?

ExceptionStartDate

The date after which the rule applies. If left null, there is no start limit for the rule.

Declaration

cs-api-definition
public DateTime? ExceptionStartDate { get; set; }

Property Value

DateTime?

IsWorkTime

Indicates whether the time interval described by the rule is considered a working time or non-working time.

Declaration

cs-api-definition
public bool IsWorkTime { get; set; }

Property Value

bool

ResourceId

The id of the resource this rule stands for. If left null, the rull will stand for all resources.

Declaration

cs-api-definition
public EventId ResourceId { get; set; }

Property Value

EventId

StartTime

The time of day after which the rule starts applying.

Declaration

cs-api-definition
public TimeSpan StartTime { get; set; }

Property Value

TimeSpan

WeekDays

The weekdays for which the rule applies. The default value is WeekDays.All. Days can be combined by using the WeekDays enum as flags.

Declaration

cs-api-definition
public WeekDays WeekDays { get; set; }

Property Value

WeekDays

Methods

OnPropertyChanged(string)

Declaration

cs-api-definition
protected virtual void OnPropertyChanged(string propertyName)

Parameters

propertyName

string

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

cs-api-definition
public virtual bool TryMatchDate(DateTime date, EventId resourceId, out bool isWorkTime)

Parameters

date

DateTime

The date you try to match.

resourceId

EventId

The resource id of the view you are checking the date for.

isWorkTime

bool

If matching succeds, the this will be assigned with the IsWorkTime property of the rule.

Returns

bool

Events

PropertyChanged

Declaration

cs-api-definition
public event PropertyChangedEventHandler PropertyChanged

Event Value

PropertyChangedEventHandler

Implements INotifyPropertyChanged.PropertyChanged