C# Класс _3PA.ThemeManager

Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

FormatContent() публичный статический Метод

Returns a formmatted html content
public static FormatContent ( string content ) : string
content string
Результат string

FormatTitle() публичный статический Метод

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
Результат string

ImportList() публичный статический Метод

Called when the list of themes is imported
public static ImportList ( ) : void
Результат void

OnStartUp() публичный статический Метод

public static OnStartUp ( ) : void
Результат void

RefreshApplicationWithTheme() публичный статический Метод

force everything to redraw to apply a new theme
public static RefreshApplicationWithTheme ( Theme theme ) : void
theme Theme
Результат void