private void generateToolStripMenuItem1_Click(object sender, EventArgs e) { if (moves.Count > 0) { Move m = moves[moveBox.SelectedIndex]; GeneratePokemon gp = new GeneratePokemon(); gp.gennedPokemon = $"{m.id},{m.intname},{m.name},{m.effect},{m.basepower},{m.type},{m.category},{m.accuracy},{m.pp},{m.addeff},{convertTarget(m.target)},{m.priority},{m.flags},\"{m.description}\""; gp.Show(); } else { MessageBox.Show("There are no moves to generate!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void generateToolStripMenuItem2_Click(object sender, EventArgs e) { if (moves.Count > 0) { string ret = null; for (int i = 0; i < moves.Count; i++) { Move m = moves[i]; ret += $"{m.id},{m.intname},{m.name},{m.effect},{m.basepower},{m.type},{m.category},{m.accuracy},{m.pp},{m.addeff},{convertTarget(m.target)},{m.priority},{m.flags},\"{m.description}\""; if (i != moves.Count - 1) { ret += "\r\n"; } } GeneratePokemon gp = new GeneratePokemon(); gp.gennedPokemon = ret; gp.Show(); } else { MessageBox.Show("There are no moves to generate!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }