Esempio n. 1
0
        //Delete mod configuration button
        private void btnDeleteModConfig_Click(object sender, EventArgs e)
        {
            string modconfig = cboModConfig.Text;

            if (modconfig.Equals("Default"))
            {
                return;
            }

            if (ModMan.ConfigExists(modconfig))
            {
                ModMan.RemoveConfig(modconfig);
                ModMan.Configs.Remove(modconfig);
                cboModConfig.Items.Remove(modconfig);

                //Switch back to default config
                cboModConfig.SelectedItem = "Default";
            }
        }