CalDavSynchronizer.Ui.SystrayNotification.TrayNotifier.NotifyUser C# (CSharp) Метод

NotifyUser() публичный Метод

public NotifyUser ( GenSync.Logging.SynchronizationReport report, bool notifyWarnings, bool notifyErrors ) : void
report GenSync.Logging.SynchronizationReport
notifyWarnings bool
notifyErrors bool
Результат void
    public void NotifyUser (SynchronizationReport report, bool notifyWarnings, bool notifyErrors)
    {
      if (report.HasErrors && notifyErrors)
      {
        _nofifyIcon.ShowBalloonTip (
            10 * 1000,
            ComponentContainer.MessageBoxTitle,
            $"Syncronization profile '{report.ProfileName}' executed with error(s).",
            ToolTipIcon.Error);
      }
      else if (report.HasWarnings && notifyWarnings)
      {
        _nofifyIcon.ShowBalloonTip (
            10 * 1000,
            ComponentContainer.MessageBoxTitle,
            $"Syncronization profile '{report.ProfileName}' executed with warnings(s).",
            ToolTipIcon.Warning);
      }
    }