private void generateToolStripMenuItem1_Click(object sender, EventArgs e) { Class c = classes[classBox.SelectedIndex]; GennedTypes gt = new GennedTypes(); gt.txt = $"{c.id},{c.intname},{c.name},{c.money},{c.bgmusic},{c.victorymusic},{c.intromusic},{c.gender},{c.skill},"; gt.Show(); }
private void generateToolStripMenuItem2_Click(object sender, EventArgs e) { classes.Sort(delegate(Class c1, Class c2) { return(c1.id.CompareTo(c2.id)); }); classBinder.ResetBindings(false); string ret = null; for (int a = 0; a < classes.Count; a++) { Class c = classes[a]; ret += $"{c.id},{c.intname},{c.name},{c.money},{c.bgmusic},{c.victorymusic},{c.intromusic},{c.gender},{c.skill},"; if (a != classes.Count - 1) { ret += "\r\n"; } } GennedTypes gt = new GennedTypes(); gt.txt = ret; gt.Show(); }