C# Class RockWeb.Blocks.Cms.ContentChannelDetail

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

Private Properties

Property Type Description
AddAttributeControls void
BindChildContentChannelsGrid void
BindItemAttributesGrid void
GetContentChannel ContentChannel
HideDialog void
LoadDropdowns void
SaveAttributes void
SetEditMode void
SetHeadingInfo void
ShowDialog void
ShowDialog void
ShowReadonlyDetails void

Public Methods

Method Description
GetBreadCrumbs ( PageReference pageReference ) : List

Gets the bread crumbs.

ShowDetail ( int contentChannelId ) : 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.

ShowEditDetails ( ContentChannel contentChannel ) : void

Shows the edit details.

ddlChannelType_SelectedIndexChanged ( object sender, EventArgs e ) : void

Handles the SelectedIndexChanged event of the ddlChannelType control.

ddlContentControlType_SelectedIndexChanged ( object sender, EventArgs e ) : void

Handles the SelectedIndexChanged event of the ddlContentControlType control.

dlgChildContentChannel_SaveClick ( object sender, EventArgs e ) : void

Handles the SaveClick event of the dlgChildContentChannel control.

dlgItemAttributes_SaveClick ( object sender, EventArgs e ) : void

Handles the SaveClick event of the dlgItemAttributes control.

gChildContentChannels_Add ( object sender, EventArgs e ) : void

Handles the Add event of the gChildContentChannels control.

gChildContentChannels_Delete ( object sender, RowEventArgs e ) : void

Handles the Delete event of the gChildContentChannels control.

gChildContentChannels_GridRebind ( object sender, EventArgs e ) : void

Handles the GridRebind event of the gChildContentChannels control.

gItemAttributes_Add ( object sender, EventArgs e ) : void

Handles the Add event of the gItemAttributes control.

gItemAttributes_Delete ( object sender, RowEventArgs e ) : void

Handles the Delete event of the gItemAttributes control.

gItemAttributes_Edit ( object sender, RowEventArgs e ) : void

Handles the Edit event of the gItemAttributes control.

gItemAttributes_GridRebind ( object sender, EventArgs e ) : void

Handles the GridRebind event of the gItemAttributes control.

gItemAttributes_GridReorder ( object sender, Rock.Web.UI.Controls.GridReorderEventArgs e ) : void

Handles the GridReorder event of the gItemAttributes control.

gItemAttributes_ShowEdit ( System.Guid attributeGuid ) : void

Gs the marketing campaign ad attribute type_ show edit.

lbCancel_Click ( object sender, EventArgs e ) : void

Handles the Click event of the lbCancel control.

lbEdit_Click ( object sender, EventArgs e ) : void

Handles the 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
AddAttributeControls ( ContentChannel contentChannel ) : void

Adds the attribute controls.

BindChildContentChannelsGrid ( ) : void

Binds the child content channels grid.

BindItemAttributesGrid ( ) : void

Binds the marketing campaign ad attribute type grid.

GetContentChannel ( int contentChannelId, RockContext rockContext = null ) : ContentChannel

Gets the type of the content.

HideDialog ( ) : void

Hides the dialog.

LoadDropdowns ( ) : void

Loads the dropdowns.

SaveAttributes ( int channelId, int entityTypeId, List attributes, RockContext rockContext ) : void

Saves the attributes.

SetEditMode ( bool editable ) : void

Sets the edit mode.

SetHeadingInfo ( ContentChannel contentChannel, string title ) : void

Sets the heading information.

ShowDialog ( bool setValues = false ) : void

Shows the dialog.

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

Shows the dialog.

ShowReadonlyDetails ( ContentChannel contentChannel ) : void

Shows the readonly details.

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

Gets the bread crumbs.
public GetBreadCrumbs ( PageReference pageReference ) : List
pageReference PageReference The page reference.
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 contentChannelId ) : void
contentChannelId int The marketing campaign ad type identifier.
return void

ShowEditDetails() protected method

Shows the edit details.
protected ShowEditDetails ( ContentChannel contentChannel ) : void
contentChannel ContentChannel Type of the content.
return void

ddlChannelType_SelectedIndexChanged() protected method

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

ddlContentControlType_SelectedIndexChanged() protected method

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

dlgChildContentChannel_SaveClick() protected method

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

dlgItemAttributes_SaveClick() protected method

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

gChildContentChannels_Add() protected method

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

gChildContentChannels_Delete() protected method

Handles the Delete event of the gChildContentChannels control.
protected gChildContentChannels_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

gChildContentChannels_GridRebind() protected method

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

gItemAttributes_Add() protected method

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

gItemAttributes_Delete() protected method

Handles the Delete event of the gItemAttributes control.
protected gItemAttributes_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

gItemAttributes_Edit() protected method

Handles the Edit event of the gItemAttributes control.
protected gItemAttributes_Edit ( 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

gItemAttributes_GridRebind() protected method

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

gItemAttributes_GridReorder() protected method

Handles the GridReorder event of the gItemAttributes control.
protected gItemAttributes_GridReorder ( object sender, Rock.Web.UI.Controls.GridReorderEventArgs e ) : void
sender object The source of the event.
e Rock.Web.UI.Controls.GridReorderEventArgs The instance containing the event data.
return void

gItemAttributes_ShowEdit() protected method

Gs the marketing campaign ad attribute type_ show edit.
protected gItemAttributes_ShowEdit ( System.Guid attributeGuid ) : void
attributeGuid System.Guid
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 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