Пример #1
0
        private void btnSearchBooks_Click(object sender, EventArgs e)
        {
            PersonV2 temp = new PersonV2();

            DataSet ds = temp.SearchPersonV2(textFname.Text, textLname.Text);

            dgvResults.DataSource = ds;
            dgvResults.DataMember = ds.Tables["PersonV2_Temp"].ToString();
        }
Пример #2
0
        private void btnDelete_Click(object sender, EventArgs e)
        {
            Int32 intPerson_ID = Convert.ToInt32(lblPersonID.Text);  //Get the ID from the Label

            //Create a EBook so we can use the delete method
            PersonV2 temp = new PersonV2();

            //Use the EBook ID and pass it to the delete function
            // and get the number of records deleted
            lblFeedback.Text = temp.DeleteOnePerson(intPerson_ID);
        }