CalDavSynchronizer.Ui.Options.GeneralOptionsForm.GetReportLogMode C# (CSharp) Метод

GetReportLogMode() приватный Метод

private GetReportLogMode ( GeneralOptions options ) : ReportLogMode
options CalDavSynchronizer.Contracts.GeneralOptions
Результат ReportLogMode
    private ReportLogMode GetReportLogMode (GeneralOptions options)
    {
      if (options.LogReportsWithoutWarningsOrErrors)
      {
        // HINT: althoug it is possible that in this case LogReportsWithWarnings is false, 
        // the UI doesnt offer that feature to just configure logging of reports without errors and warning 
        return ReportLogMode.All;
      }
      else if (options.LogReportsWithWarnings)
      {
        return ReportLogMode.WarningsOrErrors;
      }
      else
      {
        return ReportLogMode.OnlyWithErrors;
      }
    }