Beispiel #1
0
 private void modificarToolStripMenuItem_Click(object sender, EventArgs e)
 {
     try
     {
         String id     = dataGridView1.CurrentRow.Cells[0].Value.ToString();
         Taller taller = control.consultarTaller(id);
         //MessageBox.Show("Reporte referente al grupo "+ grupo.codigo);
         FormTalleres fa = new FormTalleres(taller);
         fa.FormClosed += new FormClosedEventHandler(form_Closed);
         fa.Show();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
 private void cmbTalleres_SelectedIndexChanged(object sender, EventArgs e)
 {
     try
     {
         taller = control.consultarTaller(auxId.ElementAt(cmbTalleres.SelectedIndex));
         cmbTipoCosto_SelectedIndexChanged(null, null);
     }
     catch (Exception ex)
     {
         MessageBox.Show("Error al obtener datos del taller");
     }
 }