private void gvGps_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.ColumnIndex == 3)
            {
                ListadoCuarteles cuarteles = new ListadoCuarteles()
                {
                    Id_carro = Convert.ToInt32(gvGps.CurrentRow.Cells[0].Value.ToString())
                };
                cuarteles.ShowDialog();
                CargarGrilla();
            }

            if (e.ColumnIndex == 4)
            {
                Frm614 frm614 = new Frm614(gvGps.CurrentRow.Cells[1].Value.ToString(), Convert.ToInt32(gvGps.CurrentRow.Cells[0].Value.ToString()));
                frm614.ShowDialog();
                CargarGrilla();
            }

            if (e.ColumnIndex == 5)
            {
                Frm615 frm614 = new Frm615(gvGps.CurrentRow.Cells[1].Value.ToString(), Convert.ToInt32(gvGps.CurrentRow.Cells[0].Value.ToString()));
                frm614.ShowDialog();
                CargarGrilla();
            }
        }
Exemple #2
0
 private void button3_Click(object sender, EventArgs e)
 {
     if (comboCarro.SelectedIndex == -1)
     {
         MessageBox.Show("Debe seleccionar un material mayor", "alerta", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
     else
     {
         Frm615 frm615 = new Frm615(comboCarro.Text, Convert.ToInt32(comboCarro.SelectedValue.ToString()));
         frm615.ShowDialog();
     }
 }