Winify
/trunk/Winify/Gotify/GotifyConnectionManager.cs |
@@ -8,6 +8,12 @@ |
{ |
public class GotifyConnectionManager : IDisposable |
{ |
#region Public Events & Delegates |
|
public event EventHandler<GotifyNotificationEventArgs> GotifyNotification; |
|
#endregion |
|
#region Private Delegates, Events, Enums, Properties, Indexers and Fields |
|
private readonly ConcurrentDictionary<string, GotifyConnection> _gotifyConnections; |
@@ -70,10 +76,9 @@ |
} |
} |
|
private static void Connection_GotifyNotification(object sender, GotifyNotificationEventArgs e) |
private void Connection_GotifyNotification(object sender, GotifyNotificationEventArgs e) |
{ |
var notification = new NotificationForm(e.Image, e.Notification.Title, e.Notification.Message, 5000); |
notification.ShowDialog(); |
GotifyNotification?.Invoke(sender, e); |
} |
|
#endregion |