public MainWindow() { InitializeComponent(); forecastManager = new ForecastManager(); this.DataContext = forecastManager; FillMenuItemHistory(); FillMenuItemFavs(); }
public DetailedView(ForecastManager forecastManager, MyWeather myWeather) { InitializeComponent(); this.forecastManager = forecastManager; this.myWeather = myWeather; this.DataContext = this; InitializeWeather(); showColumnChart(); this.Owner = App.Current.MainWindow; }