Exemplo n.º 1
0
        public MainWindow()
        {
            InitializeComponent();
            forecastManager  = new ForecastManager();
            this.DataContext = forecastManager;

            FillMenuItemHistory();
            FillMenuItemFavs();
        }
Exemplo n.º 2
0
        public DetailedView(ForecastManager forecastManager, MyWeather myWeather)
        {
            InitializeComponent();
            this.forecastManager = forecastManager;
            this.myWeather       = myWeather;
            this.DataContext     = this;

            InitializeWeather();
            showColumnChart();

            this.Owner = App.Current.MainWindow;
        }