protected override void OnNavigatedTo(NavigationEventArgs e) { var client = new SSDPClient(); client.SearchForDevices(); client.DeviceFound += ClientOnDeviceFound; }
public App() { InitializeComponent(); SplashFactory = (e) => new Views.Splash(e); ssdpClient = new SSDPClient(); ssdpClient.DeviceFound += SsdpClient_DeviceFound; wifiClient = new WiFiClient(); wifiClient.DeviceFound += WifiClient_DeviceFound; #region App settings var _settings = SettingsService.Instance; RequestedTheme = _settings.AppTheme; CacheMaxDuration = _settings.CacheMaxDuration; ShowShellBackButton = _settings.UseShellBackButton; #endregion }