public WeatherAppViewModel() { //Optionen Laden!!! LoadOptions(); _wInfo = new WeatherInformationRequestingClass(SelectedCityInformation); DoWeatherRequest = new ActionCommand(DoWeatherRequestMethod, DoWeatherRequestCanExecute); OpenOptions = new ActionCommand(OpenOptionsMethod, OpenOptionsCanExecute); GetCurrentWeatherData(); GetWeatherForecastData(); }
private void OpenOptionsMethod(object obj) { Options op = new Options(); op.ShowDialog(); LoadOptions(); _wInfo = new WeatherInformationRequestingClass(SelectedCityInformation); GetCurrentWeatherData(); GetWeatherForecastData(); }