Sie sind auf Seite 1von 1

using System;

using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ContadorLoc
{
/* Programa: Conteo de LOC
* Programador: Leidy Johanna Collazos
* Descripción: Realizar el contéo de LOC
*/
public partial class Principal : Form
{
int index =0;
int locTotal = 0;

public Principal()
{
InitializeComponent();
}

//Este botón realiza la solicitud del archivo


private void btnAbrir_Click(object sender, EventArgs e)
{
Contador abrir = new Contador();
abrir.obtenerArchivo();
dgTablaValores.Rows.Add(abrir.nombre, abrir.metodo, abrir.linea,0);
index = index + 1;
locTotal = locTotal + abrir.linea;
}

//Este botón realiza el calculo


private void btnCalcular_Click(object sender, EventArgs e)
{
dgTablaValores.Rows.Add(0, 0, 0, locTotal);
}
}
}

Das könnte Ihnen auch gefallen