public ForecastManager(AdvMainWindow MainWindow) { InitializeComponent(); MnWindow = MainWindow; // probably shitty. if (MnWindow.ForecastList.Count > 0) { // ok foreach (Forecast forecast in MnWindow.ForecastList) { Forecasts.Items.Add(forecast); // woo. } } }
public WarningManager(AdvMainWindow MainWindow) { InitializeComponent(); MnWindow = MainWindow; // yes }