Пример #1
0
        private void RegisterChanges()
        {
            //Guardar focus
            int dgvIndex = dgvProductColor.CurrentRow.Index;

            Modify = false;
            clsProduct aDiv = new clsProduct();

            aDiv = TextToDivision(Convert.ToInt32(dgvProductColor.CurrentRow.Cells[0].Value));
            aDiv.UpdateGIProduct();
            DeactivateTexts();
            ProductToText(aDiv);
            lstPro.AllProducts(txtSearch.Text, cboFilter.SelectedValue);
            dgvProductColor.Rows[dgvIndex].Selected = true;
            MessageBox.Show("Le produit a été mise à jour correctement", "Exclamation", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
        }