Pseudocodigo

.jpg)
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_b__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();
}
private void button2_Click_1(object sender, EventArgs e)
{
C.Clear();
listBox1.Items.Clear();
}
private void button3_Click_1(object sender, EventArgs e)
{
Close();
}
}
}

No hay comentarios:
Publicar un comentario