Example #1
0
        public MainVm(IApplicationSettings applicationSettings, IWeatherForecastDataProvider weatherForecastDataProvider)
        {
            _applicationSettings         = applicationSettings;
            _weatherForecastDataProvider = weatherForecastDataProvider;

            OpenSettingsCommand = new RelayCommand(OpenSettings);
            RefreshCommand      = new RelayCommand(Refresh);
        }
Example #2
0
 public WeatherForecastController(IWeatherForecastDataProvider svc, ILogger <WeatherForecastController> logger)
 {
     _logger     = logger;
     _weatherSvc = svc;
 }