private void ViewReport_Click(object sender, RoutedEventArgs e)
        {
            InitializeEventToSend();

            string       logFile = Path.GetTempFileName();
            StreamWriter writer  = new StreamWriter(logFile);

            writer.Write(__EventToSend.ToString());
            writer.Close();

            OpenNotepad(logFile);
        }
Пример #2
0
        private string UpdateExceptionMessage()
        {
            if (__EventToSend != null)
            {
                return(__EventToSend.ToString());
            }

            __EventToSend = ErrorReporter.PrepareEventToSend(__Exception,
                                                             AppDelegate.GetAppSettings(),
                                                             GetLogFileData(Platform.ServiceLogFilePath),
                                                             GetLogFileData(Platform.ServiceLogFilePath + ".0"),
                                                             null,
                                                             null,
                                                             __IsServiceException
                                                             );

            return(__EventToSend.ToString());
        }