Exemplo n.º 1
0
 private void btnABMBajaCrucero_Click(object sender, EventArgs e)
 {
     AbmCrucero.BajaCrucero form = new BajaCrucero();
     form.StartPosition = FormStartPosition.CenterScreen;
     form.Show();
     this.Dispose();
 }
 private void dataGridViewCrucero_CellContentClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.ColumnIndex == 0)
     {
         String           id               = dataGridViewCrucero[2, e.RowIndex].Value.ToString();
         int              fila             = e.RowIndex;
         DataGridView     tablaCruceros    = dataGridViewCrucero;
         ModificarCrucero modificarCrucero = new ModificarCrucero(this, id, tablaCruceros, fila);
         modificarCrucero.Show();
     }
     else if (e.ColumnIndex == 1)
     {
         String      id          = dataGridViewCrucero[2, e.RowIndex].Value.ToString();
         BajaCrucero bajaCrucero = new BajaCrucero(this, Int32.Parse(id));
         bajaCrucero.Show();
     }
 }