示例#1
0
 private void button1_Click(object sender, EventArgs e)
 {
     try
     {
         ReporteExp reporte = new ReporteExp(Int32.Parse(dataGridView1.SelectedRows[0].Cells[0].Value.ToString()), dataGridView1.SelectedRows[0].Cells[13].Value.ToString());
         reporte.MdiParent = Sistema_Caritas.Bienvenida.ActiveForm;
         reporte.Show();
     }
     catch
     {
         MessageBox.Show("Error al ver el documento", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
 private void button1_Click(object sender, EventArgs e)
 {
     try
     {
         ReporteExp reporte = new ReporteExp(Int32.Parse(dataGridView1.SelectedRows[0].Cells[0].Value.ToString()), dataGridView1.SelectedRows[0].Cells[13].Value.ToString());
         reporte.MdiParent = Sistema_Caritas.Bienvenida.ActiveForm;
         reporte.Show();
     }
     catch
     {
         MessageBox.Show("Error al ver el documento", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }