jueves, 17 de diciembre de 2009

Practica 13.2 Visual





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 Clase_Estudiante_W
{
public partial class Form1 : Form
{
int C = 0, NOCONTROL=0;
float EXAMEN;

estudiante E1 = new estudiante();
public Form1()
{

InitializeComponent();

}

private void button1_Click(object sender, EventArgs e)
{
CO.Focus();
NOCONTROL = int.Parse(CO.Text);
E1.INTRODUCEIDE(NOCONTROL);

C = int.Parse(MA.Text);

for(int I=1;I

{

EXAMEN=float.Parse(CA.Text);
E1.INTRODUCECALIFICACION(EXAMEN);
listBox1.Items.Add(EXAMEN);

CA.Clear();
CA.Focus();


}



}

private void button2_Click(object sender, EventArgs e)
{

listBox1.Items.Add("No. Control: " + E1.MOSTRARIDE());
MessageBox.Show("Numero de control : " + E1.MOSTRARIDE() + "\n" + "Promedio : " + E1.PROMEDIO());



}

private void button3_Click(object sender, EventArgs e)
{
CO.Clear();
MA.Clear();
CA.Clear();
listBox1.Items.Clear();
}

private void button4_Click(object sender, EventArgs e)
{
Application.Exit();
}
}
}

No hay comentarios:

Publicar un comentario