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

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

private GetReportPopupMode ( GeneralOptions options ) : ReportPopupMode
options CalDavSynchronizer.Contracts.GeneralOptions
Результат ReportPopupMode
    private ReportPopupMode GetReportPopupMode (GeneralOptions options)
    {
      if (options.ShowReportsWithWarningsImmediately)
      {
        // HINT: althoug it is possible that in this case ShowReportsWithErrorsImmediately is false, 
        // the UI doesnt offer that feature to just show reports with warnings immediately
        return ReportPopupMode.WarningsAndErrors;
      }
      else if (options.ShowReportsWithErrorsImmediately)
      {
        return ReportPopupMode.JustErrors;
      }
      else
      {
        return ReportPopupMode.NoPopup;
      }
    }