protected void btnFtoC_Click(object sender, EventArgs e) { var TCBLib = new TempCalculator(); int TempF = Int32.Parse(tbTempF.Text); int result = TCBLib.ConvertToC(TempF); tbTempC.Text = result.ToString(); }
public int ToCelcius(int TempC) { var ToC = new TempCalculator(); return(ToC.ConvertToC(TempC)); }