domingo, 11 de octubre de 2009

Practica 5.3 Visual c)


Pseudocodigo


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 Practica_5_3_c__Windows
{
public partial class Form1 : Form
{
int C1 = 0;
int cont = 0;
public Form1()
{


InitializeComponent();


}

private void button1_Click(object sender, EventArgs e)
{

C1 = int.Parse(C.Text);
if (cont == 5 || C1 == 999)
{
Close();
}

if ((C1 <> 100))
{
cont++;
label2.Text = ("Calificacion Invalida");

}
else
{
label2.Text = (" ");
listBox1.Items.Add(C1);
}


}

private void button3_Click(object sender, EventArgs e)
{
Close();

}

private void button2_Click(object sender, EventArgs e)
{
C.Clear();
listBox1.Items.Clear();

}


}
}

No hay comentarios:

Publicar un comentario