private void btnAdd_Click(object sender, RoutedEventArgs e) { Aerodrom noviAerodrom = new Aerodrom(); AddNEditWindow few = new AddNEditWindow(noviAerodrom); bool? rez = few.ShowDialog(); DGAerodromi.Items.Refresh(); }
private void btnUpdate_Click(object sender, RoutedEventArgs e) { while (SelektovaniAerodrom()) { return; } Aerodrom selektovaniAerodrom = DGAerodromi.SelectedItem as Aerodrom; AddNEditWindow few = new AddNEditWindow(selektovaniAerodrom, AddNEditWindow.EOpcija.IZMENA); if (few.ShowDialog() == true) { DGAerodromi.Items.Refresh(); } }