C# Class SDownload.Dialogs.UpdateAvailableDialog

Dialog shown when an update is available
Inheritance: System.Windows.Forms.Form
Mostra file Open project: brkastner/SDownload Class Usage Examples

Public Methods

Method Description
Prompt ( String fileUrl, List contracts ) : void

Creates an update dialog to prompt the user

UpdateAvailableDialog ( String fileUrl, IReadOnlyList contracts ) : System

Initializes the dialog

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
DownloadAndInstall ( int size ) : void

Downloads and installs the newest version

InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

LogUpdate ( ) : void

Log the update using Google Analytics

Method Details

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

Prompt() public static method

Creates an update dialog to prompt the user
public static Prompt ( String fileUrl, List contracts ) : void
fileUrl String The URL of the new version to download
contracts List The response received from the SDownload regarding the new version
return void

UpdateAvailableDialog() public method

Initializes the dialog
public UpdateAvailableDialog ( String fileUrl, IReadOnlyList contracts ) : System
fileUrl String The URL of the new version to download
contracts IReadOnlyList The response received from the SDownload regarding the new version
return System