C# Class SleepHunter.Settings.ColorThemeManager

Show file Open project: ewrogers/SleepHunter4

Public Properties

Property Type Description
ThemesFile string

Public Methods

Method Description
AddTheme ( ColorTheme theme ) : void
ApplyRainbowMode ( ) : void
ApplyTheme ( string themeKey ) : void
ClearThemes ( ) : void
ContainsTheme ( string key ) : bool
GetTheme ( string key ) : ColorTheme
LoadDefaultThemes ( ) : void
LoadFromFile ( string filename ) : void
LoadFromStream ( Stream stream ) : void
RemoveTheme ( string key ) : bool
SaveToFile ( string filename ) : void
SaveToStream ( Stream stream ) : void
this ( string key ) : ColorTheme

Private Methods

Method Description
ColorThemeManager ( ) : System
OnThemeAdded ( ColorTheme theme ) : void
OnThemeChanged ( ColorTheme theme ) : void
OnThemeRemoved ( ColorTheme theme ) : void

Method Details

AddTheme() public method

public AddTheme ( ColorTheme theme ) : void
theme ColorTheme
return void

ApplyRainbowMode() public method

public ApplyRainbowMode ( ) : void
return void

ApplyTheme() public method

public ApplyTheme ( string themeKey ) : void
themeKey string
return void

ClearThemes() public method

public ClearThemes ( ) : void
return void

ContainsTheme() public method

public ContainsTheme ( string key ) : bool
key string
return bool

GetTheme() public method

public GetTheme ( string key ) : ColorTheme
key string
return ColorTheme

LoadDefaultThemes() public method

public LoadDefaultThemes ( ) : void
return void

LoadFromFile() public method

public LoadFromFile ( string filename ) : void
filename string
return void

LoadFromStream() public method

public LoadFromStream ( Stream stream ) : void
stream Stream
return void

RemoveTheme() public method

public RemoveTheme ( string key ) : bool
key string
return bool

SaveToFile() public method

public SaveToFile ( string filename ) : void
filename string
return void

SaveToStream() public method

public SaveToStream ( Stream stream ) : void
stream Stream
return void

this() public method

public this ( string key ) : ColorTheme
key string
return ColorTheme

Property Details

ThemesFile public static property

public static string ThemesFile
return string