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
IsLoaded
Gets a value indicating whether the settings have been loaded.
[JsonIgnore]
public virtual bool IsLoaded { get; protected set; }
Property Value
SettingsFilePath
Gets the full path of the settings file.
[JsonIgnore]
public string SettingsFilePath { get; }
Property Value
Methods
GetFilePath()
Returns the full path of the settings file.
protected virtual string GetFilePath()
Returns
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()