Exemplo n.º 1
0
 private void tbtnEdit_Click(object sender, EventArgs e)
 {
     if (dgOffenseList.SelectedRows.Count > 0)
     {
         frmOffenseEdit xForm = new frmOffenseEdit();
         xForm.FormOffenseList = this;
         xForm.FormCaller      = this;
         xForm.OffenseCode     = dgOffenseList.SelectedRows[0].Cells[0].Value.ToString();
         xForm.ShowDialog();
     }
 }
Exemplo n.º 2
0
        private void frmOffenseList_Load(object sender, EventArgs e)
        {
            this.WindowState = FormWindowState.Maximized;
            BindOffenseList();

            if (_strIndicator == "1")
            {
                frmOffenseEdit objfrmOffenseEdit = new frmOffenseEdit();
                objfrmOffenseEdit.MDIIpanema      = _mdiIpanema;
                objfrmOffenseEdit.FormCaller      = _mdiIpanema;
                objfrmOffenseEdit.OffenseCode     = _stroffensecode;
                objfrmOffenseEdit.FormOffenseList = this;
                objfrmOffenseEdit.ShowDialog();
            }
        }