private void OnTimerTick(object sender, object e)
        {
            if (measurement != null)
            {
                IRTempText.Text  = FormatTemperature(measurement.ObjectTemperature);
                DieTempText.Text = FormatTemperature(measurement.DieTemperature);

                if (!animating)
                {
                    animating = true;
                    IRTempGraph.Start();
                    TemperatureGraph.Start();
                }
                IRTempGraph.SetCurrentValue(measurement.ObjectTemperature);
                TemperatureGraph.SetCurrentValue(measurement.DieTemperature);
            }
        }
Beispiel #2
0
        private void OnTimerTick(object sender, object e)
        {
            if (measurement != null)
            {
                HumidityText.Text    = ((int)measurement.Humidity).ToString();
                TemperatureText.Text = ((int)measurement.Temperature).ToString();

                if (!animating)
                {
                    animating = true;
                    HumidityGraph.Start();
                    TemperatureGraph.Start();
                }
                HumidityGraph.SetCurrentValue(measurement.Humidity);
                TemperatureGraph.SetCurrentValue(measurement.Temperature);
            }
        }