C# 클래스 _3PA.ThemeManager

파일 보기 프로젝트 열기: jcaillon/3P

공개 메소드들

메소드 설명
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