namespace AxCopilot.Services; /// /// 트레이 아이콘 풍선 알림을 핸들러/서비스에서 표시하기 위한 전달 서비스. /// App.xaml.cs의 SetupTrayIcon 이후 Initialize()로 초기화됩니다. /// internal static class NotificationService { private static Action? _showBalloon; /// App.xaml.cs에서 NotifyIcon 연결 시 호출 public static void Initialize(Action showBalloon) => _showBalloon = showBalloon; /// 트레이 풍선 알림을 표시합니다. public static void Notify(string title, string message) { NotifyBalloonOnly(title, message); NotificationCenterService.Record(title, message, NotificationType.Info); } internal static void NotifyBalloonOnly(string title, string message) => _showBalloon?.Invoke(title, message); public static void LogOnly(string title, string message) => NotificationCenterService.Record(title, message, NotificationType.Info); }