void formClosing(object sender, FormClosingEventArgs e) { Dictionary <string, string> characters = new Dictionary <string, string>(); foreach (DataGridViewRow row in characterGrid.Rows) { try { string characterName = row.Cells["characterNames"].Value.ToString(); string characterClass = row.Cells["characterClasses"].Value.ToString(); if (characterName.Trim() == "" || characterClass.Trim() == "") { continue; } characters.Add(characterName, characterClass); } catch (NullReferenceException) { continue; } } GlobalSettings.customCharacters = characters; GlobalSettings.Save(); WillowTreeMain main = (WillowTreeMain)formToHide; main.generalTab.fixClasses(removedCharacters, addedCharacters); formToHide.Visible = true; }
public PluginCommandEventArgs(WillowTreeMain willowTreeMain, PluginCommand command) { _Command = command; _WTM = willowTreeMain; }
public PluginEventArgs(WillowTreeMain willowTreeMain, string filename) { _Filename = filename; _WTM = willowTreeMain; }