Ejemplo n.º 1
0
 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);
         }
     }));
 }
Ejemplo n.º 2
0
 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);
         }                
     }));
 }