Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. for (i = 0; i < nb; i++)
  2. {
  3.  
  4. adresse = tableau_IP_recuperees[i];
  5. reponse_Au_Ping = PingAdresse(adresse);
  6.  
  7. if (reponse_Au_Ping.Status == IPStatus.Success)
  8. {
  9.  
  10. rtxtbox_resultat_ping_fichier.ForeColor = Color.Green;
  11.  
  12. rtxtbox_resultat_ping_fichier.Text += "Ping " + reponse_Au_Ping.Status + " : ";
  13. rtxtbox_resultat_ping_fichier.Text += "L'hôte " + tableau_IP_recuperees[i] + " est accessible" + " ( Latence = " + reponse_Au_Ping.RoundtripTime + " ms )\r\n";
  14. //rtxtbox_resultat_ping_fichier.ForeColor = Color.Black;
  15. }
  16. else
  17. {
  18. rtxtbox_resultat_ping_fichier.ForeColor = Color.Red;
  19. rtxtbox_resultat_ping_fichier.Text += "Ping " + reponse_Au_Ping.Status + " : ";
  20. rtxtbox_resultat_ping_fichier.Text += "L'hôte " + tableau_IP_recuperees[i] + " n'est pas accessible\n";
  21. //rtxtbox_resultat_ping_fichier.SelectionColor = Color.Black;
  22. }
  23. }
  24.  
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement