public ErrorReportWindow(Report errorReport, TartarosClient tartarosClient) : this() { _report = errorReport; _tartarosClient = tartarosClient; ErrorDescriptionText.Text = ComposeErrorText(errorReport); }
private void ReportButton_OnClick(object sender, RoutedEventArgs e) { var tartaros = new TartarosClient(); var success = tartaros.SendErrorReport(_report); if (success) { MessageBox.Show("Thank you, the error has been reported successfully.", "Error reported"); Close(); } else { MessageBox.Show("We are sorry, we have not been able to report the error. Please check your internet connection and retry to send the report.", "Error not reported", MessageBoxButton.OK, MessageBoxImage.Error); } }
public ErrorAssistant(string productName, Version version) { Tartaros = new TartarosClient(productName, version, "pe2de9KLvfs6gArNEAdLKGmw"); }