Exemplo n.º 1
0
        private void btn_delete_Click(object sender, EventArgs e)
        {
            Guid id = ((contacts)lst_list.SelectedItem).id;

            BusinessLogicLayer.BLL BLL = new BusinessLogicLayer.BLL();
            int ReturnValues           = BLL.deleteContact(id);

            if (ReturnValues > 0)
            {
                MessageBox.Show("Successful!! Record Deleted", "Info", MessageBoxButtons.OK, MessageBoxIcon.Information);
                addList();
            }
            else
            {
                MessageBox.Show("Something wrong", "Info", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }