コード例 #1
0
ファイル: ConfigReader.cs プロジェクト: modernstar/core
 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);
 }
コード例 #2
0
ファイル: ConfigReader.cs プロジェクト: modernstar/core
 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);
 }
コード例 #3
0
ファイル: ConfigReader.cs プロジェクト: modernstar/core
        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;
            }
        }
コード例 #4
0
ファイル: ConfigReader.cs プロジェクト: modernstar/core
 private void ReadLabelSettings()
 {
     _info.UserExplanationLabel = ExceptionReporterExtensions.GetString(GetLabelSetting("explanation"), _info.UserExplanationLabel);
     _info.ContactMessageTop    = ExceptionReporterExtensions.GetString(GetLabelSetting("ContactTop"), _info.ContactMessageTop);
 }