Пример #1
0
        protected void RefreshData()
        {
            // Refresh current temperature
            serial.Send(TEMPERATURE_CURRENT);
            int    i = int.Parse(serial.ProcessData());
            double d = i / 100.0;

            currentTemperature.InnerText = d.ToString();

            // Refresh goal temperature
            serial.Send(TEMPERATURE_GOAL);
            goalTemperature.InnerText = serial.ProcessData();
        }