Winify
/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); |
/trunk/Winify/Winify.csproj |
@@ -171,9 +171,9 @@ |
<Project>{ddab11f9-3308-4464-b864-4d75cba1acc8}</Project> |
<Name>Servers</Name> |
</ProjectReference> |
<ProjectReference Include="..\WindowsToastNotifications\ToastNotifications\ToastNotifications.csproj"> |
<ProjectReference Include="..\Toasts\Toasts.csproj"> |
<Project>{380d8d88-386c-4c50-9a54-800f79fdf7d2}</Project> |
<Name>ToastNotifications</Name> |
<Name>Toasts</Name> |
</ProjectReference> |
</ItemGroup> |
<ItemGroup> |