Exemple #1
0
        public HueBridgeSetupViewModel(PhilipsHueServices philipsHueServices,
                                       PhilipsHueBridgeSettingsService philipsHueBridgeSettingsService)
        {
            _philipsHueServices = philipsHueServices;
            _philipsHueBridgeSettingsService = philipsHueBridgeSettingsService;

            SaveButtonCommand       = new AsyncCommand(() => ExecuteSaveButtonCommand(BridgeIPEntryText, BridgeIDEntryText));
            AutoDetectButtonCommand = new AsyncCommand(ExecuteAutoDetectButtonCommand);
        }
        public TextResultsListViewModel(TextResultsService textResultsService,
                                        PhilipsHueServices philipsHueServices,
                                        PhilipsHueBridgeSettingsService philipsHueBridgeSettingsService)
        {
            _textResultsService = textResultsService;
            _philipsHueServices = philipsHueServices;
            _philipsHueBridgeSettingsService = philipsHueBridgeSettingsService;

            PullToRefreshCommand = new AsyncCommand(ExecutePullToRefreshCommand);
        }