private void btnSuaSanPham_Click(object sender, EventArgs e)
        {
            if (gvHangHoa.GetFocusedRow() == null)
            {
                return;
            }
            product       pro = (product)gvHangHoa.GetFocusedRow();
            FrmSuaSanPham frm = new FrmSuaSanPham();

            frm.p = pro;
            frm.ShowDialog();
            DialogResult d = frm.DialogResult;

            if (d == DialogResult.OK)
            {
                btnDanhMucLamMoi.PerformClick();
                XtraMessageBox.Show("Sửa sản phẩm thành công", this.Text, MessageBoxButtons.OK, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1);
            }
        }
 private void btnSuaSanPham_Click(object sender, EventArgs e)
 {
     if (gvHangHoa.GetFocusedRow() == null) return;
     product pro = (product)gvHangHoa.GetFocusedRow();
     FrmSuaSanPham frm = new FrmSuaSanPham();
     frm.p = pro;
     frm.ShowDialog();
     DialogResult d = frm.DialogResult;
     if(d == DialogResult.OK)
     {
         btnDanhMucLamMoi.PerformClick();
         XtraMessageBox.Show("Sửa sản phẩm thành công", this.Text, MessageBoxButtons.OK, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1);
     }
 }