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

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

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

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

            UseWaitCursor = true;
            Application.DoEvents();

            try
            {
                ContributeFine contributeFine = enforceLawGridViewContributeFine.SelectedRows[0].Tag as ContributeFine;
                frmEditContributeFine frm = new frmEditContributeFine(contributeFine);
                frm.OpenWindow(this);
            }
            catch (Exception ex)
            {
                CommonInvoke.ErrorMessageBox(ex);
            }

            UseWaitCursor = false;
        }