C# 클래스 Support.UI.WaitDialog

상속: System.Windows.Forms.Form
파일 보기 프로젝트 열기: nhmkdev/cardmaker 1 사용 예제들

공개 메소드들

메소드 설명
CloseWaitDialog ( ) : void

Used in place of the Close method to avoid threading issues

ProgressGet ( int nProgressBar ) : int

Gets the value of the specified progress bar.

ProgressReset ( int nProgressBar, int nMin, int nMax, int nStartVal ) : void

Resets the specified progress bar.

ProgressSet ( int nProgressBar, int nValue ) : void

Sets the value on the specified progress bar.

ProgressStep ( int nProgressBar ) : void

Steps the value on the specified progress bar.

SetStatusText ( string sText ) : void

Sets the status text

WaitDialog ( int nProgressBarCount, ParameterizedThreadStart zThreadStart, object zParamObject, string sTitle, string arrayDescriptions, int nWidth ) : System

Creates a new WaitDialog with the specified ThreadStart.

WaitDialog ( int nProgressBarCount, ThreadStart zThreadStart, string sTitle, string arrayDescriptions, int nWidth ) : System

Creates a new WaitDialog with the specified ThreadStart.

비공개 메소드들

메소드 설명
AddProgressBars ( int nProgressBarCount ) : void

Adds the specified number of progress bars to the WaitDialog. Also configures the other Controls in the window.

Initialize ( int nProgressBarCount, string sTitle, string arrayDescriptions, int nWidth ) : void

Sets up the basic controls

WaitDialog_Load ( object sender, EventArgs e ) : void

When the dialog is shown the associated thread is started.

btnCancel_Click ( object sender, EventArgs e ) : void

Cancels the associated thread. (returns from Show/ShowDialog)

메소드 상세

CloseWaitDialog() 공개 메소드

Used in place of the Close method to avoid threading issues
public CloseWaitDialog ( ) : void
리턴 void

ProgressGet() 공개 메소드

Gets the value of the specified progress bar.
public ProgressGet ( int nProgressBar ) : int
nProgressBar int The progress bar to get (0 based)
리턴 int

ProgressReset() 공개 메소드

Resets the specified progress bar.
public ProgressReset ( int nProgressBar, int nMin, int nMax, int nStartVal ) : void
nProgressBar int The progress bar to reset (0 based)
nMin int The minimum value to set on the progress bar
nMax int The maximum value to set on the progress bar
nStartVal int The starting value to set on the progress bar
리턴 void

ProgressSet() 공개 메소드

Sets the value on the specified progress bar.
public ProgressSet ( int nProgressBar, int nValue ) : void
nProgressBar int The progress bar to set (0 based)
nValue int The value to set
리턴 void

ProgressStep() 공개 메소드

Steps the value on the specified progress bar.
public ProgressStep ( int nProgressBar ) : void
nProgressBar int The progress bar to step (0 based)
리턴 void

SetStatusText() 공개 메소드

Sets the status text
public SetStatusText ( string sText ) : void
sText string
리턴 void

WaitDialog() 공개 메소드

Creates a new WaitDialog with the specified ThreadStart.
public WaitDialog ( int nProgressBarCount, ParameterizedThreadStart zThreadStart, object zParamObject, string sTitle, string arrayDescriptions, int nWidth ) : System
nProgressBarCount int The number of progress bars to include.
zThreadStart ParameterizedThreadStart The ThreadStart to initialize
zParamObject object The object to pass to the thread method
sTitle string The title of the wait dialog
arrayDescriptions string Optional array of strings for each progress bar. (null is allowed)
nWidth int Desired width of the WaitDialog, must be >100
리턴 System

WaitDialog() 공개 메소드

Creates a new WaitDialog with the specified ThreadStart.
public WaitDialog ( int nProgressBarCount, ThreadStart zThreadStart, string sTitle, string arrayDescriptions, int nWidth ) : System
nProgressBarCount int The number of progress bars to include.
zThreadStart ThreadStart The ThreadStart to initialize
sTitle string The title of the wait dialog
arrayDescriptions string Optional array of strings for each progress bar. (null is allowed)
nWidth int Desired width of the WaitDialog, must be >100
리턴 System