C# Class RockWeb.Blocks.Follow.SuggestionDetail

Inheritance: Rock.Web.UI.RockBlock, IDetailBlock
Mostra file Open project: NewPointe/Rockit

Public Methods

Method Description
ShowDetail ( int eventId ) : void

Shows the detail.

Protected Methods

Method Description
LoadViewState ( object savedState ) : void
OnLoad ( EventArgs e ) : void

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

SaveViewState ( ) : object
btnCancel_Click ( object sender, EventArgs e ) : void

Handles the Click event of the btnCancel control.

btnSave_Click ( object sender, EventArgs e ) : void

Handles the Click event of the btnSave control.

cpSuggestionType_SelectedIndexChanged ( object sender, EventArgs e ) : void

Handles the SelectedIndexChanged event of the cpSuggestionType control.

Private Methods

Method Description
BuildDynamicControls ( FollowingSuggestionType followingSuggestion, bool SetValues ) : void
SetEditMode ( bool editable ) : void

Sets the edit mode.

ShowEditDetails ( FollowingSuggestionType followingSuggestion ) : void

Shows the edit details.

ShowReadonlyDetails ( FollowingSuggestionType followingSuggestion ) : void

Shows the readonly details.

Method Details

LoadViewState() protected method

protected LoadViewState ( object savedState ) : void
savedState object
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

protected SaveViewState ( ) : object
return object

ShowDetail() public method

Shows the detail.
public ShowDetail ( int eventId ) : void
eventId int The event 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

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

cpSuggestionType_SelectedIndexChanged() protected method

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