Пример #1
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);
 }
Пример #2
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.SmtpEnableSSL      = ExceptionReporterExtensions.GetBool(GetMailSetting("SmtpEnableSSL"), _info.SmtpEnableSSL);
     _info.SmtpTimeOut        = ExceptionReporterExtensions.GetInt(GetMailSetting("SmtpTimeOut"), _info.SmtpTimeOut);
     _info.SmtpFromAddress    = ExceptionReporterExtensions.GetString(GetMailSetting("from"), _info.SmtpFromAddress);
     _info.EmailReportAddress = ExceptionReporterExtensions.GetString(GetMailSetting("to"), _info.EmailReportAddress);
 }
Пример #3
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;
            }
        }