23 lines
606 B
C#
23 lines
606 B
C#
using ModVersionChecker.service.interfaces;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace ModVersionChecker.service
|
|
{
|
|
public class NotificationService : INotificationService
|
|
{
|
|
private NotifyIcon? _notifyIcon;
|
|
public void SetNotifyIcon(NotifyIcon icon)
|
|
{
|
|
_notifyIcon = icon;
|
|
}
|
|
public void ShowBalloonTip(int millis, string title, string message, ToolTipIcon icon)
|
|
{
|
|
_notifyIcon?.ShowBalloonTip(millis, title, message, icon);
|
|
}
|
|
}
|
|
}
|