Ejemplo n.º 1
0
        private void btnDelete_Click(object sender, EventArgs e)
        {
            c.ContactID = Convert.ToInt32(txtContactID.Text);
            // Update Datbase
            bool success = c.DELETE(c);

            if (success == true)
            {
                // updated successfully
                MessageBox.Show("Contact has been successfully Removed");
                LoadData();
                Clear();
            }
            else
            {
                MessageBox.Show("Contact failed to Delete");
            }
        }