Esempio n. 1
0
 private void button1_Click(object sender, EventArgs e)
 {
     try
     {
         VerMoficarBitacora vermod = null;
         if (comboBox1.SelectedIndex == 0)
         {
             Int64 numero = Int64.Parse(dataGridView1.SelectedRows[0].Cells[0].Value.ToString());
             vermod = new VerMoficarBitacora(numero, comboBox1.Text);
         }
         else
         {
             Int64 numero = Int64.Parse(dataGridView2.SelectedRows[0].Cells[0].Value.ToString());
             vermod = new VerMoficarBitacora(numero, comboBox1.Text);
         }
         vermod.MdiParent = Bienvenida.ActiveForm;
         vermod.Show();
     }
     catch { MessageBox.Show("No hay ninguna Entrada para modificar."); }
 }
 private void button1_Click(object sender, EventArgs e)
 {
     try
     {
         VerMoficarBitacora vermod = null;
         if (comboBox1.SelectedIndex == 0)
         {
             Int64 numero = Int64.Parse(dataGridView1.SelectedRows[0].Cells[0].Value.ToString());
             vermod = new VerMoficarBitacora(numero, comboBox1.Text);
         }
         else
         {
             Int64 numero = Int64.Parse(dataGridView2.SelectedRows[0].Cells[0].Value.ToString());
             vermod = new VerMoficarBitacora(numero, comboBox1.Text);
         }
         vermod.MdiParent = Bienvenida.ActiveForm;
         vermod.Show();
     }
     catch { MessageBox.Show("No hay ninguna Entrada para modificar."); }
 }