コード例 #1
0
 public void OnAvailabilityChanged(object sender, VerificNetEventArgs args)
 {
     if (Verific != null)
     {
         Verific(this, args);
     }
 }
コード例 #2
0
 public void AvailabilityChanged(object sender, VerificNetEventArgs args, ref int merge, ref int numerge)
 {
     if ((merge == 0 && numerge == 0) || (merge == 0 && numerge == 1))
     {
         if (args.ConnectedToInternet())
         {
             Mesaj.Success();
             merge = 1; numerge = 0;
         }
     }
     else
     {
         if ((merge == 0 && numerge == 0) || (merge == 1 && numerge == 0))
         {
             if (!args.ConnectedToInternet())
             {
                 Mesaj.Fail();
                 merge = 0; numerge = 1;
             }
         }
     }
 }