Winify – Diff between revs 9 and 11
?pathlinks?
Rev 9 | Rev 11 | |||
---|---|---|---|---|
Line 21... | Line 21... | |||
21 | |
21 | |
|
Line 22... | Line 22... | |||
22 | private AboutForm _aboutForm; |
22 | private AboutForm _aboutForm; |
|
Line -... | Line 23... | |||
- | 23 | |
||
- | 24 | private GotifyConnectionManager _gotifyConnectionManager; |
||
23 | |
25 | |
|
Line 24... | Line 26... | |||
24 | private GotifyConnectionManager _gotifyConnectionManager; |
26 | private NotificationManager _notificationManager; |
|
Line 25... | Line 27... | |||
25 | |
27 | |
|
Line 47... | Line 49... | |||
47 | Settings.Default.PropertyChanged += Default_PropertyChanged; |
49 | Settings.Default.PropertyChanged += Default_PropertyChanged; |
|
Line 48... | Line 50... | |||
48 | |
50 | |
|
49 | _servers = new global::Servers.Servers(); |
51 | _servers = new global::Servers.Servers(); |
|
Line -... | Line 52... | |||
- | 52 | _servers.Server.CollectionChanged += Server_CollectionChanged; |
||
- | 53 | |
||
50 | _servers.Server.CollectionChanged += Server_CollectionChanged; |
54 | _notificationManager = new NotificationManager(TaskScheduler.FromCurrentSynchronizationContext()); |
|
- | 55 | |
||
Line 51... | Line 56... | |||
51 | |
56 | _gotifyConnectionManager = new GotifyConnectionManager(_servers); |
|
52 | _gotifyConnectionManager = new GotifyConnectionManager(_servers); |
57 | _gotifyConnectionManager.GotifyNotification += GotifyConnectionManager_GotifyNotification; |
|
53 | |
58 | |
|
Line 74... | Line 79... | |||
74 | |
79 | |
|
75 | Settings.Default.SettingsLoaded -= Default_SettingsLoaded; |
80 | Settings.Default.SettingsLoaded -= Default_SettingsLoaded; |
|
76 | Settings.Default.SettingsSaving -= Default_SettingsSaving; |
81 | Settings.Default.SettingsSaving -= Default_SettingsSaving; |
|
Line -... | Line 82... | |||
- | 82 | Settings.Default.PropertyChanged -= Default_PropertyChanged; |
||
77 | Settings.Default.PropertyChanged -= Default_PropertyChanged; |
83 | |
|
78 | |
84 | _gotifyConnectionManager.GotifyNotification -= GotifyConnectionManager_GotifyNotification; |
|
Line -... | Line 85... | |||
- | 85 | _gotifyConnectionManager?.Dispose(); |
||
- | 86 | _gotifyConnectionManager = null; |
||
- | 87 | |
||
79 | _gotifyConnectionManager?.Dispose(); |
88 | _notificationManager?.Dispose(); |
|
80 | _gotifyConnectionManager = null; |
89 | _notificationManager = null; |
|
Line 81... | Line 90... | |||
81 | |
90 | |
|
82 | components.Dispose(); |
91 | components.Dispose(); |
|
Line 83... | Line 92... | |||
83 | } |
92 | } |
|
Line 84... | Line 93... | |||
84 | |
93 | |
|
Line -... | Line 94... | |||
- | 94 | base.Dispose(disposing); |
||
- | 95 | } |
||
- | 96 | |
||
- | 97 | #endregion |
||
- | 98 | |
||
85 | base.Dispose(disposing); |
99 | #region Event Handlers |
|
86 | } |
100 | |
|
87 | |
101 | private void GotifyConnectionManager_GotifyNotification(object sender, GotifyNotificationEventArgs e) |
|
88 | #endregion |
102 | { |
|
89 | |
103 | _notificationManager.ShowNotification(e); |