public void updateShow() { Dispatcher.Invoke(() => { if (this.IsEnabled) { whetherData = currentCondition.whetherData; tbHumidty1.Text = whetherData.humidety.ToString(); tbPressure1.Text = whetherData.presur.ToString(); tbTempreature1.Text = whetherData.temp.ToString(); } }); }
public void updateShow() { Dispatcher.Invoke(() => { if (this.IsEnabled) { whetherData = statistcsDisplay.AvarageData; tbHumidty1.Text = whetherData.humidety.ToString(); tbPressure1.Text = whetherData.presur.ToString(); tbTempreature1.Text = whetherData.temp.ToString(); tbNumberOfRecords.Text = string.Format("Number of\nrecords: {0}", statistcsDisplay.recordCount); } }); }