예제 #1
0
 private void BtnNameNew_Click(object sender, RoutedEventArgs e)
 {
     Listen.AddPerson addp = new Listen.AddPerson(cNR.name,true);
     addp.ShowDialog();
     DGNameInDB.ItemsSource = null;
    
 }
예제 #2
0
        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;
        }
예제 #3
0
        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;
        }