C# Class RockWeb.Blocks.Event.EventItemDetail

Inheritance: Rock.Web.UI.RockBlock, IDetailBlock
Show file Open project: NewSpring/Rock

Public Properties

Property Type Description
_calendarId int?
_canApprove bool
_canEdit bool

Public Methods

Method Description
GetBreadCrumbs ( PageReference pageReference ) : List

Returns breadcrumbs specific to the block that should be added to navigation based on the current page reference. This function is called during the page's oninit to load any initial breadcrumbs.

ShowDetail ( int eventItemId ) : void

Shows the detail.

Protected Methods

Method Description
Block_BlockUpdated ( object sender, EventArgs e ) : void

Handles the BlockUpdated event of the control.

LoadViewState ( object savedState ) : void

Restores the view-state information from a previous user control request that was saved by the M:System.Web.UI.UserControl.SaveViewState method.

OnInit ( EventArgs e ) : void

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

OnLoad ( EventArgs e ) : void

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

SaveViewState ( ) : object

Saves any user control view-state changes that have occurred since the last page postback.

btnCancel_Click ( object sender, EventArgs e ) : void

Handles the Click event of the btnCancel control.

btnDelete_Click ( object sender, EventArgs e ) : void

Handles the Click event of the btnDelete control.

btnEdit_Click ( object sender, EventArgs e ) : void

Handles the Click event of the btnEdit control.

btnSaveAudience_Click ( object sender, EventArgs e ) : void

Handles the Click event of the btnSaveAudience control.

btnSave_Click ( object sender, EventArgs e ) : void

Handles the Click event of the btnSave control.

cblCalendars_SelectedIndexChanged ( object sender, EventArgs e ) : void

Handles the SelectedIndexChanged event of the cblCalendars control.

gAudiences_Delete ( object sender, RowEventArgs e ) : void

Handles the Delete event of the gAudiences control.

lbCalendarDetail_Click ( object sender, EventArgs e ) : void

Handles the Click event of the lbCalendarDetail control.

lbCalendarsDetail_Click ( object sender, EventArgs e ) : void

Handles the Click event of the lbCalendarsDetail control.

Private Methods

Method Description
BindAudienceGrid ( ) : void

Binds the audience grid.

GetEventItem ( int eventItemId, RockContext rockContext = null ) : EventItem

Gets the eventItem.

HideDialog ( ) : void

Hides the dialog.

SetEditMode ( bool editable ) : void

Sets the edit mode.

SetFollowingOnPostback ( int eventItemId ) : void

Sets the following on postback.

SetLabels ( EventItem eventItem ) : void
ShowDialog ( bool setValues = false ) : void

Shows the dialog.

ShowDialog ( string dialog, bool setValues = false ) : void

Shows the dialog.

ShowEditDetails ( EventItem eventItem ) : void

Shows the edit details.

ShowItemAttributes ( ) : void

Shows the item attributes.

ShowReadonlyDetails ( EventItem eventItem ) : void

Shows the readonly details.

gAudiences_Add ( object sender, EventArgs e ) : void

Handles the Add event of the gAudiences control.

gAudiences_GridRebind ( object sender, EventArgs e ) : void

Handles the GridRebind event of the gAudiences control.

Method Details

Block_BlockUpdated() protected method

Handles the BlockUpdated event of the control.
protected Block_BlockUpdated ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
return void

GetBreadCrumbs() public method

Returns breadcrumbs specific to the block that should be added to navigation based on the current page reference. This function is called during the page's oninit to load any initial breadcrumbs.
public GetBreadCrumbs ( PageReference pageReference ) : List
pageReference PageReference The .
return List

LoadViewState() protected method

Restores the view-state information from a previous user control request that was saved by the M:System.Web.UI.UserControl.SaveViewState method.
protected LoadViewState ( object savedState ) : void
savedState object An that represents the user control state to be restored.
return void

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

OnLoad() protected method

Raises the E:System.Web.UI.Control.Load event.
protected OnLoad ( EventArgs e ) : void
e System.EventArgs The object that contains the event data.
return void

SaveViewState() protected method

Saves any user control view-state changes that have occurred since the last page postback.
protected SaveViewState ( ) : object
return object

ShowDetail() public method

Shows the detail.
public ShowDetail ( int eventItemId ) : void
eventItemId int The eventItem identifier.
return void

btnCancel_Click() protected method

Handles the Click event of the btnCancel control.
protected btnCancel_Click ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
return void

btnDelete_Click() protected method

Handles the Click event of the btnDelete control.
protected btnDelete_Click ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
return void

btnEdit_Click() protected method

Handles the Click event of the btnEdit control.
protected btnEdit_Click ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
return void

btnSaveAudience_Click() protected method

Handles the Click event of the btnSaveAudience control.
protected btnSaveAudience_Click ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
return void

btnSave_Click() protected method

Handles the Click event of the btnSave control.
protected btnSave_Click ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
return void

cblCalendars_SelectedIndexChanged() protected method

Handles the SelectedIndexChanged event of the cblCalendars control.
protected cblCalendars_SelectedIndexChanged ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
return void

gAudiences_Delete() protected method

Handles the Delete event of the gAudiences control.
protected gAudiences_Delete ( object sender, RowEventArgs e ) : void
sender object The source of the event.
e Rock.Web.UI.Controls.RowEventArgs The instance containing the event data.
return void

lbCalendarDetail_Click() protected method

Handles the Click event of the lbCalendarDetail control.
protected lbCalendarDetail_Click ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
return void

lbCalendarsDetail_Click() protected method

Handles the Click event of the lbCalendarsDetail control.
protected lbCalendarsDetail_Click ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
return void

Property Details

_calendarId public property

public int? _calendarId
return int?

_canApprove public property

public bool _canApprove
return bool

_canEdit public property

public bool _canEdit
return bool