The following steps will walk you through setting up the calendar for a 10-hour day, four-day work week, including setting the start day time, end day time, the time scale, and week start properties. Complete the following to customize the calendar:
To write code in Visual Basic
Visual Basic |
Copy Code
|
---|---|
Me.C1Schedule1.CalendarInfo.StartDayTime = New TimeSpan(10, 0, 0) Me.C1Schedule1.CalendarInfo.EndDayTime = New TimeSpan(21, 0, 0) |
To write code in C#
C# |
Copy Code
|
---|---|
this.c1Schedule1.CalendarInfo.StartDayTime = new TimeSpan(10, 0, 0); this.c1Schedule1.CalendarInfo.EndDayTime = new TimeSpan(21, 0, 0); |
To write code in Visual Basic
Visual Basic |
Copy Code
|
---|---|
Me.C1Schedule1.CalendarInfo.TimeInterval = C1.C1Schedule.TimeScaleEnum.FifteenMinutes |
To write code in C#
C# |
Copy Code
|
---|---|
this.c1Schedule1.CalendarInfo.TimeInterval = C1.C1Schedule.TimeScaleEnum.FifteenMinutes; |
OR
To write code in Visual Basic
Visual Basic |
Copy Code
|
---|---|
Me.C1Schedule1.CalendarInfo.TimeScale = New TimeSpan(9000000000) |
To write code in C#
C# |
Copy Code
|
---|---|
this.c1Schedule1.CalendarInfo.TimeScale = new TimeSpan(9000000000); |
To write code in Visual Basic
Visual Basic |
Copy Code
|
---|---|
Me.C1Schedule1.CalendarInfo.WeekStart = DayOfWeek.Monday |
To write code in C#
C# |
Copy Code
|
---|---|
this.c1Schedule1.CalendarInfo.WeekStart = DayOfWeek.Monday; |
The scheduling application displays a 4-day work week when in the Work Week view.
Congratulations! You have successfully set the calendar settings for a 10-hour day, four-day work week. This concludes the Quick Start.