private void BtnUpdate_Click(object sender, EventArgs e) { string name = txtMedicine.Text.Trim(); string price = txtPrice.Text.Trim(); if (name == "" || price == "") { MessageBox.Show("Cells is empty !", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information); return; } _pharmacy.UpdateMedicines(ID, name, price); RefreshData(); }