Interaction logic for StudentWindow.xaml
상속: System.Windows.Window
예제 #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;
     }
 }
예제 #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;
            }
        }