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) { EN_EnSportnik enSportnik = new EN_EnSportnik(item); enSportnik.ShowDialog(); } } } else { MessageBox.Show("Error!"); } }
private void DodajSportnika_Click(object sender, RoutedEventArgs e) { EN_EnSportnik enSportnik = new EN_EnSportnik(); enSportnik.ShowDialog(); }