private void Add_Click(object sender, EventArgs e)
        {
            FrmDetailProduct detailProduct = new FrmDetailProduct();

            detailProduct.MdiParent = this.MdiParent;
            detailProduct.Show();
            this.Close();
        }
 private void Update_Click(object sender, EventArgs e)
 {
     if (dgvProducts.SelectedRows.Count > 0)
     {
         var id = (int)dgvProducts.SelectedRows[0].Cells["ProductID"].Value;
         FrmDetailProduct detailProduct = new FrmDetailProduct(id);
         detailProduct.SetProducts(id);
         detailProduct.Show();
         this.Close();
     }
 }