Example #1
0
        public void Update()
        {
            Dispatcher.Invoke(() =>
            {
                if (this.IsEnabled)
                {
                    observebel.GetData(out whetherData);

                    tbMorning.Text = (whetherData.humidety * whetherData.temp / whetherData.presur).ToString();
                    tbNoon.Text    = (whetherData.humidety * whetherData.temp * whetherData.presur).ToString();
                    tbNight.Text   = (whetherData.humidety + whetherData.temp / whetherData.presur).ToString();
                }
            });
        }
 public void Update()
 {
     observebel.GetData(out whetherData);
     Show();
 }
 public void Update()
 {
     observebel.GetData(out whetherData);
     history.Add(DateTime.Now, whetherData);
     Show();
 }