Ejemplo n.º 1
0
        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();
            }
        }
Ejemplo n.º 2
0
 private void button2_Click(object sender, EventArgs e)
 {
     if (comboCarro.SelectedIndex == -1)
     {
         MessageBox.Show("Debe seleccionar un material mayor", "alerta", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
     else
     {
         Frm614 frm614 = new Frm614(comboCarro.Text, Convert.ToInt32(comboCarro.SelectedValue.ToString()));
         frm614.ShowDialog();
     }
 }