void trace_RouteUpdate(System.Net.IPAddress gateway, int roundTripTime, byte currentHop) { lock (RUList) { RouteUpdate ru = new RouteUpdate(); ru.Gateway = gateway; ru.ResolveHostName = this.ResolveCheckBox.Checked; ru.RoundTripTime = roundTripTime; ru.CurrentHop = currentHop; ru.OnHostnameResolved += new RouteUpdate.HostnameResolved(ru_OnHostnameResolved); this.RUList.Add(ru); } this.Invoke(miv); }
void trace_RouteUpdate(System.Net.IPAddress gateway, int roundTripTime, byte currentHop) { lock(RUList) { RouteUpdate ru = new RouteUpdate(); ru.Gateway = gateway; ru.ResolveHostName = this.ResolveCheckBox.Checked; ru.RoundTripTime = roundTripTime; ru.CurrentHop = currentHop; ru.OnHostnameResolved += new RouteUpdate.HostnameResolved(ru_OnHostnameResolved); this.RUList.Add(ru); } this.Invoke(miv); }
void ru_OnHostnameResolved(RouteUpdate Update) { this.Invoke(miv); }