C# Класс NetSparkle.NetSparkleDownloadProgress

A progress bar
Наследование: System.Windows.Forms.Form, INetSparkleDownloadProgress
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Clean up any resources being used.

Приватные методы

Метод Описание
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

Описание методов

DisplayErrorMessage() публичный Метод

public DisplayErrorMessage ( string errorMessage ) : bool
errorMessage string
Результат bool

Dispose() защищенный Метод

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
Результат void

FinishedDownloadingFile() публичный Метод

Update UI to show file is downloaded and signature check result
public FinishedDownloadingFile ( bool isDownloadedFileValid ) : void
isDownloadedFileValid bool
Результат void

ForceClose() публичный Метод

Force window close
public ForceClose ( ) : void
Результат void

NetSparkleDownloadProgress() публичный Метод

Constructor
public NetSparkleDownloadProgress ( NetSparkleAppCastItem item, Icon applicationIcon ) : System
item NetSparkleAppCastItem
applicationIcon System.Drawing.Icon Your application Icon
Результат System

OnDownloadProgressChanged() публичный Метод

public OnDownloadProgressChanged ( object sender, DownloadProgressChangedEventArgs e ) : void
sender object
e System.Net.DownloadProgressChangedEventArgs
Результат void

SetDownloadAndInstallButtonEnabled() публичный Метод

TODO
public SetDownloadAndInstallButtonEnabled ( bool shouldBeEnabled ) : void
shouldBeEnabled bool
Результат void