private Form SetupUI() { _weatherStationUI.SetCities(_weatherApi.GermanCities); _weatherStationUI.SetDailyAverageTemperatures(_weatherApi.GermansDailyAverageTemperatures); _weatherStationUI.OnRecordTemperature(RecordTemperature); _weatherApi.OnFaults(_weatherStationUI.ShowFault); return(_weatherStationUI as Form); }