public void OnSelected(IGame selectedGame) { DialogResult do_continue = MessageBox.Show("Package " + selectedGame.Title + "? ", "", MessageBoxButtons.YesNo); if (do_continue == DialogResult.No) { return; } Dispatch.Gentrify(selectedGame); MessageBox.Show("All Done!"); }
public void OnSelected(IGame[] selectedGames) { DialogResult do_continue = MessageBox.Show("Package " + selectedGames.Length + " roms ?", "", MessageBoxButtons.YesNo); if (do_continue == DialogResult.No) { return; } foreach (IGame game in selectedGames) { Dispatch.Gentrify(game); } MessageBox.Show("All Done! " + selectedGames.Length + " roms have been packaged."); }
public void OnSelected() { string msg = "This will rename all roms, vidoes, and folders to match the games title. This operation cannot be undone."; DialogResult do_continue = MessageBox.Show(msg + "\n\nAre you sure you want to continue?", "", MessageBoxButtons.YesNo); if (do_continue == DialogResult.No) { return; } IGame[] games = PluginHelper.DataManager.GetAllGames(); foreach (IGame game in games) { Dispatch.Gentrify(game); } MessageBox.Show("All Done! " + games.Length + " roms have been packaged."); }