C# Class JarrettVance.ChapterTools.Updater

Mostra file Open project: jarrettv/ChapterGrabber

Public Methods

Method Description
CheckForUpdate ( Action showUpdateDialog ) : UpdateStatus

Checks for an update and shows the update dialog if there is an update available.

LaunchUpdater ( System.Xml.Linq.XDocument manifest ) : void

Saves the manifest locally and launches the updater app

UpdateUpdater ( ) : void

Removes old updater and renames new updater after a small delay, call upon startup

Private Methods

Method Description
GetUpdaterPath ( ) : string

Method Details

CheckForUpdate() public static method

Checks for an update and shows the update dialog if there is an update available.
public static CheckForUpdate ( Action showUpdateDialog ) : UpdateStatus
showUpdateDialog Action
return UpdateStatus

LaunchUpdater() public static method

Saves the manifest locally and launches the updater app
public static LaunchUpdater ( System.Xml.Linq.XDocument manifest ) : void
manifest System.Xml.Linq.XDocument
return void

UpdateUpdater() public static method

Removes old updater and renames new updater after a small delay, call upon startup
public static UpdateUpdater ( ) : void
return void