private void ListViewIgralcev_MouseDoubleClick(object sender, MouseButtonEventArgs e) { int id = PridobiID(ListViewIgralcev.SelectedItem.ToString()); if (id > 0) { foreach (var item in sportniks) { if (item.id == id) { EnSportnik enSportnik = new EnSportnik(item); enSportnik.ShowDialog(); } } } else { MessageBox.Show("Napaka"); } }
private void DodajSportnika_Click(object sender, RoutedEventArgs e) { EnSportnik enSportnik = new EnSportnik(); enSportnik.ShowDialog(); }