private void CheckAndChangePing(string hostname)
 {
     if (!Settings.Default.CheckPing)
     {
         labelPing.Text = "Ping: N/A";
         return;
     }
     PingChecker.CheckPing(hostname);
     labelPing.Text = "Ping: " + PingChecker.GetPingTimeout();
 }
 private void timerCheckPing_Tick(object sender, EventArgs e)
 {
     CheckAndChangePing(PingChecker.GetBattleNetHostname(Program.pingRegion));
     timerCheckPing.Enabled = false;
 }