private void btnPromena_Click(object sender, RoutedEventArgs e) { try { DataRowView row = (DataRowView)TabelaReferenti.SelectedItems[0]; pnlRight.Children.Clear(); ReferentIzmeniPodatke rp = new ReferentIzmeniPodatke(row, TabelaReferenti); pnlRight.Children.Add(rp); } catch (Exception ex) { Console.WriteLine(ex); } }
private void btnIzmeni_Click(object sender, RoutedEventArgs e) { try { DataRowView row = (DataRowView)TabelaReferenti.SelectedItems[0]; pnlRight.Children.Clear(); ReferentIzmeniPodatke rp = new ReferentIzmeniPodatke(row, TabelaReferenti); pnlRight.Children.Add(rp); } catch (Exception ex) { MessageBox.Show("Niste izabrali"); } }