C# Class HWBalanceAnalyzer.View.MainForm

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

Méthodes publiques

Méthode 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

Méthode 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 méthode

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 ///
Résultat System

ResetStatusStrip() public méthode

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

SetProgress() public méthode

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 ///
Résultat void

SetStatus() public méthode

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 ///
Résultat void