private void btnAdd_Click(object sender, RoutedEventArgs e) { Karta novaKarta = new Karta(); AddNEditKarta few = new AddNEditKarta(novaKarta); bool? rez = few.ShowDialog(); DGKarte.Items.Refresh(); }
private void btnUpdate_Click(object sender, RoutedEventArgs e) { while (SelektovanaKarta()) { return; } Karta selektovanaKarta = DGKarte.SelectedItem as Karta; AddNEditKarta few = new AddNEditKarta(selektovanaKarta, AddNEditKarta.EOpcija.IZMENA); if (few.ShowDialog() == true) { DGKarte.Items.Refresh(); } }