Пример #1
0
        private void ReportButton_OnClick(object sender, RoutedEventArgs e)
        {
            if (!string.IsNullOrWhiteSpace(EmailAddress))
            {
                _report.AdditionalEntries["Email"] = EmailAddress;
            }

            var success = _tartarosClient.SendErrorReport(_report);

            if (success)
            {
                MessageBox.Show("Thank you, the error has been reported successfully.", "Error reported");
                Close();
            }
        }
Пример #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);
            }
        }
        private void ReportButton_OnClick(object sender, RoutedEventArgs e)
        {
            if (!string.IsNullOrWhiteSpace(EmailAddress))
            {
                _report.AdditionalEntries["Email"] = EmailAddress;
            }

            var success = _tartarosClient.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);
            }
        }