Winify
/trunk/Winify/Form1.cs |
@@ -19,6 +19,8 @@ |
|
private readonly global::Servers.Servers _servers; |
|
private readonly TaskScheduler _taskScheduler; |
|
private AboutForm _aboutForm; |
|
private GotifyConnectionManager _gotifyConnectionManager; |
@@ -51,14 +53,16 @@ |
_servers = new global::Servers.Servers(); |
_servers.Server.CollectionChanged += Server_CollectionChanged; |
|
_notificationManager = new NotificationManager(TaskScheduler.FromCurrentSynchronizationContext()); |
_taskScheduler = TaskScheduler.FromCurrentSynchronizationContext(); |
|
_notificationManager = new NotificationManager(_taskScheduler); |
|
_gotifyConnectionManager = new GotifyConnectionManager(_servers); |
_gotifyConnectionManager.GotifyNotification += GotifyConnectionManager_GotifyNotification; |
|
Task.Run(async () => |
LoadServers().ContinueWith(async task => |
{ |
var restoredServers = await LoadServers(); |
var restoredServers = await task; |
|
foreach (var server in restoredServers.Server) |
{ |