Ejemplo n.º 1
0
        private void btnEditProduct_Click(object sender, EventArgs e)
        {//gender
            int ID = categoryBLL.getID(cbCategori.Text);

            if (productbll.getcountitem(txtProduct.Text) == 0)
            {
                productbll.Updateproduct(int.Parse(row.Cells[0].Value.ToString()), txtProduct.Text, "a", Int32.Parse(txtprice.Text), Int32.Parse(cbSize.Text), cbBrand.Text, colorpro, "nam", Int32.Parse(nudAmount.Text), txtDesc.Text, ID);
                listProduct.hienthi();
                this.Close();
            }
            else
            {
                MessageBox.Show("Trùng tên sản phẩm", "Thông báo");
            }
        }