public ErrorReportWindow(Report errorReport, TartarosClient tartarosClient)
     : this()
 {
     _report                   = errorReport;
     _tartarosClient           = tartarosClient;
     ErrorDescriptionText.Text = ComposeErrorText(errorReport);
 }
예제 #2
0
        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);
            }
        }
예제 #3
0
 public ErrorAssistant(string productName, Version version)
 {
     Tartaros = new TartarosClient(productName, version, "pe2de9KLvfs6gArNEAdLKGmw");
 }