private void Insert_Action() { DataAcces db = new DataAcces(); db.InsertPerson(firstNameTextBox.Text, lastNameTextBox.Text, idTextBox.Text); firstNameTextBox.Text = lastNameTextBox.Text = idTextBox.Text = ""; }
//acces the database and shows it on a list box private void Search_Action() { DataAcces db = new DataAcces(); people = db.GetPeople(lastNameTextBox.Text); UpdateBinding(); }
private void DeleteButton_Click(object sender, System.Windows.RoutedEventArgs e) { DataAcces db = new DataAcces(); db.DeletPerson(idTextBox.Text); firstNameTextBox.Text = lastNameTextBox.Text = idTextBox.Text = ""; }