Пример #1
0
 private void OnSnoopAttachFailed(object sender, TMAttachFailedEventArgs e)
 {
     System.Windows.MessageBox.Show
     (
         string.Format
         (
             "Failed to attach to {0}. Exception occured:{1}{2}",
             e.WindowName,
             Environment.NewLine,
             e.AttachException.ToString()
         ),
         "Can't attach to the process!"
     );
     if (_appChooserExperience != null)
     {
         // TODO This should be implmemented through the event broker, not like this.
         _appChooserExperience.Refresh();
     }
 }
 private void OnSnoopAttachFailed(object sender, TMAttachFailedEventArgs e)
 {
     System.Windows.MessageBox.Show
     (
         string.Format
         (
             "Failed to attach to {0}. Exception occured:{1}{2}",
             e.WindowName,
             Environment.NewLine,
             e.AttachException.ToString()
         ),
         "Can't attach to the process!"
     );
     if (_appChooserExperience != null)
     {
         // TODO This should be implmemented through the event broker, not like this.
         _appChooserExperience.Refresh();
     }
 }