C# 클래스 Hourglass.Managers.ThemeManager

Manages themes.
상속: Hourglass.Managers.Manager
파일 보기 프로젝트 열기: Dziemborowicz/Hourglass

공개 프로퍼티들

프로퍼티 타입 설명
Instance ThemeManager

공개 메소드들

메소드 설명
Add ( Theme theme ) : void

Adds a theme.

AddRange ( IEnumerable collection ) : void

Adds the themes of the specified collection.

AddThemeBasedOnTheme ( Theme theme ) : Theme

Adds a theme based on another theme.

GetDarkVariantForTheme ( Theme theme ) : Theme

Returns the dark variant of a theme.

GetLightVariantForTheme ( Theme theme ) : Theme

Returns the light variant of a theme.

GetThemeByIdentifier ( string identifier ) : Theme

Returns the theme for the specified identifier, or null if no such theme is loaded.

GetThemeByName ( string name, System.StringComparison stringComparison = StringComparison.Ordinal ) : Theme

Returns the first theme for the specified name, or null if no such theme is loaded.

GetThemeOrDefaultByIdentifier ( string identifier ) : Theme

Returns the theme for the specified identifier, or DefaultTheme if no such theme is loaded.

GetThemeOrDefaultByName ( string name, System.StringComparison stringComparison = StringComparison.Ordinal ) : Theme

Returns the first theme for the specified name, or DefaultTheme if no such theme is loaded.

Initialize ( ) : void

Initializes the class.

Persist ( ) : void

Persists the state of the class.

Remove ( Theme theme ) : void

Removes a theme, and updates any timers using the theme to use the default theme.

비공개 메소드들

메소드 설명
GetBuiltInThemes ( ) : IList

Loads the collection of themes defined in the assembly.

GetUserProvidedThemes ( ) : IList

Loads the collection of themes defined by the user.

ThemeManager ( ) : System

Prevents a default instance of the ThemeManager class from being created.

메소드 상세

Add() 공개 메소드

Adds a theme.
public Add ( Theme theme ) : void
theme Hourglass.Timing.Theme A .
리턴 void

AddRange() 공개 메소드

Adds the themes of the specified collection.
public AddRange ( IEnumerable collection ) : void
collection IEnumerable A collection of s.
리턴 void

AddThemeBasedOnTheme() 공개 메소드

Adds a theme based on another theme.
public AddThemeBasedOnTheme ( Theme theme ) : Theme
theme Hourglass.Timing.Theme A .
리턴 Hourglass.Timing.Theme

GetDarkVariantForTheme() 공개 메소드

Returns the dark variant of a theme.
public GetDarkVariantForTheme ( Theme theme ) : Theme
theme Hourglass.Timing.Theme A theme.
리턴 Hourglass.Timing.Theme

GetLightVariantForTheme() 공개 메소드

Returns the light variant of a theme.
public GetLightVariantForTheme ( Theme theme ) : Theme
theme Hourglass.Timing.Theme A theme.
리턴 Hourglass.Timing.Theme

GetThemeByIdentifier() 공개 메소드

Returns the theme for the specified identifier, or null if no such theme is loaded.
public GetThemeByIdentifier ( string identifier ) : Theme
identifier string The identifier for the theme.
리턴 Hourglass.Timing.Theme

GetThemeByName() 공개 메소드

Returns the first theme for the specified name, or null if no such theme is loaded.
public GetThemeByName ( string name, System.StringComparison stringComparison = StringComparison.Ordinal ) : Theme
name string The name for the theme.
stringComparison System.StringComparison One of the enumeration values that specifies how the strings will be /// compared.
리턴 Hourglass.Timing.Theme

GetThemeOrDefaultByIdentifier() 공개 메소드

Returns the theme for the specified identifier, or DefaultTheme if no such theme is loaded.
public GetThemeOrDefaultByIdentifier ( string identifier ) : Theme
identifier string The identifier for the theme.
리턴 Hourglass.Timing.Theme

GetThemeOrDefaultByName() 공개 메소드

Returns the first theme for the specified name, or DefaultTheme if no such theme is loaded.
public GetThemeOrDefaultByName ( string name, System.StringComparison stringComparison = StringComparison.Ordinal ) : Theme
name string The name for the theme.
stringComparison System.StringComparison One of the enumeration values that specifies how the strings will be /// compared.
리턴 Hourglass.Timing.Theme

Initialize() 공개 메소드

Initializes the class.
public Initialize ( ) : void
리턴 void

Persist() 공개 메소드

Persists the state of the class.
public Persist ( ) : void
리턴 void

Remove() 공개 메소드

Removes a theme, and updates any timers using the theme to use the default theme.
public Remove ( Theme theme ) : void
theme Hourglass.Timing.Theme A .
리턴 void

프로퍼티 상세

Instance 공개적으로 정적으로 프로퍼티

Singleton instance of the ThemeManager class.
public static ThemeManager,Hourglass.Managers Instance
리턴 ThemeManager