C# Класс GnomoriaEnhanced.Main

Показать файл Открыть проект

Открытые методы

Метод Описание
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().

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Clean up any resources being used.

Приватные методы

Метод Описание
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

Описание методов

Dispose() защищенный Метод

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
Результат void

Main() публичный Метод

public Main ( ) : System
Результат System

Main_Load() публичный Метод

public Main_Load ( object sender, System e ) : void
sender object
e System
Результат void

Main_Shown() публичный Метод

public Main_Shown ( object sender, System e ) : void
sender object
e System
Результат void

tabCharSkills_Load() публичный Метод

Initialize the Character Skills tab. Called by LoadGame().
public tabCharSkills_Load ( ) : void
Результат void

tabCharStats_Load() публичный Метод

Initialize the Character Stats tab. Called by LoadGame().
public tabCharStats_Load ( ) : void
Результат void

tabPageOverview_Load() публичный Метод

Initialize the Kingdom overview tab. Called by LoadGame().
public tabPageOverview_Load ( ) : void
Результат void