C# Class KFreonLib.GUI.ProgressBarChanger

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

Méthodes publiques

Méthode 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 méthode

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.
Résultat void

IncrementBar() public méthode

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

ProgressBarChanger() public méthode

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.
Résultat System