Пример #1
0
        private void searchButton_Click(object sender, EventArgs e)
        {
            DataAcces db = new DataAcces();

            people = db.GetPeople(lastNameText.Text);

            UpdateBinding();
        }
Пример #2
0
        private void insertRecordButton_Click(object sender, EventArgs e)
        {
            DataAcces db = new DataAcces();

            db.InsertPerson(firstNameInsText.Text, lastNameInsText.Text, emailInstText.Text, phoneNumberInstText.Text);

            firstNameInsText.Text    = "";
            lastNameInsText.Text     = "";
            emailInstText.Text       = "";
            phoneNumberInstText.Text = "";
        }