Esempio n. 1
0
        public override void AwakeFromNib()
        {
            base.AwakeFromNib();

            if (!string.IsNullOrEmpty(__ErrorDescription))
            {
                TextHeader.StringValue = __ErrorDescription;
            }

            try
            {
                if (!AppDelegate.GetAppSettings().IsLoggingEnabled)
                {
                    Task.Run(() =>
                    {
                        System.Threading.Thread.Sleep(500); // show popup after window is started
                        ShowPopupToEnableLogging();
                    });
                }
            }
            catch
            {
                // Ignore all
            }
        }
Esempio n. 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());
        }