C# Class BrandingAddinWeb.Default

Inheritance: System.Web.UI.Page
Show file Open project: Inmeta/aspc2016

Protected Properties

Property Type Description
ScriptManager1 global::System.Web.UI.ScriptManager
btnDeployTheme global::System.Web.UI.WebControls.Button
btnSetThemeForHost global::System.Web.UI.WebControls.Button
drpThemes global::System.Web.UI.WebControls.DropDownList
form1 global::System.Web.UI.HtmlControls.HtmlForm
lblStatus1 global::System.Web.UI.WebControls.Label
lblStatus2 global::System.Web.UI.WebControls.Label

Public Methods

Method Description
DeployContosoThemeToWeb ( Web web, string themeName, string colorFilePath, string fontFilePath, string backgroundImagePath, string masterPageName ) : void
SetThemeBasedOnName ( Web web, string themeName ) : void

Protected Methods

Method Description
Page_Load ( object sender, EventArgs e ) : void
Page_PreInit ( object sender, EventArgs e ) : void
btnDeployTheme_Click ( object sender, EventArgs e ) : void
btnSetThemeForHost_Click ( object sender, EventArgs e ) : void

Private Methods

Method Description
AddNewThemeOptionToSite ( Web web, string themeName, string colorFilePath, string fontFilePath, string backGroundPath, string masterPageName ) : void
DeployFileToThemeFolderSite ( Web web, string sourceAddress ) : void
MakeAsRelativeUrl ( string urlToProcess ) : string
ThemeEntryExists ( Web web, List themeList, string themeName ) : bool
URLCombine ( string baseUrl, string relativeUrl ) : string

Method Details

DeployContosoThemeToWeb() public method

public DeployContosoThemeToWeb ( Web web, string themeName, string colorFilePath, string fontFilePath, string backgroundImagePath, string masterPageName ) : void
web Web
themeName string
colorFilePath string
fontFilePath string
backgroundImagePath string
masterPageName string
return void

Page_Load() protected method

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

Page_PreInit() protected method

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

SetThemeBasedOnName() public method

public SetThemeBasedOnName ( Web web, string themeName ) : void
web Web
themeName string
return void

btnDeployTheme_Click() protected method

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

btnSetThemeForHost_Click() protected method

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

Property Details

ScriptManager1 protected property

ScriptManager1 control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.ScriptManager ScriptManager1
return global::System.Web.UI.ScriptManager

btnDeployTheme protected property

btnDeployTheme control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Button btnDeployTheme
return global::System.Web.UI.WebControls.Button

btnSetThemeForHost protected property

btnSetThemeForHost control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Button btnSetThemeForHost
return global::System.Web.UI.WebControls.Button

drpThemes protected property

drpThemes control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.DropDownList drpThemes
return global::System.Web.UI.WebControls.DropDownList

form1 protected property

form1 control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.HtmlControls.HtmlForm form1
return global::System.Web.UI.HtmlControls.HtmlForm

lblStatus1 protected property

lblStatus1 control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Label lblStatus1
return global::System.Web.UI.WebControls.Label

lblStatus2 protected property

lblStatus2 control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Label lblStatus2
return global::System.Web.UI.WebControls.Label