private void BtnNameNew_Click(object sender, RoutedEventArgs e) { Listen.AddPerson addp = new Listen.AddPerson(cNR.name,true); addp.ShowDialog(); DGNameInDB.ItemsSource = null; }
private void BtnAdd_Click(object sender, RoutedEventArgs e) { AddPerson ad = new AddPerson("Name, Vorname", true); ad.ShowDialog(); dgPersonen.ItemsSource = null; dgPersonen.ItemsSource = Admin.conn.Person; }
private void BtnEditClick(object sender, RoutedEventArgs e) { Person sel = dgPersonen.SelectedItem as Person; AddPerson ad = new AddPerson(sel.PersonID.ToString(), false); ad.ShowDialog(); dgPersonen.ItemsSource = null; dgPersonen.ItemsSource = Admin.conn.Person; }