Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (i = 0; i < nb; i++)
- {
- adresse = tableau_IP_recuperees[i];
- reponse_Au_Ping = PingAdresse(adresse);
- if (reponse_Au_Ping.Status == IPStatus.Success)
- {
- string output = "Ping " + reponse_Au_Ping.Status + " : ";
- output += "L'hôte " + tableau_IP_recuperees[i] + " est accessible" + " ( Latence = " + reponse_Au_Ping.RoundtripTime + " ms )\r\n";
- rtxtbox_resultat_ping_fichier.SelectionColor = Color.Green;
- rtxtbox_resultat_ping_fichier.SelectedText = output;
- //rtxtbox_resultat_ping_fichier.ForeColor = Color.Green;
- //rtxtbox_resultat_ping_fichier.Text += "Ping " + reponse_Au_Ping.Status + " : ";
- //rtxtbox_resultat_ping_fichier.Text += "L'hôte " + tableau_IP_recuperees[i] + " est accessible" + " ( Latence = " + reponse_Au_Ping.RoundtripTime + " ms )\r\n";
- //rtxtbox_resultat_ping_fichier.ForeColor = Color.Black;
- }
- else
- {
- rtxtbox_resultat_ping_fichier.ForeColor = Color.Red;
- rtxtbox_resultat_ping_fichier.Text += "Ping " + reponse_Au_Ping.Status + " : ";
- rtxtbox_resultat_ping_fichier.Text += "L'hôte " + tableau_IP_recuperees[i] + " n'est pas accessible\n";
- //rtxtbox_resultat_ping_fichier.SelectionColor = Color.Black;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement