C# Class RockWeb.Blocks.Crm.PhotoUpload

Inheritance: Rock.Web.UI.RockBlock
Datei anzeigen Open project: NewPointe/Rockit

Protected Methods

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

Handles the BlockUpdated event of the control.

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.

imageEditor_FileSaved ( object sender, EventArgs e ) : void

Handles connecting the saved image file to the person Id specified in the CommandArgument control attribute.

rptPhotos_ItemDataBound ( object sender, System.Web.UI.WebControls.RepeaterItemEventArgs e ) : void

Handles adjusting the image editor control for each person bound to the list.

Private Methods

Method Description
AddOrUpdatePersonInPhotoRequestGroup ( Person person, RockContext rockContext ) : void

Add the person (if not already existing) to the Photo Request group and set status to Pending.

BindRepeater ( ) : void

Binds the person and their family (if the IncludeFamilyMembers block attribute is set to true) to the repeater which holds an image editor control for each person.

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

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

imageEditor_FileSaved() protected method

Handles connecting the saved image file to the person Id specified in the CommandArgument control attribute.
protected imageEditor_FileSaved ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
return void

rptPhotos_ItemDataBound() protected method

Handles adjusting the image editor control for each person bound to the list.
protected rptPhotos_ItemDataBound ( object sender, System.Web.UI.WebControls.RepeaterItemEventArgs e ) : void
sender object The source of the event.
e System.Web.UI.WebControls.RepeaterItemEventArgs The instance containing the event data.
return void