C# Class MetroThing.Core.Manager.AppSettings

Mostrar archivo Open project: kreischweide/metrothing

Public Methods

Method 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

Method Description
GetDefaultFileLocation ( ) : string

Method Details

Backup() public static method

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
return SettingsSnapshot

Load() public static method

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
return void

Restore() public static method

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
return void

Save() public static method

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
return void