public static void AddLabels(ASPxSchedulerStorage storage) { AppointmentLabelCollection lc = storage.Appointments.Labels; lc.Clear(); lc.Add(Color.LightGreen, "Vacation", "&Vacation"); lc.Add(Color.Lavender, "Time Off", "Time &Off"); lc.Add(Color.AntiqueWhite, "Business", "&Business"); }
void InitializeLabelsAndStutuses() { Labels = new AppointmentLabelCollection(); int count = IssueList.Length; for (int i = 0; i < count; i++) { AppointmentLabel label = Labels.CreateNewLabel(i, IssueList[i]); label.SetColor(IssueColorList[i]); Labels.Add(label); } Statuses = new AppointmentStatusCollection(); count = PaymentStatuses.Length; for (int i = 0; i < count; i++) { IAppointmentStatus status = Statuses.CreateNewStatus(PaymentStatuses[i], string.Empty); status.Type = AppointmentStatusType.Custom; status.SetBrush(new SolidColorBrush(PaymentColorStatuses[i])); Statuses.Add(status); } }