C# Class KFreonLib.GUI.ProgressBarChanger

Provides threadsafe methods for changing ToolStripProgressBars, incl Incrementing and setting Value and Maximum properties.
Show file Open project: ME3Explorer/ME3Explorer Class Usage Examples

Public Methods

Method Description
ChangeProgressBar ( int start, int end = -1 ) : void

Sets Value and Maximum properties of targeted ProgressBar.

IncrementBar ( int amount = 1 ) : void

Increments targeted ProgressBar.

ProgressBarChanger ( ToolStrip strip, System.Windows.Forms.ToolStripProgressBar progbar ) : System

Contructor.

Method Details

ChangeProgressBar() public method

Sets Value and Maximum properties of targeted ProgressBar.
public ChangeProgressBar ( int start, int end = -1 ) : void
start int Value to set Value property to. i.e. Current value.
end int Value to set Maximum property to. i.e. Number of increments in bar.
return void

IncrementBar() public method

Increments targeted ProgressBar.
public IncrementBar ( int amount = 1 ) : void
amount int Optional. Amount to increment bar by. Defaults to 1.
return void

ProgressBarChanger() public method

Contructor.
public ProgressBarChanger ( ToolStrip strip, System.Windows.Forms.ToolStripProgressBar progbar ) : System
strip System.Windows.Forms.ToolStrip Base strip object for correct invoking.
progbar System.Windows.Forms.ToolStripProgressBar ProgressBar to be targeted.
return System