protected void OnAvailabilityChanged(object sender, AvailabilityChangedEventArgs e)
 {
     if (AvailabilityChanged != null)
     {
         AvailabilityChanged(this, e);
     }
 }
Exemplo n.º 2
0
 public static void lyncxClient_AvailabilityChanged(object sender, AvailabilityChangedEventArgs e)
 {
     try
     {
         Console.WriteLine(e.AvailabilityName);
     }
     catch (Exception ex)
     {
     }
 }
Exemplo n.º 3
0
 void lyncxClient_AvailabilityChanged(object sender, AvailabilityChangedEventArgs e)
 {
     try
     {
         arduinoSerial.Set(e.AvailabilityName);
         Debug.Print("Skype status changed to: " + e.AvailabilityName);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString());
     }
 }
Exemplo n.º 4
0
        private async void _service_AvailabilityChanged(object sender, AvailabilityChangedEventArgs e)
        {
            switch (Settings.NetworkRequirement)
            {
            case NetworkRequirements.None:
                HandleCorrect(NetworkRequirements.None);
                break;

            case NetworkRequirements.NetworkRequired when(await _service.GetIsNetworkAvailableAsync()):
                HandleCorrect(NetworkRequirements.NetworkRequired);

                break;

            case NetworkRequirements.InternetRequired when(await _service.GetIsInternetAvailableAsync()):
                HandleCorrect(NetworkRequirements.InternetRequired);

                break;

            default:
                HandleIncorrect(Settings.NetworkRequirement);
                break;
            }
        }