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);
}
}