void SendErrorToRaygunClick(object sender, RoutedEventArgs e)
    {
        var confirmSendExceptionView = new ConfirmSendExceptionView
        {
            Owner = this
        };

        confirmSendExceptionView.ShowDialog();

        if (confirmSendExceptionView.SendExceptionReport)
        {
            var client = new RaygunClient(App.RayGunApiKey);
            client.Send(exception);
            MessageBox.Show("Exception Report Sent", "Send Complete", MessageBoxButton.OK);
        }
    }
Beispiel #2
0
    public void ReportError()
    {
        var confirmSendExceptionView = new ConfirmSendExceptionView
        {
            Owner = ShellView.CurrentInstance
        };

        confirmSendExceptionView.ShowDialog();
        if (confirmSendExceptionView.SendExceptionReport)
        {
            eventAggregator.PublishOnUIThread(new ReportInstallFailedEvent
            {
                Failure        = FailuresText,
                FailureDetails = FailureDescription
            });
            MessageBox.Show("Exception Report Sent", "Send Complete", MessageBoxButton.OK);
        }
    }