//protected void Btn1ClickHere_Click(object sender, EventArgs e) //{ // var Fahrenheit = new ConvertLibrary(); // int TempC = Int32.Parse(tbTempC.Text); // int Answer = Fahrenheit.ConvertCtoF(TempC); // tbTempF.Text = Answer.ToString(); //} protected void btnConvertToC_Click(object sender, EventArgs e) { var Celsius = new ConvertLibrary(); int TempF = Int32.Parse(tbTempF.Text); int Answer = Celsius.ConvertFtoC(TempF); tbTempC.Text = Answer.ToString(); }
public int TemperatureToC(int TempC) { var Celsius = new ConvertLibrary(); return(Celsius.ConvertFtoC(TempC)); }