C# Класс Mckineap.Models.Context.Data.Preferences

Наследование: FileObject
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
categories Collection
settings Collection

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
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.

Описание методов

CategoryFileIsValid() защищенный Метод

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.
Результат System.Boolean

CategoryFilesAreValid() защищенный Метод

Checks if the category files exist, are of type XML and are not empty.
protected CategoryFilesAreValid ( ) : System.Boolean
Результат System.Boolean

GetCategoryFileFromName() публичный Метод

public GetCategoryFileFromName ( String category ) : String
category String
Результат String

GetSettingValue() публичный Метод

public GetSettingValue ( string category, string settingName ) : String
category string
settingName string
Результат String

LoadDefaultPreferences() публичный Метод

public LoadDefaultPreferences ( ) : System.Boolean
Результат System.Boolean

LoadPreferences() публичный Метод

Loads the Preferences from the category files in the Project's Preferences path
public LoadPreferences ( ) : System.Boolean
Результат System.Boolean

Preferences() публичный Метод

public Preferences ( string path ) : Mckineap.Utilities
path string
Результат Mckineap.Utilities

PreferencesWorkspaceExists() публичный Метод

Checks if the Preferences workspace exists.
public PreferencesWorkspaceExists ( ) : System.Boolean
Результат System.Boolean

Reinitialize() публичный Метод

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.
Результат bool

SetCategories() публичный Метод

public SetCategories ( Collection newCategories ) : void
newCategories Collection
Результат void

SetSettings() публичный Метод

public SetSettings ( Collection newSettings ) : void
newSettings Collection
Результат void

Описание свойств

categories защищенное свойство

protected Collection categories
Результат Collection

settings защищенное свойство

protected Collection settings
Результат Collection