// start add
 private void BtnSave_Click(object sender, EventArgs e)
 {
     if (ValidateChildren(ValidationConstraints.Enabled))
     {
         Product pro = new Product();
         pro.ProductID            = txtProductID.Text.Trim();
         pro.ProductName          = txtProductName.Text;
         pro.Description          = txtDescription.Text;
         pro.Package              = txtPackage.Text;
         pro.NumberPackage        = 0;
         pro.Subpackage           = txtSubpacakge.Text;
         pro.NumberSub            = 0;
         pro.PricePackage         = 0;
         pro.PriceToExportPackage = 0;
         pro.PriceToExportSub     = 0;
         pro.CountSubExport       = 0;
         bool check = ProDAO.insertProduct(pro);
         if (check)
         {
             MessageBox.Show("Create product successful", "Notification");
             this.Hide();
             frmImport ip = new frmImport(userID, importFrom, listImport);
             ip.ShowDialog();
             this.Close();
         }
         else
         {
             MessageBox.Show("Create product fail", "Warning");
             this.Hide();
             frmImport ip = new frmImport(userID, importFrom, listImport);
             ip.ShowDialog();
             this.Close();
         }
     }
 }
        private void BtnBack_Click(object sender, EventArgs e)
        {
            this.Hide();
            frmImport import = new frmImport(userID, importFrom, listImport);

            import.ShowDialog();
            this.Close();
        }
 private void Button1_Click(object sender, EventArgs e)
 {
     if (ValidateChildren(ValidationConstraints.Enabled))
     {
         string ip = txtImportFrom.Text;
         this.Hide();
         frmImport dt = new frmImport(userID, ip);
         dt.ShowDialog();
         this.Close();
     }
 }