public MainWindow() { InitializeComponent(); CurrentsScreen currents = new CurrentsScreen(); Grid.SetColumn(currents, 0); Grid.SetRow(currents, 1); GridOverview.Children.Add(currents); AveragesScreen averages = new AveragesScreen(); Grid.SetColumn(averages, 1); Grid.SetRow(averages, 1); GridOverview.Children.Add(averages); MaximaScreen maxima = new MaximaScreen(); Grid.SetColumn(maxima, 2); Grid.SetRow(maxima, 1); GridOverview.Children.Add(maxima); weatherData = new WeatherData(currents, averages, maxima); }
public WeatherData(CurrentsScreen currents, AveragesScreen averages, MaximaScreen maxima) { this.currents = currents; this.averages = averages; this.maxima = maxima; }