private void DeleteMod(ModFile mod) { DialogResult result = MessageBox.Show("Do you want to create a backup before deleting '" + mod.Name + "'?", "Delete Mod", MessageBoxButtons.YesNoCancel); try { if (result == DialogResult.Yes) { modHelper.BackupMod(mod); modHelper.DeleteMod(mod); } else if (result == DialogResult.No) { modHelper.DeleteMod(mod); } ReloadModlist(); SetStatus("Mod " + mod.Name + " deleted"); } catch (Exception) { MessageBox.Show("The mod couln't be deleted. Please close the game first!"); } }