コード例 #1
0
ファイル: CurrentWeatherVm.cs プロジェクト: m0j0/Thermometer
        public CurrentWeatherVm(ICurrentWeatherDataProvider currentWeatherDataProvider, ISensorPinManager sensorPinManager, ICurrentWeatherManager currentWeatherManager)
        {
            _currentWeatherDataProvider = currentWeatherDataProvider;
            _sensorPinManager           = sensorPinManager;
            _currentWeatherManager      = currentWeatherManager;

            ShowSensorCommand            = new RelayCommand <SensorProjection>(ShowSensor, CanShowSensor, this);
            ChangeSensorPinStatusCommand = new RelayCommand <SensorProjection>(ChangeSensorPinStatus, CanChangeSensorPinStatus, this);
        }
コード例 #2
0
ファイル: SensorHistoryVm.cs プロジェクト: m0j0/Thermometer
        public SensorHistoryVm(ICurrentWeatherDataProvider currentWeatherDataProvider, IToastPresenter toastPresenter, IMessagePresenter messagePresenter)
        {
            _currentWeatherDataProvider = currentWeatherDataProvider;
            _toastPresenter             = toastPresenter;
            _messagePresenter           = messagePresenter;

            RefreshCommand       = new RelayCommand(Refresh);
            LoadMoreItemsCommand = new RelayCommand(LoadMoreItems);
            Items = new SynchronizedNotifiableCollection <SensorHistoryData>();
        }