public MainWindow()
        {
            InitializeComponent();
            this.Height = (System.Windows.SystemParameters.PrimaryScreenHeight * 0.7);
            this.Width  = (System.Windows.SystemParameters.PrimaryScreenWidth * 0.7);
            loader.readCitiesFromJson();
            CityDescriptor currentCity = WeatherDataLoader.getCurrentLocation();

            loader.selectCity(currentCity);
            loader.refreshWeatherData(loader.SelectedCity.id.ToString());
            loader.SelectedDay = loader.Weather.DayForecasts[0];
            DateTime dt = DateTime.Now;

            loader.RefreshMessage = "Last time updated: " + dt.ToString();
            loader.loadFavouriteCities();
            CheckFavourite();
            refresher.Start(loader);
            this.DataContext = loader;
        }