private void buttonNotas_Click(object sender, EventArgs e) { int contador = 0; int[] NotasOrdenParcial1 = new int[ArregloNotas.Length - 1]; int[] NotasOrdenParcial2 = new int[ArregloNotas.Length - 1]; int[] NotasOrdenParcial3 = new int[ArregloNotas.Length - 1]; foreach (string linea in ArregloNotas) { if (contador != 0) { string[] datos = linea.Split(';'); NotasOrdenParcial1[contador - 1] = int.Parse(datos[2]); NotasOrdenParcial2[contador - 1] = int.Parse(datos[3]); NotasOrdenParcial3[contador - 1] = int.Parse(datos[4]); } contador++; } ClsArreglos ObjNotas1 = new ClsArreglos(NotasOrdenParcial1); ClsArreglos ObjNotas2 = new ClsArreglos(NotasOrdenParcial2); ClsArreglos ObjNotas3 = new ClsArreglos(NotasOrdenParcial3); resultado1 = ObjNotas1.MetodoBurbujaNotas1(); resultado2 = ObjNotas2.MetodoInsercionNotas2(); resultado3 = ObjNotas3.MetodoSeleccionNotas3(); for (int i = 0; i < resultado1.Length; i++) { listBoxResultado.Items.Add($"Nota 1> {resultado1[i]}\tNota 2> {resultado2[i]}\tNota 3> {resultado3[i]}"); } }