Пример #1
0
        private void buttonCargar_Click_1(object sender, EventArgs e)
        {
            ClsArchivo archivo = new ClsArchivo();

            string[] filas = archivo.obtenerFilas();

            textBoxResultado.Text = "Listo, el archivo está cargado";
            this.matriz           = arreglo.arregloDosDimensiones(filas, 7);
        }
Пример #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            ClsArchivo archivo = new ClsArchivo();

            string[] filas = archivo.obtenerFilas();

            foreach (string linea in filas)
            {
                this.Archivo.Items.Add(linea);
            }



            this.matriz = arreglo.DosDimensiones(filas, 7);
        }
Пример #3
0
        private void button1_Click(object sender, EventArgs e)
        {
            /**
             * SE ABRE EL ARCHIVO
             */
            ClsArchivo archivo = new ClsArchivo();   //La clase abre la ventana de dialogo

            this.textBox1.Text = archivo.ruta;       //Se pasa la ruta del archivo al texbox del formdulario;
            string[] filas = archivo.obtenerFilas(); //SE OBTIENEN LAS FILAS DEL ARCHIVO

            /**
             * SE CARGAN LAS FILAS DEL ARCHIVO EN UN LIST BOX
             */
            foreach (string linea in filas)
            {
                this.listArchivo.Items.Add(linea);
            }

            /*
             * SE CONVIERTE EL ARREGLO DE UNA DIMENSION EN DOS DIMENSIONES
             */

            this.matriz = arreglo.DosDimensiones(filas, 7);
        }