private void toolStripButtonEdit_Click(object sender, EventArgs e)
        {
            if (enforceLawGridViewfrmCompanyDangerChemicalsProduces.SelectedRows.Count == 0)
                return;

            if (enforceLawGridViewfrmCompanyDangerChemicalsProduces.SelectedRows[0].Tag == null)
                return;

            UseWaitCursor = true;
            Application.DoEvents();

            try
            {
                CompanyDangerChemicalsProduce CompanyDangerChemicalsProduce = enforceLawGridViewfrmCompanyDangerChemicalsProduces.SelectedRows[0].Tag as CompanyDangerChemicalsProduce;
                CompanyDangerChemicalsProduce.Company = (Company)InvokeUtil.SystemService.EntityInit(new Company { CompanyID = CompanyDangerChemicalsProduce.CompanyID });
                frmCompanyDangerChemicalsProduce frm = new frmCompanyDangerChemicalsProduce(CompanyDangerChemicalsProduce);
                frm.OpenWindow(this);
            }
            catch (Exception ex)
            {
                CommonInvoke.ErrorMessageBox(ex);
            }

            UseWaitCursor = false;
        }
        private void toolStripButtonAdd_Click(object sender, EventArgs e)
        {
            UseWaitCursor = true;
            Application.DoEvents();

            try
            {
                frmCompanyDangerChemicalsProduce frm = new frmCompanyDangerChemicalsProduce();
                frm.OpenWindow(this);
            }
            catch (Exception ex)
            {
                CommonInvoke.ErrorMessageBox(ex);
            }

            UseWaitCursor = false;
        }