Exemplo n.º 1
0
        private static void NetworkInformationStatusChanged(object sender)
        {
            var arg = new InternetConnectionChangedEventArgs {
                IsConnected = (NetworkInformation.GetInternetConnectionProfile() != null), ConnectionType = InternetConnectionType
            };

            if (InternetConnectionChanged != null)
            {
                InternetConnectionChanged(null, arg);
            }
        }
        private static void NetworkInformationStatusChanged(object sender)
        {
            var arg = new InternetConnectionChangedEventArgs { IsConnected = (NetworkInformation.GetInternetConnectionProfile() != null), ConnectionType = InternetConnectionType };

            if (InternetConnectionChanged != null)
                InternetConnectionChanged(null, arg);
        }