Example #1
0
        private void btnNuevo_Click(object sender, EventArgs e)
        {
            frmDeclarante Formulario = new frmDeclarante("INS", "");

            if (Formulario.ShowDialog(this) == DialogResult.OK)
            {
                cs_pxDgvcambio();
            }
            Formulario.Dispose();
        }
Example #2
0
        private void btnEliminar_Click(object sender, EventArgs e)
        {
            frmDeclarante Formulario = new frmDeclarante("DLT", this.dgvDeclarantes.CurrentRow.Cells[0].Value.ToString());

            if (Formulario.ShowDialog() == DialogResult.OK)
            {
                cs_pxDgvcambio();
            }
            Formulario.Dispose();
        }
Example #3
0
 private void dgvDeclarantes_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
 {
     if (dgvDeclarantes.Rows.Count > 0)
     {
         frmDeclarante Formulario = new frmDeclarante("UPD", this.dgvDeclarantes.CurrentRow.Cells[0].Value.ToString());
         if (Formulario.ShowDialog() == DialogResult.OK)
         {
             cs_pxDgvcambio();
             resultado = DialogResult.OK;
         }
         Formulario.Dispose();
     }
 }