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();
        }
示例#2
0
        public int TemperatureToF(int TempF)
        {
            var Fahrenheit = new ConvertLibrary();

            return(Fahrenheit.ConvertCtoF(TempF));
        }