private void Button_Click(object sender, RoutedEventArgs e) { DataAcc db = new DataAcc(); clientList = db.Getinfo(); Updatebinding(); }
/*Chritian og Nicolai har hjulpet med denne kode */ private void Button_Click_1(object sender, RoutedEventArgs e) { DataAcc db = new DataAcc(); db.InsertPrivat(FNamEbox.Text, LNamEbox.Text, Adrbox.Text, int.Parse(PsTBox.Text), TeLeBox.Text); FNamEbox.Text = ""; LNamEbox.Text = ""; TeLeBox.Text = ""; PsTBox.Clear(); Adrbox.Text = ""; }