private void BtnConvertir_Click(object sender, EventArgs e) { double lps; lps = Convert.ToDouble(TxtLempiras.Text.Trim()); lpsEr.lempiraEuro(lps); TxtLempiras.Clear(); TxtLempiras.Focus(); }
private void button1_Click(object sender, EventArgs e) { if (TxtLempiras.Text.Trim().Length == 0) { MessageBox.Show("Ingresar la Cantidad de Lempiras"); TxtLempiras.Focus(); return; } double lps, res; lps = Convert.ToDouble(TxtLempiras.Text); res = lps / 25; TxtDolares.Text = res.ToString(); }
private void BtnConvertir_Click(object sender, EventArgs e) { if (TxtLempiras.Text.Trim().Length==0) { MessageBox.Show("Ingrese Lempiras"); TxtLempiras.Focus(); return; } double r, l; l = Convert.ToDouble(TxtLempiras.Text); r = l * 0.041; TxtDolares.Text = r.ToString(); }