コード例 #1
0
        private void Insert_Action()
        {
            DataAcces db = new DataAcces();

            db.InsertPerson(firstNameTextBox.Text, lastNameTextBox.Text, idTextBox.Text);

            firstNameTextBox.Text = lastNameTextBox.Text = idTextBox.Text = "";
        }
コード例 #2
0
        //acces the database and shows it on a list box
        private void Search_Action()
        {
            DataAcces db = new DataAcces();

            people = db.GetPeople(lastNameTextBox.Text);

            UpdateBinding();
        }
コード例 #3
0
        private void DeleteButton_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            DataAcces db = new DataAcces();

            db.DeletPerson(idTextBox.Text);

            firstNameTextBox.Text = lastNameTextBox.Text = idTextBox.Text = "";
        }