コード例 #1
0
 private void btnCONSULTAS_Click(object sender, EventArgs e)
 {
     if (dgvDATA.CurrentRow == null)
     {
         MessageBox.Show("Debe seleccionar un parámetro", "ATENCION!!");
         return;
     }
     frmPARAMETROS_EQUIPO formPARAMETRO = new frmPARAMETROS_EQUIPO(cPARAMETROS.OBTENER_PARAMETRO(Convert.ToInt32(dgvDATA.CurrentRow.Cells[0].Value)), "C");
     DialogResult         dr            = formPARAMETRO.ShowDialog();
 }
コード例 #2
0
        private void btnMODIFICACIONES_Click(object sender, EventArgs e)
        {
            if (dgvDATA.CurrentRow == null)
            {
                MessageBox.Show("Debe seleccionar un parámetro", "ATENCION!!");
                return;
            }
            frmPARAMETROS_EQUIPO formPARAMETRO = new frmPARAMETROS_EQUIPO(cPARAMETROS.OBTENER_PARAMETRO(Convert.ToInt32(dgvDATA.CurrentRow.Cells[0].Value)), "M");
            DialogResult         dr            = formPARAMETRO.ShowDialog();

            if (dr == System.Windows.Forms.DialogResult.OK)
            {
                ARMA_GRILLA();
            }
        }