C# 클래스 NetSparkle.NetSparkleDownloadProgress

A progress bar
상속: System.Windows.Forms.Form, INetSparkleDownloadProgress
파일 보기 프로젝트 열기: Deadpikle/NetSparkle

공개 메소드들

메소드 설명
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