コード例 #1
0
        public WeatherAppViewModel()
        {
            //Optionen Laden!!!
            LoadOptions();
            _wInfo = new WeatherInformationRequestingClass(SelectedCityInformation);

            DoWeatherRequest = new ActionCommand(DoWeatherRequestMethod, DoWeatherRequestCanExecute);
            OpenOptions      = new ActionCommand(OpenOptionsMethod, OpenOptionsCanExecute);

            GetCurrentWeatherData();
            GetWeatherForecastData();
        }
コード例 #2
0
        private void OpenOptionsMethod(object obj)
        {
            Options op = new Options();

            op.ShowDialog();

            LoadOptions();

            _wInfo = new WeatherInformationRequestingClass(SelectedCityInformation);

            GetCurrentWeatherData();
            GetWeatherForecastData();
        }