private void button3_Click(object sender, EventArgs e) { String chosenEvName = listView1.SelectedItems[0].SubItems[0].Text; String chosenEvPic = listView1.SelectedItems[0].SubItems[2].Text; PictureView picWin = new PictureView(chosenEvPic, chosenEvName); picWin.Show(); }
private void button2_Click(object sender, EventArgs e) { String chosenHandStr = comboBox1.SelectedItem.ToString(); Event chosenEv = new Game.Event(new String[5]); foreach (Event handEv in curPlayer.hand) { if (handEv.name == chosenHandStr) { chosenEv = handEv; break; } } PictureView picWin = new PictureView(chosenEv.picture, chosenEv.name); picWin.Show(); }