private void dodajobecnosc_Click(object sender, RoutedEventArgs e) { try { Uzytkownik usr = (Uzytkownik)uczen2.SelectedItem; int czy = obecnosc.SelectedIndex; string datav = data2.SelectedDate.Value.ToShortDateString(); DBhelp.DodajObecnosc(usr.id, czy, datav); dziennik.ItemsSource = DBhelp.ObecnosciKlasa(1); } catch (NullReferenceException exception) { } }
private void OnLoadTable(object sender, RoutedEventArgs e) { dziennik.ItemsSource = DBhelp.ObecnosciKlasa(1); }
private void Button_Click_1(object sender, RoutedEventArgs e) { dziennik.ItemsSource = DBhelp.ObecnosciKlasa(2); }
private void OnLoadTable(object sender, RoutedEventArgs e) { oceny.ItemsSource = DBhelp.OcenyPrzedmioty(1); obecnosci.ItemsSource = DBhelp.ObecnosciKlasa(1); }
private void Button_Click_1(object sender, RoutedEventArgs e) { oceny.ItemsSource = DBhelp.OcenyPrzedmioty(2); obecnosci.ItemsSource = DBhelp.ObecnosciKlasa(2); }