private void _pingStopped(object sender, PingStoppedEventArgs e) { _dispatcher.BeginInvoke(new Action(() => { if (e.ReasonStopPing == ReasonStopPing.ExceptionStop) { PingExecuted = false; ErrorDialogViewModel model = new ErrorDialogViewModel(Localization.Localization.Error, Localization.Localization.Ping_CouldNotFindHost + " \"" + (sender as PingThread).Connection.Host + "\""); new DialogErrorService().ShowDialog(model); } })); }