private PingReply RegionPing2(string RegionName) { var giveserveripclass = new LoLServer(); var pingallEUW = new System.Net.NetworkInformation.Ping(); var region = giveserveripclass.giveserverip(RegionName); var pingallEUWantwort = pingallEUW.Send(region, 2000); return(pingallEUWantwort); }
private string RegionPing(string RegionName) { var giveserveripclass = new LoLServer(); var pingallEUW = new System.Net.NetworkInformation.Ping(); var region = giveserveripclass.giveserverip(RegionName); var pingallEUWantwort = pingallEUW.Send(region, 2000); var pingallEUWtime = pingallEUWantwort.RoundtripTime; var pingallEUWstatus = pingallEUWantwort.Status; return(pingallEUWtime.ToString() + " ms\t " + pingallEUWstatus); }