From afff91667b5fe5c2d347855db92670562b3808b0 Mon Sep 17 00:00:00 2001 From: Tim Young Date: Thu, 19 Nov 2015 16:04:08 -0500 Subject: [PATCH] Update ping stuff again --- EduNetworkBuilder/NetworkBuilder.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/EduNetworkBuilder/NetworkBuilder.cs b/EduNetworkBuilder/NetworkBuilder.cs index b4df4ac..685a2fd 100644 --- a/EduNetworkBuilder/NetworkBuilder.cs +++ b/EduNetworkBuilder/NetworkBuilder.cs @@ -669,7 +669,7 @@ namespace EduNetworkBuilder bool todo = true; if (ItemClickedOn == null) return; //we do not have something chosen to ping from IPAddress destination = new IPAddress(NB.ZeroIPString, NB.ZeroIPString, IPAddressType.ip_only); - todo = destination.Edit(ItemClickedOn, NB.Translate("NB_NetViewPng")); + todo = destination.Edit(ItemClickedOn, NB.Translate("_Ping")); if(todo) { ItemClickedOn.PingFromHere(destination); @@ -696,7 +696,7 @@ namespace EduNetworkBuilder if (ItemClickedOn == null) return; //we do not have something chosen to ping from ToolStripMenuItem Pressed = (ToolStripMenuItem)sender; string itemname = Pressed.Text; - string dest = Regex.Replace(itemname, NB.Translate("H_ARP_Title "), ""); + string dest = Regex.Replace(itemname, NB.Translate("H_ARP_Title")+" ", ""); IPAddress destination; destination = myNetwork.DNSLookup(ItemClickedOn, dest); if (destination == null || destination.GetIPString == NB.ZeroIPString)