C# Class Yaircc.UI.Themes

Represents the collection of installed themes on the system.
Show file Open project: rastating/yaircc

Private Properties

Property Type Description
CreateThemeFromFile Theme
GetThemeXML System.Xml.Linq.XElement
PopulateThemes void
Themes System

Public Methods

Method Description
InstallTheme ( string path ) : Theme

Installs the theme at the specified path.

UninstallTheme ( Theme theme ) : void

Uninstalls the specified theme from the system.

Private Methods

Method Description
CreateThemeFromFile ( string fileName, bool isOfficial ) : Theme

Initialise a new instance of the Theme class using the specified file.

GetThemeXML ( string fileName ) : System.Xml.Linq.XElement

Get the XML portion of the specified theme.

PopulateThemes ( ) : void

Populates the collection of themes.

Themes ( ) : System

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

Method Details

InstallTheme() public method

Installs the theme at the specified path.
public InstallTheme ( string path ) : Theme
path string The path of the theme to install.
return Theme

UninstallTheme() public method

Uninstalls the specified theme from the system.
public UninstallTheme ( Theme theme ) : void
theme Theme The theme to uninstall.
return void