예제 #1
0
        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!");
            }
        }
예제 #2
0
        private void DodajSportnika_Click(object sender, RoutedEventArgs e)
        {
            EN_EnSportnik enSportnik = new EN_EnSportnik();

            enSportnik.ShowDialog();
        }