![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicn-1dX92lDzG5N-KLJFYjuxOHozLaV2EkJxfS_qwAkS2qPf0RbVhvhw3lHI1Y908Z7pgzq_Vzzx4V0x07uYleP-vEZEWD5FJunH5ChGmFXBv6-rV4HdXHLIWMjZDzwxMCjNNZBfEyNqqi/s320/Dibujo+6.bmp)
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_1_problema_2_visual
{
public partial class Form1 : Form
{
double faren, cel;
public Form1()
{
faren = cel = 0;
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
}
private void label1_Click(object sender, EventArgs e)
{
}
private void tbfaren_TextChanged(object sender, EventArgs e)
{
}
private void btcalcular_Click(object sender, EventArgs e)
{
faren = double.Parse(tbfaren.Text);
cel = (5.0 / 9.0 * (faren - 32.0));
tbcel.Text = cel.ToString();
}
private void btlimpiar_Click(object sender, EventArgs e)
{
tbcel.Clear();
tbfaren.Clear();
}
private void btsalir_Click(object sender, EventArgs e)
{
Close();
No hay comentarios:
Publicar un comentario