C# Class GnomoriaEnhanced.Main

Exibir arquivo Open project: bvierra/GnomoriaEnhanced

Public Methods

Method Description
Main ( ) : System
Main_Load ( object sender, System e ) : void
Main_Shown ( object sender, System e ) : void
tabCharSkills_Load ( ) : void

Initialize the Character Skills tab. Called by LoadGame().

tabCharStats_Load ( ) : void

Initialize the Character Stats tab. Called by LoadGame().

tabPageOverview_Load ( ) : void

Initialize the Kingdom overview tab. Called by LoadGame().

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
InitializeComponent ( ) : void

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

InitializeGameModel ( bool forceInit ) : void

Use a background Worker thread to initialize the GnomanEmpire object used to manipulate saved games. This method will do nothing is the _configVerified flag is false, unless the forceInit parameter is true.

InitializeSavedGameWatcher ( ) : void

Initialize_DoWork ( object sender, DoWorkEventArgs e ) : void
Initialize_RunWorkerCompleted ( object sender, RunWorkerCompletedEventArgs e ) : void
LoadGame ( string savedGame ) : void

Load a saved game from the disk and update the displayed information. Uses a background worker.

LoadGame_DoWork ( object sender, DoWorkEventArgs e ) : void
LoadGame_ProgressChanged ( object sender, ProgressChangedEventArgs e ) : void
LoadGame_RunWorkerCompleted ( object sender, RunWorkerCompletedEventArgs e ) : void
Load_Debug ( ) : void

Create and initialize the ListBoxLog component and add it to listBox1.

Main_FormClosing ( object sender, FormClosingEventArgs e ) : void
ResetMenuItems ( ) : void

Reset the active/inactive state of menu items based on the application status.

VerifyGnomoriaSettings ( ) : void

Verify if the Gnomoria settings are compatible with the execution of the GE program. Will set (or reset) the _configVerified flag and update the UI accordingly.

autoBackupSavedGamesToolStripMenuItem_CheckedChanged ( object sender, EventArgs e ) : void
btnChatStatsHelp_Click ( object sender, EventArgs e ) : void
dataGridViewCharSkills_CellClick ( object sender, DataGridViewCellEventArgs e ) : void
dataGridViewCharSkills_CellPainting ( object sender, DataGridViewCellPaintingEventArgs e ) : void
dataGridViewCharStats_CellClick ( object sender, DataGridViewCellEventArgs e ) : void
dataGridViewCharStats_CellPainting ( object sender, DataGridViewCellPaintingEventArgs e ) : void
exitToolStripMenuItem_Click ( object sender, EventArgs e ) : void
initializeGameModelToolStripMenuItem_Click ( object sender, EventArgs e ) : void
log ( GnomoriaEnhanced level, string message ) : void

Log a message into the log list box (which might be visible or not).

logToolStripMenuItem_Checked ( object sender, EventArgs e ) : void
openToolStripMenuItem_Click ( object sender, EventArgs e ) : void
savedGame_Modified ( object sender, FileSystemEventArgs e ) : void
savedGame_Renamed ( object sender, RenamedEventArgs e ) : void

Method Details

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

Main() public method

public Main ( ) : System
return System

Main_Load() public method

public Main_Load ( object sender, System e ) : void
sender object
e System
return void

Main_Shown() public method

public Main_Shown ( object sender, System e ) : void
sender object
e System
return void

tabCharSkills_Load() public method

Initialize the Character Skills tab. Called by LoadGame().
public tabCharSkills_Load ( ) : void
return void

tabCharStats_Load() public method

Initialize the Character Stats tab. Called by LoadGame().
public tabCharStats_Load ( ) : void
return void

tabPageOverview_Load() public method

Initialize the Kingdom overview tab. Called by LoadGame().
public tabPageOverview_Load ( ) : void
return void