System.Web.UI.WebControls.Calendar.GetNextPrevFormatText C# (CSharp) Méthode

GetNextPrevFormatText() private méthode

private GetNextPrevFormatText ( System.DateTime date, bool next ) : string
date System.DateTime
next bool
Résultat 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;
		}