RecurrenceRule
parsedRule;
if (parsedRule != null)
{
String strType = parsedRule.Pattern.Frequency.ToString();
switch (strType)
{
case "Hourly":
{
String strInterval = parsedRule.Pattern.Interval.ToString();
txtHourly.Text = strInterval;
if (!rbHourly.Checked && !rbDaily.Checked && !rbWeekly.Checked && !rbMonthly.Checked && !rbYearly.Checked)
{
Recurrence_HidePanels();
rbHourly.Checked = true;
pnlHourly.Visible = true;
}
break;
}
case
"Daily":
{
String strInterval = parsedRule.Pattern.Interval.ToString();
RecurrenceDay rDays = new RecurrenceDay();
rDays = parsedRule.Pattern.DaysOfWeekMask;
if (!rbHourly.Checked && !rbDaily.Checked && !rbWeekly.Checked && !rbMonthly.Checked && !rbYearly.Checked)
{
Recurrence_HidePanels();
rbDaily.Checked = true;
pnlDaily.Visible = true;
if (rDays == RecurrenceDay.WeekDays)
{
rbDaily_Weekday.Checked = true;
rbDaily_Days.Checked = false;
}
else
{
rbDaily_Days.Checked = true;
rbDaily_Weekday.Checked = false;
txtDaily_Days.Text = strInterval;
}
}
break;
}
}
In the same way I want the code for 'Monthly' and 'Yearly'. Please do send me the code. Thanks