public void UpdateForecastData(IForecastDataModel forecastDataModel) { WriteTextSafe(ProcessForecastDay(forecastDataModel.Daily[0]), textBoxDay1); WriteTextSafe(ProcessForecastDay(forecastDataModel.Daily[1]), textBoxDay2); WriteTextSafe(ProcessForecastDay(forecastDataModel.Daily[2]), textBoxDay3); WriteTextSafe(ProcessForecastDay(forecastDataModel.Daily[3]), textBoxDay4); WriteTextSafe(ProcessForecastDay(forecastDataModel.Daily[4]), textBoxDay5); }
public void UpdateForecastDataInScheduler(IForecastDataModel forecastDataModel) { // Update forecast data amountOfRainWithinForecastedPeriod = 0; for (int i = 0; i < numberOfDaysForecasted; i++) { // Probability of rain * amount of rain for each day to account for the probability amountOfRainWithinForecastedPeriod += (forecastDataModel.Daily[i].Rain * (forecastDataModel.Daily[i].Pop / 100)); } }
public ForecastUpdateEvent(IForecastDataModel forecastDataModel) { _forecastDataModel = forecastDataModel; }
public void UpdateForecastDataInScheduler(IForecastDataModel forecastDataModel) { _wateringScheduler.UpdateForecastDataInScheduler(forecastDataModel); }
public void UpdateForecastData(IForecastDataModel forecastDataModel) { _mainView.UpdateForecastData(forecastDataModel); }