public async Task UpdateNetworkInfo()
        {
            this.DeviceName   = DeviceInfoPresenter.GetDeviceName();
            this.IpAddress1   = NetworkPresenter.GetCurrentIpv4Address();
            this.NetworkName1 = NetworkPresenter.GetCurrentNetworkName();

            var networkInfos = await NetworkPresenter.GetNetworkInformation();

            this.NetworkInfos = new ObservableCollection <NetworkPresenter.NetworkInfo>(networkInfos);
        }
        private async Task <bool> UpdateNetworkInfo()
        {
            DeviceName  = DeviceInfoPresenter.GetDeviceName();
            IPAddress   = NetworkPresenter.GetCurrentIpv4Address();
            NetworkName = NetworkPresenter.GetCurrentNetworkName();
            AppBuild    = Common.GetAppVersion();

            AzureHub      = IoTHubService?.HostName ?? Common.GetLocalizedText("NotAvailable");
            AzureDeviceId = IoTHubService?.DeviceId ?? Common.GetLocalizedText("NotAvailable");

            var networkInfoList = await NetworkPresenter.GetNetworkInformation();

            if (networkInfoList != null)
            {
                NetworkCollection.Clear();
                foreach (var network in networkInfoList)
                {
                    NetworkCollection.Add(new NetworkInfoDataTemplate(network));
                }
                return(true);
            }
            return(false);
        }