Winify – Diff between revs 8 and 11
?pathlinks?
Rev 8 | Rev 11 | |||
---|---|---|---|---|
Line 6... | Line 6... | |||
6 | |
6 | |
|
7 | namespace Winify.Gotify |
7 | namespace Winify.Gotify |
|
8 | { |
8 | { |
|
9 | public class GotifyConnectionManager : IDisposable |
9 | public class GotifyConnectionManager : IDisposable |
|
- | 10 | { |
||
- | 11 | #region Public Events & Delegates |
||
- | 12 | |
||
- | 13 | public event EventHandler<GotifyNotificationEventArgs> GotifyNotification; |
||
- | 14 | |
||
- | 15 | #endregion |
||
10 | { |
16 | |
|
Line 11... | Line 17... | |||
11 | #region Private Delegates, Events, Enums, Properties, Indexers and Fields |
17 | #region Private Delegates, Events, Enums, Properties, Indexers and Fields |
|
Line 12... | Line 18... | |||
12 | |
18 | |
|
Line 68... | Line 74... | |||
68 | gotifyConnection.Dispose(); |
74 | gotifyConnection.Dispose(); |
|
69 | } |
75 | } |
|
70 | } |
76 | } |
|
71 | } |
77 | } |
|
Line 72... | Line 78... | |||
72 | |
78 | |
|
73 | private static void Connection_GotifyNotification(object sender, GotifyNotificationEventArgs e) |
79 | private void Connection_GotifyNotification(object sender, GotifyNotificationEventArgs e) |
|
74 | { |
- | ||
75 | var notification = new NotificationForm(e.Image, e.Notification.Title, e.Notification.Message, 5000); |
80 | { |
|
76 | notification.ShowDialog(); |
81 | GotifyNotification?.Invoke(sender, e); |
|
Line 77... | Line 82... | |||
77 | } |
82 | } |
|
78 | |
83 | |
|
79 | #endregion |
84 | #endregion |
|
80 | } |
85 | } |