by viblend
31. August 2009 12:00
Sometimes we need to mark a special day such as a business meeting, birthday, etc. on our calendar. You can do this very easily using SuperMonthCalendar. Just create a new instance of the SuperAppointment class and add it to the Appointments collection of SuperMonthCalendar.
SuperAppointment appointment = new SuperAppointment();
appointment.Date = DateTime.Now.Date.AddDays(1);
this.superMonthCalendar1.Appointments.Add(appointment);
this.superMonthCalendar1.CurrentDate = DateTime.Now.Date;
You can also add a recurrence pattern to the appointment using the RecurrenceRule property. Here we specify that our appointment has a daily recurrence pattern and It should appear once for a three days.
appointment.RecurrenceRule = RecurrenceRule.Daily;
appointment.DayPattern.DaysToNextOccurence = 3;
You can assign a SuperTooltip control to an appointment using its SuperToolTip property.
SuperToolTip toolTip = new SuperToolTip();
appointment.SuperToolTip = toolTip;
We hope you will enjoy using VIBlend SuperMonthCalendar.