private void RandomizeTables() { lbl_Status.Text = "Randomizing TBL data..."; List <bool> options = new List <bool>(); for (int i = 0; i < checkedListBox_Tables.Items.Count; i++) { options.Add(ConvertCheckState(checkedListBox_Tables.GetItemCheckState(i))); } switch (game) { case "Persona 3 FES": Persona3FesTableRandomizer.Randomize(txtBox_TableInput.Text, options.ToArray(), checkBox_BossRush.Checked); break; case "Persona 4": Persona4TableRandomizer.Randomize(txtBox_TableInput.Text, options.ToArray(), false, checkBox_BossRush.Checked); break; case "Persona 4 Golden": Persona4TableRandomizer.Randomize(txtBox_TableInput.Text, options.ToArray(), true, checkBox_BossRush.Checked); break; case "Persona 5": if (options[0]) { AtlusTableRandomizer.Program.Randomize(txtBox_TableInput.Text, checkBox_BossRush.Checked); } break; } }
private void RandomizeTables() { lbl_Status.Text = "Randomizing TBL data..."; List <string> options = new List <string>(); foreach (var item in checkedListBox_Tables.CheckedItems) { options.Add(item.ToString()); } switch (game) { case "Persona 3 FES": Persona3FesTableRandomizer.Randomize(txtBox_TableInput.Text, options, checkBox_BossRush.Checked); break; case "Persona 4": Persona4TableRandomizer.Randomize(txtBox_TableInput.Text, options, false, checkBox_BossRush.Checked); break; case "Persona 4 Golden": Persona4TableRandomizer.Randomize(txtBox_TableInput.Text, options, true, checkBox_BossRush.Checked); break; case "Persona 5": case "Persona 5 Royal": AtlusTableRandomizer.Program.Randomize(txtBox_TableInput.Text, options, checkBox_BossRush.Checked, txtBox_ExcludedUnits.Text); break; } }