C# Класс MetroThing.Core.Manager.AppSettings

Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
GetDefaultFileLocation ( ) : string

Описание методов

Backup() публичный статический Метод

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
Результат SettingsSnapshot

Load() публичный статический Метод

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
Результат void

Restore() публичный статический Метод

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
Результат void

Save() публичный статический Метод

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
Результат void