C# Class _3PA.ThemeManager

Mostrar archivo Open project: jcaillon/3P

Public Methods

Method Description
FormatContent ( string content ) : string

Returns a formmatted html content

FormatTitle ( MessageImg image, string title, string subtitle, bool forMessageBox = false ) : string

Returns a formmatted html message with a title, subtitle and icon

ImportList ( ) : void

Called when the list of themes is imported

OnStartUp ( ) : void
RefreshApplicationWithTheme ( Theme theme ) : void

force everything to redraw to apply a new theme

Private Methods

Method Description
OnCssNeeded ( ) : string

Called when the yamuiframework needs a css sheet

OnImageNeeded ( string imageToLoad ) : Image

Event called when the YamuiFramework requests the background image, Tries to find the image in the ressources of the assembly, otherwise look for a file in the Config/3P/Themes folder

Method Details

FormatContent() public static method

Returns a formmatted html content
public static FormatContent ( string content ) : string
content string
return string

FormatTitle() public static method

Returns a formmatted html message with a title, subtitle and icon
public static FormatTitle ( MessageImg image, string title, string subtitle, bool forMessageBox = false ) : string
image MessageImg
title string
subtitle string
forMessageBox bool
return string

ImportList() public static method

Called when the list of themes is imported
public static ImportList ( ) : void
return void

OnStartUp() public static method

public static OnStartUp ( ) : void
return void

RefreshApplicationWithTheme() public static method

force everything to redraw to apply a new theme
public static RefreshApplicationWithTheme ( Theme theme ) : void
theme Theme
return void