Пример #1
0
 private void btnSpeak_Click(object sender, EventArgs e)
 {
     SpeakWithPlayer swp = new SpeakWithPlayer(youthcl.ElementAt(lstPlayers.SelectedIndex));
     youthcl.RemoveAt(lstPlayers.SelectedIndex);
     swp.Show();
     this.Close();
 }
Пример #2
0
 private void btnSpeak_Click(object sender, EventArgs e)
 {
     SpeakWithPlayer swp = new SpeakWithPlayer(list.ElementAt(lstFreePlayers.SelectedIndex));
     swp.Show();
     this.Close();
 }