C# Class AddonHelper.Addon.cProgressBar

显示文件 Open project: angelog/ClipUpload

Public Properties

Property Type Description
Canceled bool
Form FormProgressBar

Public Methods

Method Description
Done ( ) : void

Close the progressbar window

Set ( int currentLocation ) : void

Set the current progress

Start ( string Filename, long Filesize ) : void

Shows a progressbar window.

Start ( string Filename, long Filesize, bool DisplaySpeed ) : void

Shows a progressbar window.

Private Methods

Method Description
cancelUpload ( object sender, FormClosingEventArgs e ) : void
percentage ( int currentLocation ) : double
percentage ( int currentLocation, int decimals ) : double
reset ( ) : void
updateStatus ( int currentLocation ) : void

Method Details

Done() public method

Close the progressbar window
public Done ( ) : void
return void

Set() public method

Set the current progress
public Set ( int currentLocation ) : void
currentLocation int The current location in the file
return void

Start() public method

Shows a progressbar window.
public Start ( string Filename, long Filesize ) : void
Filename string The filename
Filesize long The filesize
return void

Start() public method

Shows a progressbar window.
public Start ( string Filename, long Filesize, bool DisplaySpeed ) : void
Filename string The filename
Filesize long The filesize
DisplaySpeed bool Whether or not to display the speed
return void

Property Details

Canceled public_oe property

public bool Canceled
return bool

Form public_oe property

public FormProgressBar,AddonHelper Form
return FormProgressBar