Example #1
0
 private void ReadMailValues()
 {
     _info.SmtpServer         = ExceptionReporterExtensions.GetString(GetMailSetting("SmtpServer"), _info.SmtpServer);
     _info.SmtpUsername       = ExceptionReporterExtensions.GetString(GetMailSetting("SmtpUsername"), _info.SmtpUsername);
     _info.SmtpPassword       = ExceptionReporterExtensions.GetString(GetMailSetting("SmtpPassword"), _info.SmtpPassword);
     _info.SmtpFromAddress    = ExceptionReporterExtensions.GetString(GetMailSetting("from"), _info.SmtpFromAddress);
     _info.EmailReportAddress = ExceptionReporterExtensions.GetString(GetMailSetting("to"), _info.EmailReportAddress);
 }
Example #2
0
 private void ReadTabSettings()
 {
     _info.ShowExceptionsTab = ExceptionReporterExtensions.GetBool(GetTabSetting("exceptions"), _info.ShowExceptionsTab);
     _info.ShowAssembliesTab = ExceptionReporterExtensions.GetBool(GetTabSetting("assemblies"), _info.ShowAssembliesTab);
     _info.ShowConfigTab     = ExceptionReporterExtensions.GetBool(GetTabSetting("config"), _info.ShowConfigTab);
     _info.ShowSysInfoTab    = ExceptionReporterExtensions.GetBool(GetTabSetting("system"), _info.ShowSysInfoTab);
     _info.ShowContactTab    = ExceptionReporterExtensions.GetBool(GetTabSetting("contact"), _info.ShowContactTab);
 }
Example #3
0
 private void ReadContactSettings()
 {
     _info.ContactEmail = ExceptionReporterExtensions.GetString(GetContactSetting("email"), _info.ContactEmail);
     _info.WebUrl       = ExceptionReporterExtensions.GetString(GetContactSetting("web"), _info.WebUrl);
     _info.Phone        = ExceptionReporterExtensions.GetString(GetContactSetting("phone"), _info.Phone);
     _info.Fax          = ExceptionReporterExtensions.GetString(GetContactSetting("fax"), _info.Fax);
     _info.CompanyName  = ExceptionReporterExtensions.GetString(GetContactSetting("CompanyName"), _info.CompanyName);
 }
Example #4
0
        private void ReadUserInterfaceSettings()
        {
            _info.ShowFlatButtons = ExceptionReporterExtensions.GetBool(GetUserInterfaceSetting("ShowFlatButtons"), _info.ShowFlatButtons);
            _info.ShowFullDetail  = ExceptionReporterExtensions.GetBool(GetUserInterfaceSetting("ShowFullDetail"), _info.ShowFullDetail);

            if (!_info.ShowFullDetail)
            {
                _info.ShowLessMoreDetailButton = true;                  // prevent seeing only the simplified view, position of this line is important
            }
            _info.ShowLessMoreDetailButton = ExceptionReporterExtensions.GetBool(GetUserInterfaceSetting("ShowLessMoreDetailButton"), _info.ShowLessMoreDetailButton);
            _info.ShowButtonIcons          = ExceptionReporterExtensions.GetBool(GetUserInterfaceSetting("ShowButtonIcons"), _info.ShowButtonIcons);
            _info.TitleText      = ExceptionReporterExtensions.GetString(GetUserInterfaceSetting("TitleText"), _info.TitleText);
            _info.TakeScreenshot = ExceptionReporterExtensions.GetBool(GetUserInterfaceSetting("TakeScreenshot"), _info.TakeScreenshot);

            float fontSize;
            var   fontSizeAsString = GetUserInterfaceSetting("UserExplanationFontSize");

            if (float.TryParse(fontSizeAsString, NumberStyles.Float, CultureInfo.CurrentCulture.NumberFormat, out fontSize))
            {
                _info.UserExplanationFontSize = fontSize;
            }
        }
Example #5
0
 private void ReadLabelSettings()
 {
     _info.UserExplanationLabel = ExceptionReporterExtensions.GetString(GetLabelSetting("explanation"), _info.UserExplanationLabel);
     _info.ContactMessageTop    = ExceptionReporterExtensions.GetString(GetLabelSetting("ContactTop"), _info.ContactMessageTop);
 }