C# Class Mckineap.Models.Context.Data.Preferences

Inheritance: FileObject
Afficher le fichier Open project: loic-lavergne/mckineap Class Usage Examples

Protected Properties

Свойство Type Description
categories Collection
settings Collection

Méthodes publiques

Méthode Description
GetCategoryFileFromName ( String category ) : String
GetSettingValue ( string category, string settingName ) : String
LoadDefaultPreferences ( ) : System.Boolean
LoadPreferences ( ) : System.Boolean

Loads the Preferences from the category files in the Project's Preferences path

Preferences ( string path ) : Mckineap.Utilities
PreferencesWorkspaceExists ( ) : System.Boolean

Checks if the Preferences workspace exists.

Reinitialize ( string fullPath ) : bool

Reinitializes the FileObject with specified path.
The other attributes are processed from the provided parameter.

SetCategories ( Collection newCategories ) : void
SetSettings ( Collection newSettings ) : void

Méthodes protégées

Méthode Description
CategoryFileIsValid ( String categoryFile ) : System.Boolean

Determines whether the file exists, is of type XML and is not empty.
This method doesn't ensure that the file data is correct.

CategoryFilesAreValid ( ) : System.Boolean

Checks if the category files exist, are of type XML and are not empty.

Method Details

CategoryFileIsValid() protected méthode

Determines whether the file exists, is of type XML and is not empty.
This method doesn't ensure that the file data is correct.
protected CategoryFileIsValid ( String categoryFile ) : System.Boolean
categoryFile String The file to check.
Résultat System.Boolean

CategoryFilesAreValid() protected méthode

Checks if the category files exist, are of type XML and are not empty.
protected CategoryFilesAreValid ( ) : System.Boolean
Résultat System.Boolean

GetCategoryFileFromName() public méthode

public GetCategoryFileFromName ( String category ) : String
category String
Résultat String

GetSettingValue() public méthode

public GetSettingValue ( string category, string settingName ) : String
category string
settingName string
Résultat String

LoadDefaultPreferences() public méthode

public LoadDefaultPreferences ( ) : System.Boolean
Résultat System.Boolean

LoadPreferences() public méthode

Loads the Preferences from the category files in the Project's Preferences path
public LoadPreferences ( ) : System.Boolean
Résultat System.Boolean

Preferences() public méthode

public Preferences ( string path ) : Mckineap.Utilities
path string
Résultat Mckineap.Utilities

PreferencesWorkspaceExists() public méthode

Checks if the Preferences workspace exists.
public PreferencesWorkspaceExists ( ) : System.Boolean
Résultat System.Boolean

Reinitialize() public méthode

Reinitializes the FileObject with specified path.
The other attributes are processed from the provided parameter.
public Reinitialize ( string fullPath ) : bool
fullPath string The full path of the file.
Résultat bool

SetCategories() public méthode

public SetCategories ( Collection newCategories ) : void
newCategories Collection
Résultat void

SetSettings() public méthode

public SetSettings ( Collection newSettings ) : void
newSettings Collection
Résultat void

Property Details

categories protected_oe property

protected Collection categories
Résultat Collection

settings protected_oe property

protected Collection settings
Résultat Collection