We set an appoinment with monthlyrecurrence rule.
Following is the sample code:
--------------------------------------------------------------------------------------------
Appoinment a = new Appoinment ()
a.Start = new DateTime (2010, 1, 20, 8, 0, 0);
a.End = a.Start.Add (new TimeSpan(0,0,30,0));
MonthlyRecurrence monthrule = new MonthlyRecurrenceRule();
monthrule.Start = new DateTime (2010, 2, 1);
monthrule.End = new DateTime (2010, 6, 1);
monthrule.WeekDays = WeekDays.Tuesday;
monthrule.WeekNumber = 1;
a.RecurrenceRule = monthrule;
Radscheduler1.Appoinments.Add(a);
-----------------------------------------------------------------------------------------------------------------------
We only see two appoinments showing up, the first Tuesday of February and March. But there are more than two months, By this rule, the appoinment is supposed to show up in February, March, April, May and June?
What do we miss here ?
Following is the sample code:
--------------------------------------------------------------------------------------------
Appoinment a = new Appoinment ()
a.Start = new DateTime (2010, 1, 20, 8, 0, 0);
a.End = a.Start.Add (new TimeSpan(0,0,30,0));
MonthlyRecurrence monthrule = new MonthlyRecurrenceRule();
monthrule.Start = new DateTime (2010, 2, 1);
monthrule.End = new DateTime (2010, 6, 1);
monthrule.WeekDays = WeekDays.Tuesday;
monthrule.WeekNumber = 1;
a.RecurrenceRule = monthrule;
Radscheduler1.Appoinments.Add(a);
-----------------------------------------------------------------------------------------------------------------------
We only see two appoinments showing up, the first Tuesday of February and March. But there are more than two months, By this rule, the appoinment is supposed to show up in February, March, April, May and June?
What do we miss here ?