C# Class SleepHunter.Settings.ClientVersionManager

显示文件 Open project: ewrogers/SleepHunter4

Public Properties

Property Type Description
VersionsFile string

Public Methods

Method Description
AddVersion ( ClientVersion version ) : void
ClearVersions ( ) : void
ContainsVersion ( string key ) : bool
DetectVersion ( string hash ) : string
GetVersion ( string key ) : ClientVersion
LoadDefaultVersions ( ) : void
LoadFromFile ( string filename ) : void
LoadFromStream ( Stream stream ) : void
RemoveVersion ( string key ) : bool
SaveToFile ( string filename ) : void
SaveToStream ( Stream stream ) : void
this ( string key ) : ClientVersion

Private Methods

Method Description
ClientVersionManager ( ) : System
OnVersionAdded ( ClientVersion version ) : void
OnVersionChanged ( ClientVersion version ) : void
OnVersionRemoved ( ClientVersion version ) : void

Method Details

AddVersion() public method

public AddVersion ( ClientVersion version ) : void
version ClientVersion
return void

ClearVersions() public method

public ClearVersions ( ) : void
return void

ContainsVersion() public method

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

DetectVersion() public method

public DetectVersion ( string hash ) : string
hash string
return string

GetVersion() public method

public GetVersion ( string key ) : ClientVersion
key string
return ClientVersion

LoadDefaultVersions() public method

public LoadDefaultVersions ( ) : 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

RemoveVersion() public method

public RemoveVersion ( 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 ) : ClientVersion
key string
return ClientVersion

Property Details

VersionsFile public_oe static_oe property

public static string VersionsFile
return string