SANTIGRAT - FAHRENEIT ÇEVİRME
(2 LABEL, 2 TEXTBOX ve 2 BUTTON kullanıldı)
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace santigrat_fahreneit_cevirme
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
double c = Convert.ToDouble(textBox1.Text);
textBox2.Text = Convert.ToString((c * 1.8) + 32);
}
private void button2_Click(object sender, EventArgs e)
{
change frm1 = new change();
frm1.Show();
this.Hide();
}
}
}
...
FAHRENEIT - SANTIGRAT ÇEVİRME
----------------------------------------------------
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace santigrat_fahreneit_cevirme
{
public partial class change : Form
{
public change()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
double f = Convert.ToDouble(textBox2.Text);
textBox1.Text = Convert.ToString((f - 32) / 1.8);
}
private void button2_Click(object sender, EventArgs e)
{
Form1 frm2 = new Form1();
frm2.Show();
this.Hide();
}
}
}
Yorumlar
Yorum Gönder