Exemplo n.º 1
0
 public MainWindow()
 {
     ShowWindow(GetConsoleWindow(), SW_HIDE);
     InitializeComponent();
     ReadAllCities();
     ReadFavorites();
     CurrentCityCoords = WeatherApi.GetGeolocation().GetAwaiter().GetResult();
     CurrentCityId     = 524901; // presenter should set city id or coordinates, and call start thread
     DataContext       = this;
     StartThread(true);
 }