C# 클래스 MetroThing.Core.Manager.AppSettings

파일 보기 프로젝트 열기: kreischweide/metrothing

공개 메소드들

메소드 설명
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