string GetNextPrevFormatText (DateTime date, bool next)
{
string text;
DateTimeFormatInfo dti = DateInfo;
switch (NextPrevFormat) {
case NextPrevFormat.FullMonth:
text = dti.GetMonthName (GetGlobalCalendar ().GetMonth (date));
break;
case NextPrevFormat.ShortMonth:
text = dti.GetAbbreviatedMonthName (GetGlobalCalendar ().GetMonth (date));
break;
case NextPrevFormat.CustomText:
default:
text = ((next) ? NextMonthText : PrevMonthText);
break;
}
return text;
}