C# Class Engage.Dnn.Events.Controls.RecurrenceEditor

Displays the possible types of recurrence available when editing an event.
Inheritance: ModuleBase
Show file Open project: EngageSoftware/Engage-Events

Private Properties

Property Type Description
FillDropDowns void
FillListControl void
GetRange RecurrenceRange
GetRecurrenceRule RecurrenceRule
InitializeRecurrenceFrequency void
LocalizeControl void
Page_Load void
RepeatFrequency_CheckedChanged void
SetRecurrenceFrequency void
SetRecurrencePattern void
SetRecurrenceRange void
SetRecurrenceRule void
SetupDailyRecurrence void
SetupMonthlyRecurrence void
SetupWeeklyRecurrence void
SetupYearlyRecurrence void

Public Methods

Method Description
GetDayMaskItems ( string resourceFile ) : System.Web.UI.WebControls.ListItem[]

Gets the list of possible day selections, from RecurrenceDay.

GetMonthItems ( ) : System.Web.UI.WebControls.ListItem[]

Gets the list of possible months selections, from RecurrenceMonth.

GetOrdinalItems ( string resourceFile ) : System.Web.UI.WebControls.ListItem[]

Gets the list of possible ordinal selections, for example, First, Second or Last. Based on RecurrencePattern.DayOrdinal.

Protected Methods

Method Description
OnInit ( EventArgs e ) : void

Raises the E:System.Web.UI.Control.Init event.

Private Methods

Method Description
FillDropDowns ( ) : void

Fills the drop downs on this control.

FillListControl ( ListControl listControl, System.Web.UI.WebControls.ListItem listItems ) : void

Fills a list with ListItems and localizes the list.

GetRange ( System.DateTime startDate, System.DateTime endDate ) : RecurrenceRange

Gets the recurrence range for this control.

GetRecurrenceRule ( System.DateTime startDate, System.DateTime endDate ) : RecurrenceRule

Gets the recurrence rule for this control instance.

InitializeRecurrenceFrequency ( ) : void

Clears the selection state of the recurrence frequency RadioButtons, so that it can be accurately reset.

LocalizeControl ( ) : void

Localizes this control's components that can't be localized easily in the markup. Specifically, the weekday checkboxes for weekly recurrence are localized.

Page_Load ( object sender, EventArgs e ) : void

Handles the Load event of the Page control.

RepeatFrequency_CheckedChanged ( object sender, EventArgs e ) : void

Handles the CheckedChanged event of the any of the RepeatFrequency controls.

SetRecurrenceFrequency ( ) : void

Sets the active control based on the current recurrence frequency.

SetRecurrencePattern ( RecurrencePattern pattern ) : void

Sets the pattern.

SetRecurrenceRange ( RecurrenceRange range ) : void

Sets the range.

SetRecurrenceRule ( RecurrenceRule rule ) : void

Sets the recurrence rule for this control instance.

SetupDailyRecurrence ( RecurrencePattern pattern ) : void

Sets up the controls in RecurrencePatternDailyView.

SetupMonthlyRecurrence ( RecurrencePattern pattern ) : void

Sets up the controls in RecurrencePatternMonthlyView.

SetupWeeklyRecurrence ( RecurrencePattern pattern ) : void

Sets up the controls in RecurrencePatternWeeklyView.

SetupYearlyRecurrence ( RecurrencePattern pattern ) : void

Sets up the controls in RecurrencePatternYearlyView.

Method Details

GetDayMaskItems() public static method

Gets the list of possible day selections, from RecurrenceDay.
public static GetDayMaskItems ( string resourceFile ) : System.Web.UI.WebControls.ListItem[]
resourceFile string The resource file to use to find get localized text.
return System.Web.UI.WebControls.ListItem[]

GetMonthItems() public static method

Gets the list of possible months selections, from RecurrenceMonth.
public static GetMonthItems ( ) : System.Web.UI.WebControls.ListItem[]
return System.Web.UI.WebControls.ListItem[]

GetOrdinalItems() public static method

Gets the list of possible ordinal selections, for example, First, Second or Last. Based on RecurrencePattern.DayOrdinal.
public static GetOrdinalItems ( string resourceFile ) : System.Web.UI.WebControls.ListItem[]
resourceFile string The resource file to use to find get localized text.
return System.Web.UI.WebControls.ListItem[]

OnInit() protected method

Raises the E:System.Web.UI.Control.Init event.
protected OnInit ( EventArgs e ) : void
e System.EventArgs An object that contains the event data.
return void