Пример #1
0
 static Network()
 {
     NetworkInformation.NetworkStatusChanged += s =>
     {
         if (InternetConnectionChanged != null)
         {
             var arg = new InternetConnectionChangedEventArgs(IsConnected);
             InternetConnectionChanged(null, arg);
         }
     };
 }
Пример #2
0
 private void NetworkOnInternetConnectionChanged(object sender,
     InternetConnectionChangedEventArgs internetConnectionChangedEventArgs)
 {
     if (!Network.IsConnected)
     {
     }
 }