C# Class MetroThing.Core.Manager.AppSettings

Afficher le fichier Open project: kreischweide/metrothing

Méthodes publiques

Méthode Description
Backup ( Form form = null ) : SettingsSnapshot

Captures and returns the current settings

Load ( Form form = null ) : void

Loads and restores the current settings from the default location

Restore ( SettingsSnapshot snapshot, Form form = null ) : void

Restores the given snapshot back to the application

Save ( Form form = null ) : void

Captures and saves the current settings to the default location

Private Methods

Méthode Description
GetDefaultFileLocation ( ) : string

Method Details

Backup() public static méthode

Captures and returns the current settings
public static Backup ( Form form = null ) : SettingsSnapshot
form System.Windows.Forms.Form If given, its visual representation is also be captured and returned
Résultat SettingsSnapshot

Load() public static méthode

Loads and restores the current settings from the default location
public static Load ( Form form = null ) : void
form System.Windows.Forms.Form If given, its visual representation will also be restored
Résultat void

Restore() public static méthode

Restores the given snapshot back to the application
public static Restore ( SettingsSnapshot snapshot, Form form = null ) : void
snapshot SettingsSnapshot Deserialzable object created by Backup()
form System.Windows.Forms.Form If given, its visual representation will also be restored
Résultat void

Save() public static méthode

Captures and saves the current settings to the default location
public static Save ( Form form = null ) : void
form System.Windows.Forms.Form If given, its visual representation is also saved
Résultat void