public MainForm() { InitializeComponent(); weatherInfo = new WeatherInfo(15); timeComboBox.SelectedIndex = 0; ampmComboBox.SelectedIndex = 0; }
public WeatherHistoryForm(WeatherInfo weatherInfo, string date) { InitializeComponent(); totalHours = 0; this.weatherInfo = weatherInfo; this.date = date; }
private void PassData(object sender) { weatherInfo = (WeatherInfo)sender; Action(); }