C# Class BF2Statistics.TaskForm

Inheritance: System.Windows.Forms.Form
Mostra file Open project: BF2Statistics/ControlCenter Class Usage Examples

Public Properties

Property Type Description
Progress IProgress

Protected Properties

Property Type Description
Cancelable bool

Public Methods

Method Description
CloseForm ( ) : void

Closes the Task dialog, and clears the Cancelled event handle subscriptions

Show ( Form Parent, string WindowTitle, string InstructionText, ProgressBarStyle Style, int Steps ) : void

Open and displays the task form.

Show ( Form Parent, string WindowTitle, string InstructionText, bool Cancelable ) : void

Open and displays the task form.

Show ( Form Parent, string WindowTitle, string InstructionText, bool Cancelable, ProgressBarStyle Style, int Steps ) : void

Open and displays the task form.

Show ( Form Parent, string WindowTitle, string InstructionText, string SubMessage, bool Cancelable, ProgressBarStyle Style, int ProgressBarSteps ) : void

Open and displays the task form.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
CancelBtn_Click ( object sender, EventArgs e ) : void
InitializeComponent ( ) : void

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

ProgressChanged ( TaskProgressUpdate e ) : void

Updates the TaskForm controls after a Progress.Report() has been recieved

TaskForm ( ) : System

Private constructor... Use the Show() method rather

TaskForm_FormClosed ( object sender, System.Windows.Forms.FormClosedEventArgs e ) : void

Method Details

CloseForm() public static method

Closes the Task dialog, and clears the Cancelled event handle subscriptions
public static CloseForm ( ) : void
return void

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

Show() public static method

Open and displays the task form.
Thrown if the Task form is already open and running. Use the IsOpen property /// to determine if the form is already running
public static Show ( Form Parent, string WindowTitle, string InstructionText, ProgressBarStyle Style, int Steps ) : void
Parent System.Windows.Forms.Form The calling form, so the task form can be centered
WindowTitle string The task dialog window title
InstructionText string Instruction text displayed after the info icon. Leave null /// to hide the instruction text and icon.
Style ProgressBarStyle The progress bar style
Steps int
return void

Show() public static method

Open and displays the task form.
Thrown if the Task form is already open and running. Use the IsOpen property /// to determine if the form is already running
public static Show ( Form Parent, string WindowTitle, string InstructionText, bool Cancelable ) : void
Parent System.Windows.Forms.Form The calling form, so the task form can be centered
WindowTitle string The task dialog window title
InstructionText string Instruction text displayed after the info icon. Leave null /// to hide the instruction text and icon.
Cancelable bool Specifies whether the operation can be canceled
return void

Show() public static method

Open and displays the task form.
Thrown if the Task form is already open and running. Use the IsOpen property /// to determine if the form is already running
public static Show ( Form Parent, string WindowTitle, string InstructionText, bool Cancelable, ProgressBarStyle Style, int Steps ) : void
Parent System.Windows.Forms.Form The calling form, so the task form can be centered
WindowTitle string The task dialog window title
InstructionText string Instruction text displayed after the info icon. Leave null /// to hide the instruction text and icon.
Cancelable bool Specifies whether the operation can be canceled
Style ProgressBarStyle The progress bar style
Steps int
return void

Show() public static method

Open and displays the task form.
Thrown if the Task form is already open and running. Use the IsOpen property /// to determine if the form is already running
public static Show ( Form Parent, string WindowTitle, string InstructionText, string SubMessage, bool Cancelable, ProgressBarStyle Style, int ProgressBarSteps ) : void
Parent System.Windows.Forms.Form The calling form, so the task form can be centered
WindowTitle string The task dialog window title
InstructionText string Instruction text displayed after the info icon. Leave null /// to hide the instruction text and icon.
SubMessage string Detail text that is displayed just above the progress bar
Cancelable bool Specifies whether the operation can be canceled
Style ProgressBarStyle The progress bar style
ProgressBarSteps int
return void

Property Details

Cancelable protected_oe property

Gets or Sets whether the task is cancelable
protected bool Cancelable
return bool

Progress public_oe static_oe property

A progress object that is used to report progress to the TaskForm and update the GUI
public static IProgress Progress
return IProgress