Beispiel #1
0
        //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 btn2ClickHere_Click(object sender, EventArgs e)
        {
            var Celsius = new ClassLibrary();
            int TempF   = Int32.Parse(tbTempF.Text);
            int Answer  = Celsius.ConvertFtoC(TempF);

            tbTempC.Text = Answer.ToString();
        }
        public int TemperatureTOC(int TempC)
        {
            var Celsius = new ClassLibrary();

            return(Celsius.ConvertFtoC(TempC));
        }