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

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

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

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

            UseWaitCursor = true;
            Application.DoEvents();

            try
            {
                SpotHandelDesisionSixtyDay spotHandelDesisionSixtyDay = enforceLawGridViewSpotHandelDesisionSixtyDay.SelectedRows[0].Tag as SpotHandelDesisionSixtyDay;
                frmSpotHandelDesisionSixtyDay frm = new frmSpotHandelDesisionSixtyDay(spotHandelDesisionSixtyDay);
                frm.OpenWindow(this);
            }
            catch (Exception ex)
            {
                CommonInvoke.ErrorMessageBox(ex);
            }

            UseWaitCursor = false;
        }