private void btnAdd_Click(object sender, RoutedEventArgs e) { Let noviLet = new Let(); AddNEditLet few = new AddNEditLet(noviLet); bool? rez = few.ShowDialog(); DGLetovi.Items.Refresh(); }
private void btnUpdate_Click(object sender, RoutedEventArgs e) { while (SelektovaniLet()) { return; } Let selektovaniLet = DGLetovi.SelectedItem as Let; AddNEditLet few = new AddNEditLet(selektovaniLet, AddNEditLet.EOpcija.IZMENA); if (few.ShowDialog() == true) { DGLetovi.Items.Refresh(); } }