0

Class Form1
Variabel Komponen
Event
Source Code
btnConvert
Click
private void btnConvert_Click(object sender, EventArgs e)
{
 double Dlr, Rp, Eur, Rgt, Yen, Yuan, Rupe, Rial, Won, Bath, Lira, Dirham, Franc;
 Dlr = Convert.ToDouble(txtDollar.Text);
 Rp  = (Dlr * 13476);
 Eur = (Dlr * 0.881);
 Rgt = (Dlr * 4.18);
 Yen = (Dlr * 119);
 Yuan = (Dlr * 6.35);
 Rupe = (Dlr * 64.7);
 Rial = (Dlr * 29950);
 Won = (Dlr * 1132);
 Bath = (Dlr * 35.3);
 Lira = (Dlr * 2.89);
 Franc = (Dlr * 0.953);

txtRupiah.Text = Rp.ToString();
txtEuro.Text = Eur.ToString();
txtRinggit.Text = Rgt.ToString();
txtYen.Text = Yen.ToString();
txtYuan.Text = Yuan.ToString();
txtRupe.Text = Rupe.ToString();
txtRial.Text = Rial.ToString();
txtWon.Text = Won.ToString();
txtBath.Text = Bath.ToString();
txtLira.Text = Lira.ToString();
txtFranc.Text = Franc.ToString();
 }
//
BtnClear
Click
private void button1_Click(object sender, EventArgs e)
{
  txtDollar.Clear();
  txtRupiah.Clear();
  txtEuro.Clear();
  txtRinggit.Clear();
  txtYen.Clear();
  txtYuan.Clear();
  txtRupe.Clear();
  txtRial.Clear();
  txtWon.Clear();
  txtBath.Clear();
  txtLira.Clear();
  txtFranc.Clear();
 }
btnAbout
Click
private void button1_Click_1(object sender, EventArgs e)
{
  MessageBox.Show("Program Konversi Mata Uang $USD Dollar Amerika \nVersion 1.0.0 Beta \nCreated By : Achmad Kharis [J1F114002] \nComputer Science 14 \nFakultas MIPA Unlam Banjarbaru");
}
btnExit
Click
private void button2_Click(object sender, EventArgs e)
{
  Application.Exit();
}



I.                   Output

Posting Komentar

 
Top