martes, 10 de febrero de 2009

Programa 3 en windows ( convertidor grados )

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 WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
double farenheit, celsius;
farenheit = double.Parse(textBox1.Text);
celsius = 5.0 / 9.0 * (farenheit - 32);
textBox2.Text = celsius.ToString();
//08211334*RAMIREZ ARZATE FORTUNATO*//
}
private void textBox1_TextChanged(object sender, EventArgs e)
{
}
private void button3_Click(object sender, EventArgs e)
{
Close();
}
private void button2_Click(object sender, EventArgs e)
{
textBox1.Text = "";
textBox2.Text = "";
textBox1.Focus();
}
private void textBox2_TextChanged(object sender, EventArgs e)
{
}
}
}

No hay comentarios:

Publicar un comentario