private void btnEdit_Click(object sender, RoutedEventArgs e) { if (dgNamestaj.SelectedItem != null) { DpNamestaj dpNamestaj = new DpNamestaj((Namestaj)dgNamestaj.SelectedItem); dpNamestaj.ShowDialog(); } }
private void btnAdd_Click(object sender, RoutedEventArgs e) { DpNamestaj dpNamestaj = new DpNamestaj(); dpNamestaj.ShowDialog(); }