Table of Contents

Class SettingsBase

Namespace
Tripous
Assembly
Tripous.dll

Base class for application settings stored in JSON files.

public abstract class SettingsBase
Inheritance
SettingsBase
Derived
Inherited Members
Extension Methods

Constructors

SettingsBase()

Constructor.

public SettingsBase()

Properties

FileName

Gets the settings file name.

protected virtual string FileName { get; }

Property Value

string

IsLoaded

Gets a value indicating whether the settings have been loaded.

[JsonIgnore]
public virtual bool IsLoaded { get; protected set; }

Property Value

bool

SettingsFilePath

Gets the full path of the settings file.

[JsonIgnore]
public string SettingsFilePath { get; }

Property Value

string

Methods

GetFilePath()

Returns the full path of the settings file.

protected virtual string GetFilePath()

Returns

string

Load()

Loads settings from disk.

public virtual void Load()

LoadAfter()

Called after settings have been loaded from disk.

protected virtual void LoadAfter()

LoadBefore()

Called before loading settings from disk.

protected virtual void LoadBefore()

Save()

Saves settings to disk.

public virtual void Save()

SaveAfter()

Called after settings have been saved to disk.

protected virtual void SaveAfter()

SaveBefore()

Called before saving settings to disk.

protected virtual void SaveBefore()