コード例 #1
0
        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;
        }
コード例 #2
0
 public PluginCommandEventArgs(WillowTreeMain willowTreeMain, PluginCommand command)
 {
     _Command = command;
     _WTM     = willowTreeMain;
 }
コード例 #3
0
 public PluginEventArgs(WillowTreeMain willowTreeMain, string filename)
 {
     _Filename = filename;
     _WTM      = willowTreeMain;
 }