private void OnSnoopAttachFailed(object sender, AttachFailedEventArgs e) { MessageBox.Show ( $"Failed to attach to {e.WindowName}. Exception occured:{Environment.NewLine}{e.AttachException}", "Can't Snoop the process!" ); // TODO This should be implmemented through the event broker, not like this. _appChooser?.Refresh(); }
private void OnSnoopAttachFailed(object sender, AttachFailedEventArgs e) { MessageBox.Show ( string.Format ( "Failed to attach to {0}. Exception occured:{1}{2}", e.WindowName, Environment.NewLine, e.AttachException ), "Can't Snoop the process!" ); if (_appChooser != null) { // TODO This should be implmemented through the event broker, not like this. _appChooser.Refresh(); } }