Show / Hide Table of Contents

Class ClientSettingsManager

Each client has settings associated with it. This class manages these settings, and allows a user to persist them.

Inheritance
System.Object
ClientSettingsManager
Namespace: AppDrillCore.Session
Assembly: AppDrillCore.dll
Syntax
public sealed class ClientSettingsManager : object

Properties

Instance

The singleton instance of this class.

Declaration
public static ClientSettingsManager Instance { get; }
Property Value
Type Description
ClientSettingsManager

Methods

GetSettings()

Return the client settings stored internally. In case no settings were ever stored, or loaded from a file, an object with default values will be returned.

Declaration
public ClientSettings GetSettings()
Returns
Type Description
ClientSettings

The client settings object stored internally

LoadSettings(String)

Load the client settings from a file.

Declaration
public bool LoadSettings(string fileName)
Parameters
Type Name Description
System.String fileName

The file name to load from

Returns
Type Description
System.Boolean

true if the file exists, and loading was successful, false if the file does not exists, IOException for other errors

SaveSettings(String)

Save the client settings to a file.

Declaration
public bool SaveSettings(string fileName)
Parameters
Type Name Description
System.String fileName

The file name to write to

Returns
Type Description
System.Boolean

true if storing was successful, IOException for other errors

SetSettings(ClientSettings)

Set the client settings internally. Later, these settings can be stored to a file using SaveSettings(String).

Declaration
public bool SetSettings(ClientSettings settings)
Parameters
Type Name Description
ClientSettings settings
Returns
Type Description
System.Boolean
In This Article
Back to top Generated by DocFX