C# Class RockWeb.Blocks.Prayer.PrayerRequestEntry

Inheritance: Rock.Web.UI.RockBlock
Show file Open project: NewPointe/Rockit

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.

btnAddAnother_Click ( object sender, EventArgs e ) : void

Set up the form for another request from the same person.

btnSave_Click ( object sender, EventArgs e ) : void

Handles the Click event to save the prayer request.

Private Methods

Method Description
BindCategories ( string categoryGuid ) : void

Bind the category selector to the correct set of categories.

IsValid ( ) : bool

Returns true if the form is valid; false otherwise.

StartWorkflow ( PrayerRequest prayerRequest, RockContext rockContext ) : void

Starts the workflow if one was defined in the block setting.

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

btnAddAnother_Click() protected method

Set up the form for another request from the same person.
protected btnAddAnother_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 to save the prayer request.
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