public NotificationWindow(AbstractNotificationSystem[] notificationSystems) { _notificationSystems = notificationSystems; InitializeComponent(); GoGoMagicStealthMode(); Load += Window_Loaded; }
private static ToolTipIcon GetToolTipIcon(AbstractNotificationSystem.Icon icon) { switch (icon) { case AbstractNotificationSystem.Icon.Warning: return ToolTipIcon.Warning; case AbstractNotificationSystem.Icon.Info: return ToolTipIcon.Info; default: return ToolTipIcon.Error; } }
private void DisplayMessage(int secondsToNotifyFor, string title, string message, AbstractNotificationSystem.Icon icon) { notificationIcon.ShowBalloonTip(secondsToNotifyFor, title, message, GetToolTipIcon(icon)); }