C# Class HWBalanceAnalyzer.View.MainForm

The main window of the application.
Inheritance: System.Windows.Forms.Form
Show file Open project: npruehs/hostile-worlds Class Usage Examples

Public Methods

Method Description
MainForm ( Controller controller ) : System

Constructs and initialized a new main window for the application.

ResetStatusStrip ( ) : void

Resets the status bar of this window, clearing the progress bar and the status label.

SetProgress ( int progressPercentage ) : void

Sets the value of the progress bar in the status bar of this window to the specified value.

SetStatus ( string status ) : void

Sets the text of the status label in the status bar of this window.

Private Methods

Method Description
aboutToolStripMenuItem_Click ( object sender, EventArgs e ) : void

Called whenever the user selects the About item in the File menu. Shows a box with information about this application.

dataGridViewLogs_SelectionChanged ( object sender, EventArgs e ) : void

Called whenever the user selects a new log in the log list. Shows information on that match in the match info window.

exportResultsToolStripMenuItem_Click ( object sender, EventArgs e ) : void

Called whenever the user selects the Save item in the File menu. Raises a new SaveFileDialog and makes the user choose a file to write the analysis results to.

openToolStripMenuItem_Click ( object sender, EventArgs e ) : void

Called whenever the user selects the Open item in the File menu. Raises a new FolderBrowserDialog and makes the user choose a folder to be recursively scanned for log files

quitToolStripMenuItem_Click ( object sender, EventArgs e ) : void

Called whenever the user selects the Quit item in the File menu. Shuts down this application.

Method Details

MainForm() public method

Constructs and initialized a new main window for the application.
public MainForm ( Controller controller ) : System
controller HWBalanceAnalyzer.Control.Controller /// the controller to be notified whenever the user interacts with /// the new window ///
return System

ResetStatusStrip() public method

Resets the status bar of this window, clearing the progress bar and the status label.
public ResetStatusStrip ( ) : void
return void

SetProgress() public method

Sets the value of the progress bar in the status bar of this window to the specified value.
public SetProgress ( int progressPercentage ) : void
progressPercentage int /// the new value between 0 and 100 for the progress bar ///
return void

SetStatus() public method

Sets the text of the status label in the status bar of this window.
public SetStatus ( string status ) : void
status string /// the new text for the status label ///
return void