Winify

Subversion Repositories:
Compare Path: Rev
With Path: Rev
?path1? @ 28  →  ?path2? @ 29
/trunk/Winify/Form1.cs
@@ -11,7 +11,7 @@
using AutoUpdaterDotNET;
using Serilog;
using Servers;
using ToastNotifications;
using Toasts;
using Winify.Gotify;
using Winify.Servers.Serialization;
using Winify.Settings;
@@ -167,11 +167,9 @@
foreach (var announcement in announcements.Announcement)
if (announcement.AppId == e.Notification.AppId)
{
var configuredNotification = new Notification(
var configuredNotification = new ToastForm(
$"{e.Notification.Title} ({e.Notification.Server.Name}/{e.Notification.AppId})",
e.Notification.Message, announcement.LingerTime, e.Image,
FormAnimator.AnimationMethod.Slide,
FormAnimator.AnimationDirection.Up);
e.Notification.Message, announcement.LingerTime, e.Image);
 
configuredNotification.Show();
 
@@ -178,10 +176,9 @@
return;
}
 
var notification = new Notification(
var notification = new ToastForm(
$"{e.Notification.Title} ({e.Notification.Server.Name}/{e.Notification.AppId})",
e.Notification.Message, 5000, e.Image, FormAnimator.AnimationMethod.Slide,
FormAnimator.AnimationDirection.Up);
e.Notification.Message, 5000, e.Image);
 
notification.Show();
}, CancellationToken.None, TaskCreationOptions.LongRunning, _uiTaskScheduler);