private void ToolStripMenuItem_DebugMod_Click(object sender, EventArgs e)
 {
     if(Debug)
     {
         Debug = false;
         this.Invoke((MethodInvoker)delegate { ToolStripMenuItem_DebugMod.Text = "Debug: Désactivé"; });
         ConfigurationManager.AddEntry(new ConfigEntry(false, ConfigType.BOOLEAN, "DebugMod"));
     }
     else
     {
         Debug = true;
         this.Invoke((MethodInvoker)delegate { ToolStripMenuItem_DebugMod.Text = "Debug: Activé"; });
         ConfigurationManager.AddEntry(new ConfigEntry(true, ConfigType.BOOLEAN, "DebugMod"));
     }
 }
        private void Button_Apply_Click(object sender, EventArgs e)
        {
            if (TextBox_Path.Text.Contains("dofus") == false)
            {
                MessageBox.Show("Répertoire invalide.", "Erreur", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }

            ConfigurationManager.AddEntry(new Utils.Config.ConfigEntry(TextBox_Path.Text, Utils.Config.ConfigType.STRING, "GamePath"));
            ConfigurationManager.SerializeConfig();

            this.Invoke((MethodInvoker) delegate
            {
                Close();
                Dispose();
            });
        }