C# Class RockWeb.Blocks.Core.DeviceDetail

Inheritance: Rock.Web.UI.RockBlock, IDetailBlock
Exibir arquivo Open project: NewSpring/Rock

Private Properties

Property Type Description
BindLocations void
LoadDropDowns void
SetPrinterSettingsVisibility void
SetPrinterVisibility void
VerifyUniqueIpAddress bool

Public Methods

Method Description
ShowDetail ( int DeviceId ) : void

Shows the edit.

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.

btnAddLocation_Click ( object sender, EventArgs e ) : void
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.

cvIpAddress_ServerValidate ( object source, System.Web.UI.WebControls.ServerValidateEventArgs args ) : void

Handles the ServerValidate event of the cvIpAddress control.

ddlDeviceType_SelectedIndexChanged ( object sender, EventArgs e ) : void

Handles when the device type selection is changed.

ddlPrintTo_SelectedIndexChanged ( object sender, EventArgs e ) : void

Handles when the Print To selection is changed.

gLocations_AddClick ( object sender, EventArgs e ) : void
gLocations_Delete ( object sender, Rock e ) : void
gLocations_GridRebind ( object sender, EventArgs e ) : void

Private Methods

Method Description
BindLocations ( ) : void
LoadDropDowns ( ) : void

Loads the drop downs.

SetPrinterSettingsVisibility ( ) : void

Decide if the printer settings section should be hidden.

SetPrinterVisibility ( ) : void

Decide if the printer drop down list should be hidden.

VerifyUniqueIpAddress ( ) : bool

Verifies the ip address is unique.

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

ShowDetail() public method

Shows the edit.
public ShowDetail ( int DeviceId ) : void
DeviceId int The device identifier.
return void

btnAddLocation_Click() protected method

protected btnAddLocation_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
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

cvIpAddress_ServerValidate() protected method

Handles the ServerValidate event of the cvIpAddress control.
protected cvIpAddress_ServerValidate ( object source, System.Web.UI.WebControls.ServerValidateEventArgs args ) : void
source object The source of the event.
args System.Web.UI.WebControls.ServerValidateEventArgs The instance containing the event data.
return void

ddlDeviceType_SelectedIndexChanged() protected method

Handles when the device type selection is changed.
protected ddlDeviceType_SelectedIndexChanged ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
return void

ddlPrintTo_SelectedIndexChanged() protected method

Handles when the Print To selection is changed.
protected ddlPrintTo_SelectedIndexChanged ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
return void

gLocations_AddClick() protected method

protected gLocations_AddClick ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

gLocations_Delete() protected method

protected gLocations_Delete ( object sender, Rock e ) : void
sender object
e Rock
return void

gLocations_GridRebind() protected method

protected gLocations_GridRebind ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void