private async void OnLoaded(object sender, RoutedEventArgs args) { AppServiceBridge.RequestReceived += PropertyUpdate; AppServiceBridge.RequestUpdate(new List <string> { "ConfigSlideShowBackgroundColor", "ConfigSlideShowStrech", "ConfigSlideShowDuration" }); try { await _oneDrive.InitAsync(); _images = await _oneDrive.GetImagesAsync(null); } catch (Exception e) { ShowError(e.Message); return; } if (_images.Count == 0) { ShowError("No images found in user's OneDrive."); return; } _hideControlsTimer.Start(); ForegroundImage.Source = BackgroundImage.Source = await LoadImage(_images[0].Id); Play(); _voiceCommand.AddCommands(_voiceCallbacks); }
public OpenWeatherMap() { AppServiceBridge.RequestReceived += PropertyUpdate; AppServiceBridge.RequestUpdate("OpenWeatherMapKey"); AppServiceBridge.RequestUpdate("ConfigWeatherZipCode"); AppServiceBridge.RequestUpdate("ConfigWeatherContryCode"); }
private void OnLoaded(object sender, Windows.UI.Xaml.RoutedEventArgs e) { AppServiceBridge.RequestReceived += PropertyUpdate; AppServiceBridge.RequestUpdate(new List <string> { "ConfigNewsMarket", "ConfigNewsCategory", "ConfigWeatherContryCode", "ConfigWeatherZipCode", "ConfigTemperatureUnit" }); }
public BingNews() { AppServiceBridge.RequestReceived += PropertyUpdate; AppServiceBridge.RequestUpdate("ConfigNewsMarket"); AppServiceBridge.RequestUpdate("ConfigNewsCategory"); AppServiceBridge.RequestUpdate("bingKey"); }
private void OnLoaded(object sender, RoutedEventArgs e) { _bing.NewsUpdate += NewsUpdate; _bing.Start(); _weather.WeatherUpdate += WeatherUpdate; _weather.Start(); AppServiceBridge.RequestReceived += PropertyUpdate; AppServiceBridge.RequestUpdate(new List <string> { "ConfigTemperatureUnit", "temperature", "humidity", "pressure" }); }