C# Class Subtext.Web.UI.Controls.Calendar

Summary description for Calendar.
Inheritance: BaseControl
Exibir arquivo Open project: ayende/Subtext

Protected Properties

Property Type Description
_isUrlMonthMode bool
entryCal System.Web.UI.WebControls.Calendar

Protected Methods

Method Description
OnLoad ( EventArgs e ) : void

If the page is on a "day page" then have the calendar select the day the URL is on. Otherwise use the current day.

entryCal_DayRender ( object sender, System e ) : void

As each day is rendered in the calendar, put a link if an entry exists for that day.

entryCal_VisibleMonthChanged ( object sender, System e ) : void

Occurs when the user clicks on the next or previous month navigation controls on the title heading.

Private Methods

Method Description
ChooseSelectedDateFromUrl ( ) : System.DateTime

Chooses the selected date from the url.

IsSameDay ( System.DateTime date1, System.DateTime date2 ) : bool

Returns true if the two dates fall on the same day.

LoadMonthData ( ) : void

Load all entries for the selected month.

TryParseDateTime ( string dateString, System.DateTime &parsedDate ) : bool

Attemps to parse the specified string as a DateTime.

Method Details

OnLoad() protected method

If the page is on a "day page" then have the calendar select the day the URL is on. Otherwise use the current day.
protected OnLoad ( EventArgs e ) : void
e System.EventArgs
return void

entryCal_DayRender() protected method

As each day is rendered in the calendar, put a link if an entry exists for that day.
protected entryCal_DayRender ( object sender, System e ) : void
sender object
e System
return void

entryCal_VisibleMonthChanged() protected method

Occurs when the user clicks on the next or previous month navigation controls on the title heading.
protected entryCal_VisibleMonthChanged ( object sender, System e ) : void
sender object
e System
return void

Property Details

_isUrlMonthMode protected_oe property

protected bool _isUrlMonthMode
return bool

entryCal protected_oe property

protected System.Web.UI.WebControls.Calendar entryCal
return System.Web.UI.WebControls.Calendar