private GetNextPrevFormatText ( System.DateTime date, bool next ) : string | ||
date | System.DateTime | |
next | bool | |
Результат | string |
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;
}