C# Класс KFreonLib.GUI.ProgressBarChanger

Provides threadsafe methods for changing ToolStripProgressBars, incl Incrementing and setting Value and Maximum properties.
Показать файл Открыть проект Примеры использования класса

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

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

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

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

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.
Результат void

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

Increments targeted ProgressBar.
public IncrementBar ( int amount = 1 ) : void
amount int Optional. Amount to increment bar by. Defaults to 1.
Результат void

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

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.
Результат System