private void btnAdd_Click(object sender, RoutedEventArgs e)
        {
            Predmeti pr = new Predmeti(true);

            pr.ShowDialog();
            if (pr.izabrani.Count != 0)
            {
                foreach (Predmet x in pr.izabrani)
                {
                    x.prosek = true;
                    if (lista.Where(xx => xx.id == x.id).Count() == 0)
                    {
                        lista.Add(x);
                    }
                }
                lstPredmeti.ItemsSource = lista;
            }
        }
Beispiel #2
0
        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            Predmeti win = new Predmeti(false);

            win.Show();
        }