C# Class NetSparkle.NetSparkleDownloadProgress

A progress bar
Inheritance: System.Windows.Forms.Form, INetSparkleDownloadProgress
Show file Open project: Deadpikle/NetSparkle

Public Methods

Method Description
DisplayErrorMessage ( string errorMessage ) : bool
FinishedDownloadingFile ( bool isDownloadedFileValid ) : void

Update UI to show file is downloaded and signature check result

ForceClose ( ) : void

Force window close

NetSparkleDownloadProgress ( NetSparkleAppCastItem item, Icon applicationIcon ) : System

Constructor

OnDownloadProgressChanged ( object sender, DownloadProgressChangedEventArgs e ) : void

SetDownloadAndInstallButtonEnabled ( bool shouldBeEnabled ) : void

TODO

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
INetSparkleDownloadProgress ( ) : DialogResult

Show the UI and waits

InitializeComponent ( ) : void

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

NetSparkleDownloadProgress_FormClosing ( object sender, FormClosingEventArgs e ) : void
OnDownloadProgressChanged ( object sender, long bytesReceived, long totalBytesToReceive, int percentage ) : void

Event called when the client download progress changes

OnInstallAndReLaunchClick ( object sender, EventArgs e ) : void

Event called when the "Install and relaunch" button is clicked

buttonCancel_Click ( object sender, EventArgs e ) : void
numBytesToUserReadableString ( long numBytes ) : string

Method Details

DisplayErrorMessage() public method

public DisplayErrorMessage ( string errorMessage ) : bool
errorMessage string
return bool

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

FinishedDownloadingFile() public method

Update UI to show file is downloaded and signature check result
public FinishedDownloadingFile ( bool isDownloadedFileValid ) : void
isDownloadedFileValid bool
return void

ForceClose() public method

Force window close
public ForceClose ( ) : void
return void

NetSparkleDownloadProgress() public method

Constructor
public NetSparkleDownloadProgress ( NetSparkleAppCastItem item, Icon applicationIcon ) : System
item NetSparkleAppCastItem
applicationIcon System.Drawing.Icon Your application Icon
return System

OnDownloadProgressChanged() public method

public OnDownloadProgressChanged ( object sender, DownloadProgressChangedEventArgs e ) : void
sender object
e System.Net.DownloadProgressChangedEventArgs
return void

SetDownloadAndInstallButtonEnabled() public method

TODO
public SetDownloadAndInstallButtonEnabled ( bool shouldBeEnabled ) : void
shouldBeEnabled bool
return void