The availability status lets everyone know if you will be available at the time when an appointment is scheduled. There are four predefined availability statuses available in Scheduler: Busy, Free, Out of Office, Tentative, and Working Elsewhere. The status is specified by the following colors:
Status |
Color |
Index |
---|---|---|
Busy |
0 |
|
Free |
1 |
|
Out of Office |
2 |
|
Tentative |
3 |
|
Working Elsewhere |
4 |
The status can be specified at runtime in the Appointment dialog box next to the Show time as drop-down list.
The color of the availability status is only visible in the OneDayStyle and WorkingWeekStyle views of a schedule. For appointments, the color appears in the area to the left of the appointment. Note that if you select the appointment, it will appear highlighted in the status color.
To set the availability status during an appointment, you can use BusyStatus property of the Appointment class and set its index (from the table given at towards the top of the topic) based on your requirements. For instance, the following code demonstrates how you can set "Busy" status for an appointment:
C# |
Copy Code
|
---|---|
//Showing Availability status appointment.BusyStatus = scheduler.DataStorage.StatusStorage.Statuses[0]; // adding 'Busy' status. |