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

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

            UseWaitCursor = false;
        }
        private void toolStripButtonEdit_Click(object sender, EventArgs e)
        {
            if (enforceLawGridViewAdministrativePenaltyCompany.SelectedRows.Count == 0)
                return;

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

            UseWaitCursor = true;
            Application.DoEvents();

            try
            {
                AdministrativePenaltyCompany administrativePenaltyCompany = enforceLawGridViewAdministrativePenaltyCompany.SelectedRows[0].Tag as AdministrativePenaltyCompany;
                frmAdministrativePenaltyCompany frm = new frmAdministrativePenaltyCompany(administrativePenaltyCompany);
                frm.OpenWindow(this);
            }
            catch (Exception ex)
            {
                CommonInvoke.ErrorMessageBox(ex);
            }

            UseWaitCursor = false;
        }