/// <summary> /// 6. Delete the info client in to the data base /// </summary> private void btnDelete_Click(object sender, EventArgs e) { // 1. Get client info from text boxes string idclient = txtidclient.Text.Trim(); try { // 2. Obj Controller clsInfo Controller = new clsInfo(); // 3. Deleteclient info Controller.DeleteClient(idclient); // 4. Loads the info client in to the dataGridView DisplayClients(); // 5. cleaan the text boxes CleanTextboxes(); // 6. Message MessageBox.Show("Msg : " + " " + " client has been deleted"); } catch (Exception ex) { MessageBox.Show("Error : " + " " + ex.Message); } }