C# Class Rock.Web.UI.RockTheme

显示文件 Open project: NewSpring/Rock Class Usage Examples

Public Methods

Method Description
CleanThemeName ( string themeName ) : string

Cleans the name of the theme.

CloneTheme ( string sourceTheme, string targetTheme ) : bool

Clones the theme.

CloneTheme ( string sourceTheme, string targetTheme, string &messages ) : bool

Clones the theme.

Compile ( ) : bool

Compiles this instance.

Compile ( string &messages ) : bool

Compiles this instance.

CompileAll ( ) : bool

Compiles all themes.

CompileAll ( string &messages ) : bool

Compiles all themes.

DeleteTheme ( string themeName ) : bool

Deletes the theme.

DeleteTheme ( string themeName, string &messages ) : bool

Deletes the theme.

GetThemes ( ) : List

Gets the themes.

RockTheme ( ) : System

Initializes a new instance of the RockTheme class.

RockTheme ( string themeName ) : System

Initializes a new instance of the RockTheme class.

Private Methods

Method Description
CopyAll ( DirectoryInfo source, DirectoryInfo target ) : void

Copies all.

Method Details

CleanThemeName() public static method

Cleans the name of the theme.
public static CleanThemeName ( string themeName ) : string
themeName string Name of the theme.
return string

CloneTheme() public static method

Clones the theme.
public static CloneTheme ( string sourceTheme, string targetTheme ) : bool
sourceTheme string The source theme.
targetTheme string The target theme.
return bool

CloneTheme() public static method

Clones the theme.
public static CloneTheme ( string sourceTheme, string targetTheme, string &messages ) : bool
sourceTheme string
targetTheme string
messages string
return bool

Compile() public method

Compiles this instance.
public Compile ( ) : bool
return bool

Compile() public method

Compiles this instance.
public Compile ( string &messages ) : bool
messages string
return bool

CompileAll() public static method

Compiles all themes.
public static CompileAll ( ) : bool
return bool

CompileAll() public static method

Compiles all themes.
public static CompileAll ( string &messages ) : bool
messages string The messages.
return bool

DeleteTheme() public static method

Deletes the theme.
public static DeleteTheme ( string themeName ) : bool
themeName string Name of the theme.
return bool

DeleteTheme() public static method

Deletes the theme.
public static DeleteTheme ( string themeName, string &messages ) : bool
themeName string Name of the theme.
messages string The messages.
return bool

GetThemes() public static method

Gets the themes.
public static GetThemes ( ) : List
return List

RockTheme() public method

Initializes a new instance of the RockTheme class.
public RockTheme ( ) : System
return System

RockTheme() public method

Initializes a new instance of the RockTheme class.
public RockTheme ( string themeName ) : System
themeName string Name of the theme.
return System