private void verCajasbtn_Click(object sender, EventArgs e) { using (showCajas sc = new showCajas(socio, id_envio, id_orden, id_carro, pallet)) { sc.ShowDialog(); } }
private void showPallet_Click(object sender, EventArgs e) { switch(socio){ case 1: break; case 2: break; case 3: using (showPallets sp = new showPallets(socio, preIdEnvio, preIdOrden, preIdCarro)) { sp.ShowDialog(); } break; case 4: using (showCajas sc = new showCajas(socio, preIdEnvio, preIdOrden, preIdCarro, "")) { sc.ShowDialog(); } break; } }