C# Class RockWeb.Blocks.Prayer.PrayerCommentDetail

Inheritance: Rock.Web.UI.RockBlock, IDetailBlock
Show file Open project: CentralAZ/Rockit-CentralAZ

Public Methods

Method Description
ShowDetail ( string itemKey, int itemKeyValue ) : void

Shows the detail.

Protected Methods

Method Description
OnInit ( EventArgs e ) : void

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

OnLoad ( EventArgs e ) : void

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

lbAddNote_Click ( object sender, EventArgs e ) : void

Handles the Click event of the lbAddNote control.

lbCancel_Click ( object sender, EventArgs e ) : void

Handles the Click event of the lbCancel control.

lbEdit_Click ( object sender, EventArgs e ) : void

Handles the edit Click event of the lbEdit control.

lbSave_Click ( object sender, EventArgs e ) : void

Handles the Click event of the lbSave control.

Private Methods

Method Description
AddNoteHtml ( Note note ) : void

Adds the note HTML in the form:

Name/Caption relative date

text

GetNoteType ( ) : void

Gets the type of the note.

RegisterScripts ( ) : void

Registers the scripts.

SaveNote ( ) : void

Saves the note.

SetEditMode ( bool enableEdit ) : void

Sets the edit mode.

ShowEditDetails ( Note prayerComment ) : void

Shows the edit details.

ShowNotes ( ) : void

Shows the notes.

ShowReadonlyDetails ( PrayerRequest prayerRequest ) : void

Shows the readonly details.

Method Details

OnInit() protected method

Handles 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

Handles 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

ShowDetail() public method

Shows the detail.
public ShowDetail ( string itemKey, int itemKeyValue ) : void
itemKey string The item key.
itemKeyValue int The item key value.
return void

lbAddNote_Click() protected method

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

lbCancel_Click() protected method

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

lbEdit_Click() protected method

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

lbSave_Click() protected method

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