Interaction logic for StudentWindow.xaml
Inheritance: System.Windows.Window
Example #1
0
 private void Nova_Click(object sender, RoutedEventArgs e)
 {
     StudentWindow w = new StudentWindow( lista);
     //Vraća true/false Dialog result
     bool res = (bool)w.ShowDialog();
     //kreiran novi student
     if (res)
     {
         dg_studenti.ItemsSource = null;
         dg_studenti.ItemsSource = lista;
     }
 }
Example #2
0
        private void Nova_Click(object sender, RoutedEventArgs e)
        {
            StudentWindow w = new StudentWindow(lista);
            //Vraća true/false Dialog result
            bool res = (bool)w.ShowDialog();

            //kreiran novi student
            if (res)
            {
                dg_studenti.ItemsSource = null;
                dg_studenti.ItemsSource = lista;
            }
        }