C# Класс FdoToolbox.Base.Forms.ProgressDialog

Generic progress dialog
Наследование: System.Windows.Forms.Form
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
actionBaseText string
actionText string

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

Метод Описание
SetMax ( int max ) : void

Sets the maximum value. If the maximum is less than or equal to 0, then the progress animation will become marquee.

SetMessage ( string message ) : void

Sets the message of the progress dialog

SetTitle ( string title ) : void

Sets the title of the progress dialog

SetValue ( int value ) : void

Sets the number of items processed

Show ( int max, bool canCancel ) : void

Shows the progress dialog

Stop ( ) : void

Stops and closes the progress dialog

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Clean up any resources being used.

Приватные методы

Метод Описание
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

LaunchForm ( ) : void
ProgressDialog ( ) : System
btnCancel_Click ( object sender, EventArgs e ) : void

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

Dispose() защищенный Метод

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
Результат void

SetMax() публичный статический Метод

Sets the maximum value. If the maximum is less than or equal to 0, then the progress animation will become marquee.
public static SetMax ( int max ) : void
max int The max.
Результат void

SetMessage() публичный статический Метод

Sets the message of the progress dialog
public static SetMessage ( string message ) : void
message string The message.
Результат void

SetTitle() публичный статический Метод

Sets the title of the progress dialog
public static SetTitle ( string title ) : void
title string The title.
Результат void

SetValue() публичный статический Метод

Sets the number of items processed
public static SetValue ( int value ) : void
value int The value.
Результат void

Show() публичный статический Метод

Shows the progress dialog
public static Show ( int max, bool canCancel ) : void
max int The maximum value. If less than or equal to 0, the progress bar will use the marquee animation
canCancel bool if set to true, the user can cancel the operation. In this case, the must be handled
Результат void

Stop() публичный статический Метод

Stops and closes the progress dialog
public static Stop ( ) : void
Результат void

Описание свойств

actionBaseText публичное статическое свойство

text which is shown in front of the numbers; e.g. actionText 102/999
public static string actionBaseText
Результат string

actionText публичное статическое свойство

text which can be shown as action which is done at the moment
public static string actionText
Результат string