protected void btnConvertToF_Click(object sender, EventArgs e) { var Fahrenheit = new ConvertLibrary(); int TempC = Int32.Parse(tbTempC.Text); int Answer = Fahrenheit.ConvertCtoF(TempC); tbTempF.Text = Answer.ToString(); }
public int TemperatureToF(int TempF) { var Fahrenheit = new ConvertLibrary(); return(Fahrenheit.ConvertCtoF(TempF)); }