Winify – Diff between revs 28 and 29
?pathlinks?
Rev 28 | Rev 29 | |||
---|---|---|---|---|
Line 9... | Line 9... | |||
9 | using System.Threading.Tasks; |
9 | using System.Threading.Tasks; |
|
10 | using System.Windows.Forms; |
10 | using System.Windows.Forms; |
|
11 | using AutoUpdaterDotNET; |
11 | using AutoUpdaterDotNET; |
|
12 | using Serilog; |
12 | using Serilog; |
|
13 | using Servers; |
13 | using Servers; |
|
14 | using ToastNotifications; |
14 | using Toasts; |
|
15 | using Winify.Gotify; |
15 | using Winify.Gotify; |
|
16 | using Winify.Servers.Serialization; |
16 | using Winify.Servers.Serialization; |
|
17 | using Winify.Settings; |
17 | using Winify.Settings; |
|
18 | using Winify.Utilities; |
18 | using Winify.Utilities; |
|
Line 165... | Line 165... | |||
165 | var announcements = await LoadAnnouncements(); |
165 | var announcements = await LoadAnnouncements(); |
|
Line 166... | Line 166... | |||
166 | |
166 | |
|
167 | foreach (var announcement in announcements.Announcement) |
167 | foreach (var announcement in announcements.Announcement) |
|
168 | if (announcement.AppId == e.Notification.AppId) |
168 | if (announcement.AppId == e.Notification.AppId) |
|
169 | { |
169 | { |
|
170 | var configuredNotification = new Notification( |
170 | var configuredNotification = new ToastForm( |
|
171 | $"{e.Notification.Title} ({e.Notification.Server.Name}/{e.Notification.AppId})", |
171 | $"{e.Notification.Title} ({e.Notification.Server.Name}/{e.Notification.AppId})", |
|
172 | e.Notification.Message, announcement.LingerTime, e.Image, |
- | ||
173 | FormAnimator.AnimationMethod.Slide, |
- | ||
Line 174... | Line 172... | |||
174 | FormAnimator.AnimationDirection.Up); |
172 | e.Notification.Message, announcement.LingerTime, e.Image); |
|
Line 175... | Line 173... | |||
175 | |
173 | |
|
176 | configuredNotification.Show(); |
174 | configuredNotification.Show(); |
|
Line 177... | Line 175... | |||
177 | |
175 | |
|
178 | return; |
176 | return; |
|
179 | } |
177 | } |
|
180 | |
- | ||
Line 181... | Line 178... | |||
181 | var notification = new Notification( |
178 | |
|
182 | $"{e.Notification.Title} ({e.Notification.Server.Name}/{e.Notification.AppId})", |
179 | var notification = new ToastForm( |
|
183 | e.Notification.Message, 5000, e.Image, FormAnimator.AnimationMethod.Slide, |
180 | $"{e.Notification.Title} ({e.Notification.Server.Name}/{e.Notification.AppId})", |