public WeatherForm(IWeatherApiReaderService weatherApiReaderService) { weatherUpdatedDelegate = new WeatherUpdatedDelegate(weatherUpdated); _weatherApiReaderService = weatherApiReaderService; InitializeComponent(); _weatherApiReaderService.WeatherUpdated += weatherUpdated; weatherUpdated(); }
public MainForm(IFormFactoryService formFactoryService, IDailyMessageService dailyMessageService, IWeatherApiReaderService weatherApiReaderService) { _formFactoryService = formFactoryService; InitializeComponent(); }