C# 클래스 Mckineap.Models.Context.Data.Preferences

상속: FileObject
파일 보기 프로젝트 열기: loic-lavergne/mckineap 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
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