C# Class BF2Statistics.ProgramUpdater

Auto updater for the BF2Statistics control center
ファイルを表示 Open project: BF2Statistics/ControlCenter

Public Properties

Property Type Description
NewVersion System.Version
Url System.Uri

Public Methods

Method Description
CheckForUpdateAsync ( ) : void

Checks for a new update Async.

DownloadUpdateAsync ( ) : bool

Downloads the new update from Github Async.

Private Methods

Method Description
ProgramUpdater ( ) : System
TaskForm_Cancelled ( object sender, CancelEventArgs e ) : void

Event called when the Cancel button is pushed on the main form

Wc_DownloadFileCompleted ( object sender, AsyncCompletedEventArgs e ) : void

Event called when an update file has completed its download

Wc_DownloadProgressChanged ( object sender, DownloadProgressChangedEventArgs e ) : void

Event called when the progress of the download has changed

Method Details

CheckForUpdateAsync() public static method

Checks for a new update Async.
public static CheckForUpdateAsync ( ) : void
return void

DownloadUpdateAsync() public static method

Downloads the new update from Github Async.
public static DownloadUpdateAsync ( ) : bool
return bool

Property Details

NewVersion public_oe static_oe property

The new updated version
public static Version,System NewVersion
return System.Version

Url public_oe static_oe property

Path to the Versions file
public static Uri,System Url
return System.Uri