Winify

Subversion Repositories:
Compare Path: Rev
With Path: Rev
?path1? @ 23  →  ?path2? @ 24
File deleted
\ No newline at end of file
/trunk/Winify/NotificationManager.cs
/trunk/Winify/Form1.cs
@@ -4,6 +4,7 @@
using System.Configuration;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
@@ -11,6 +12,7 @@
using AutoUpdaterDotNET;
using Serilog;
using Servers;
using ToastNotifications;
using Winify.Gotify;
using Winify.Properties;
using Winify.Servers.Serialization;
@@ -26,14 +28,12 @@
 
private readonly global::Servers.Servers _servers;
 
private readonly TaskScheduler _taskScheduler;
private readonly TaskScheduler _uiTaskScheduler;
 
private AboutForm _aboutForm;
 
private GotifyConnectionManager _gotifyConnectionManager;
 
private NotificationManager _notificationManager;
 
private SettingsForm _settingsForm;
 
#endregion
@@ -75,14 +75,12 @@
_servers = new global::Servers.Servers();
_servers.Server.CollectionChanged += Server_CollectionChanged;
_servers.Server.ListChanged += Server_ListChanged;
_announcements = new global::Announcements.Announcements();
_announcements = new Announcements.Announcements();
_announcements.Announcement.CollectionChanged += Announcements_CollectionChanged;
_announcements.Announcement.ListChanged += Announcement_ListChanged;
 
_taskScheduler = TaskScheduler.FromCurrentSynchronizationContext();
_uiTaskScheduler = TaskScheduler.FromCurrentSynchronizationContext();
 
_notificationManager = new NotificationManager(_taskScheduler);
 
_gotifyConnectionManager = new GotifyConnectionManager(_servers);
_gotifyConnectionManager.GotifyNotification += GotifyConnectionManager_GotifyNotification;
 
@@ -129,9 +127,6 @@
_gotifyConnectionManager?.Dispose();
_gotifyConnectionManager = null;
 
_notificationManager?.Dispose();
_notificationManager = null;
 
components.Dispose();
}
 
@@ -159,7 +154,28 @@
 
private void GotifyConnectionManager_GotifyNotification(object sender, GotifyNotificationEventArgs e)
{
_notificationManager.ShowNotification(e, _announcements);
Task.Factory.StartNew(() =>
{
foreach (var announcement in _announcements.Announcement)
{
if (announcement.AppId == e.Notification.AppId)
{
var configuredNotification = new Notification($"{e.Notification.Title} ({e.Notification.Server.Name}/{e.Notification.AppId})",
e.Notification.Message, announcement.LingerTime, e.Image, FormAnimator.AnimationMethod.Slide,
FormAnimator.AnimationDirection.Up);
 
configuredNotification.Show();
 
return;
}
}
 
var notification = new Notification($"{e.Notification.Title} ({e.Notification.Server.Name}/{e.Notification.AppId})",
e.Notification.Message, 5000, e.Image, FormAnimator.AnimationMethod.Slide,
FormAnimator.AnimationDirection.Up);
 
notification.Show();
}, CancellationToken.None, TaskCreationOptions.None, _uiTaskScheduler);
}
 
private async void Server_CollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
/trunk/Winify/Gotify/GotifyConnection.cs
@@ -9,6 +9,7 @@
using System.Threading.Tasks;
using Newtonsoft.Json;
using Serilog;
using Servers;
using ClientWebSocket = System.Net.WebSockets.Managed.ClientWebSocket;
 
namespace Winify.Gotify
@@ -33,6 +34,13 @@
 
private ClientWebSocket _webSocketClient;
 
private readonly Server _server;
 
public GotifyConnection(Server server)
{
_server = server;
}
 
#endregion
 
#region Constructors, Destructors and Finalizers
@@ -93,6 +101,8 @@
{
_cancellationTokenSource.Cancel();
}
 
_runTask.Wait(CancellationToken.None);
}
 
#endregion
@@ -140,6 +150,8 @@
continue;
}
 
gotifyNotification.Server = _server;
 
if (!Uri.TryCreate($"{httpUri}/application", UriKind.Absolute, out var applicationUri))
{
continue;
/trunk/Winify/Gotify/GotifyConnectionManager.cs
@@ -109,7 +109,7 @@
 
private void CreateConnection(Server server)
{
var connection = new GotifyConnection();
var connection = new GotifyConnection(server);
connection.GotifyNotification += Connection_GotifyNotification;
 
connection.Start(server.Username, server.Password, server.Url);
/trunk/Winify/Gotify/GotifyNotification.cs
@@ -1,5 +1,6 @@
using System;
using Newtonsoft.Json;
using Servers;
 
namespace Winify.Gotify
{
@@ -25,6 +26,8 @@
[JsonProperty(PropertyName = "date")]
public DateTime Date { get; set; }
 
public Server Server { get; set; }
 
#endregion
}
}
/trunk/Winify/SettingsForm.Designer.cs
@@ -57,12 +57,10 @@
this.tableLayoutPanel7 = new System.Windows.Forms.TableLayoutPanel();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.tableLayoutPanel10 = new System.Windows.Forms.TableLayoutPanel();
this.speakTextBox = new System.Windows.Forms.TextBox();
this.label4 = new System.Windows.Forms.Label();
this.appIdTextBox = new System.Windows.Forms.TextBox();
this.label6 = new System.Windows.Forms.Label();
this.lingerTimeTextBox = new System.Windows.Forms.TextBox();
this.label7 = new System.Windows.Forms.Label();
this.tableLayoutPanel4 = new System.Windows.Forms.TableLayoutPanel();
this.tableLayoutPanel5 = new System.Windows.Forms.TableLayoutPanel();
this.button4 = new System.Windows.Forms.Button();
@@ -98,7 +96,7 @@
this.tabControl1.Location = new System.Drawing.Point(0, 0);
this.tabControl1.Name = "tabControl1";
this.tabControl1.SelectedIndex = 0;
this.tabControl1.Size = new System.Drawing.Size(584, 302);
this.tabControl1.Size = new System.Drawing.Size(529, 247);
this.tabControl1.TabIndex = 0;
//
// tabPage2
@@ -150,7 +148,7 @@
this.tabPage1.Location = new System.Drawing.Point(4, 22);
this.tabPage1.Name = "tabPage1";
this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
this.tabPage1.Size = new System.Drawing.Size(576, 276);
this.tabPage1.Size = new System.Drawing.Size(521, 221);
this.tabPage1.TabIndex = 0;
this.tabPage1.Text = "Servers";
this.tabPage1.UseVisualStyleBackColor = true;
@@ -167,7 +165,7 @@
this.tableLayoutPanel3.Name = "tableLayoutPanel3";
this.tableLayoutPanel3.RowCount = 1;
this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.tableLayoutPanel3.Size = new System.Drawing.Size(570, 270);
this.tableLayoutPanel3.Size = new System.Drawing.Size(515, 215);
this.tableLayoutPanel3.TabIndex = 2;
//
// groupBox1
@@ -174,9 +172,9 @@
//
this.groupBox1.Controls.Add(this.tableLayoutPanel2);
this.groupBox1.Dock = System.Windows.Forms.DockStyle.Fill;
this.groupBox1.Location = new System.Drawing.Point(288, 3);
this.groupBox1.Location = new System.Drawing.Point(260, 3);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(279, 264);
this.groupBox1.Size = new System.Drawing.Size(252, 209);
this.groupBox1.TabIndex = 0;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "Server Settings";
@@ -202,15 +200,15 @@
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 25F));
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 25F));
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 25F));
this.tableLayoutPanel2.Size = new System.Drawing.Size(273, 245);
this.tableLayoutPanel2.Size = new System.Drawing.Size(246, 190);
this.tableLayoutPanel2.TabIndex = 0;
//
// serverNameTextBox
//
this.serverNameTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.serverNameTextBox.Location = new System.Drawing.Point(71, 20);
this.serverNameTextBox.Location = new System.Drawing.Point(64, 13);
this.serverNameTextBox.Name = "serverNameTextBox";
this.serverNameTextBox.Size = new System.Drawing.Size(199, 20);
this.serverNameTextBox.Size = new System.Drawing.Size(179, 20);
this.serverNameTextBox.TabIndex = 1;
//
// label5
@@ -217,9 +215,9 @@
//
this.label5.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(3, 24);
this.label5.Location = new System.Drawing.Point(3, 17);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(62, 13);
this.label5.Size = new System.Drawing.Size(55, 13);
this.label5.TabIndex = 3;
this.label5.Text = "Name";
this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
@@ -228,9 +226,9 @@
//
this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(3, 85);
this.label3.Location = new System.Drawing.Point(3, 64);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(62, 13);
this.label3.Size = new System.Drawing.Size(55, 13);
this.label3.TabIndex = 2;
this.label3.Text = "URL";
this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
@@ -238,9 +236,9 @@
// serverUrlTextBox
//
this.serverUrlTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.serverUrlTextBox.Location = new System.Drawing.Point(71, 81);
this.serverUrlTextBox.Location = new System.Drawing.Point(64, 60);
this.serverUrlTextBox.Name = "serverUrlTextBox";
this.serverUrlTextBox.Size = new System.Drawing.Size(199, 20);
this.serverUrlTextBox.Size = new System.Drawing.Size(179, 20);
this.serverUrlTextBox.TabIndex = 2;
//
// label1
@@ -247,9 +245,9 @@
//
this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(3, 146);
this.label1.Location = new System.Drawing.Point(3, 111);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(62, 13);
this.label1.Size = new System.Drawing.Size(55, 13);
this.label1.TabIndex = 5;
this.label1.Text = "Username";
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
@@ -257,9 +255,9 @@
// serverUsernameTextBox
//
this.serverUsernameTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.serverUsernameTextBox.Location = new System.Drawing.Point(71, 142);
this.serverUsernameTextBox.Location = new System.Drawing.Point(64, 107);
this.serverUsernameTextBox.Name = "serverUsernameTextBox";
this.serverUsernameTextBox.Size = new System.Drawing.Size(199, 20);
this.serverUsernameTextBox.Size = new System.Drawing.Size(179, 20);
this.serverUsernameTextBox.TabIndex = 4;
//
// label2
@@ -266,9 +264,9 @@
//
this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(3, 207);
this.label2.Location = new System.Drawing.Point(3, 159);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(62, 13);
this.label2.Size = new System.Drawing.Size(55, 13);
this.label2.TabIndex = 7;
this.label2.Text = "Password";
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
@@ -276,10 +274,10 @@
// serverPasswordTextBox
//
this.serverPasswordTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.serverPasswordTextBox.Location = new System.Drawing.Point(71, 204);
this.serverPasswordTextBox.Location = new System.Drawing.Point(64, 155);
this.serverPasswordTextBox.Name = "serverPasswordTextBox";
this.serverPasswordTextBox.PasswordChar = '*';
this.serverPasswordTextBox.Size = new System.Drawing.Size(199, 20);
this.serverPasswordTextBox.Size = new System.Drawing.Size(179, 20);
this.serverPasswordTextBox.TabIndex = 5;
//
// tableLayoutPanel1
@@ -294,7 +292,7 @@
this.tableLayoutPanel1.RowCount = 2;
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 85F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 15F));
this.tableLayoutPanel1.Size = new System.Drawing.Size(279, 264);
this.tableLayoutPanel1.Size = new System.Drawing.Size(251, 209);
this.tableLayoutPanel1.TabIndex = 1;
//
// tableLayoutPanel6
@@ -306,19 +304,19 @@
this.tableLayoutPanel6.Controls.Add(this.button1, 0, 0);
this.tableLayoutPanel6.Controls.Add(this.button2, 2, 0);
this.tableLayoutPanel6.Dock = System.Windows.Forms.DockStyle.Fill;
this.tableLayoutPanel6.Location = new System.Drawing.Point(3, 227);
this.tableLayoutPanel6.Location = new System.Drawing.Point(3, 180);
this.tableLayoutPanel6.Name = "tableLayoutPanel6";
this.tableLayoutPanel6.RowCount = 1;
this.tableLayoutPanel6.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.tableLayoutPanel6.Size = new System.Drawing.Size(273, 34);
this.tableLayoutPanel6.Size = new System.Drawing.Size(245, 26);
this.tableLayoutPanel6.TabIndex = 1;
//
// button1
//
this.button1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.button1.Location = new System.Drawing.Point(3, 5);
this.button1.Location = new System.Drawing.Point(3, 3);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(85, 23);
this.button1.Size = new System.Drawing.Size(75, 20);
this.button1.TabIndex = 6;
this.button1.Text = "Add";
this.button1.UseVisualStyleBackColor = true;
@@ -327,9 +325,9 @@
// button2
//
this.button2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.button2.Location = new System.Drawing.Point(185, 5);
this.button2.Location = new System.Drawing.Point(165, 3);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(85, 23);
this.button2.Size = new System.Drawing.Size(77, 20);
this.button2.TabIndex = 0;
this.button2.Text = "Remove";
this.button2.UseVisualStyleBackColor = true;
@@ -341,7 +339,7 @@
this.groupBox5.Dock = System.Windows.Forms.DockStyle.Fill;
this.groupBox5.Location = new System.Drawing.Point(3, 3);
this.groupBox5.Name = "groupBox5";
this.groupBox5.Size = new System.Drawing.Size(273, 218);
this.groupBox5.Size = new System.Drawing.Size(245, 171);
this.groupBox5.TabIndex = 2;
this.groupBox5.TabStop = false;
this.groupBox5.Text = "Gotify Servers";
@@ -353,7 +351,7 @@
this.listBox1.FormattingEnabled = true;
this.listBox1.Location = new System.Drawing.Point(3, 16);
this.listBox1.Name = "listBox1";
this.listBox1.Size = new System.Drawing.Size(267, 199);
this.listBox1.Size = new System.Drawing.Size(239, 152);
this.listBox1.TabIndex = 0;
this.listBox1.SelectedIndexChanged += new System.EventHandler(this.ListBox1_SelectedIndexChanged);
//
@@ -362,7 +360,7 @@
this.tabPage3.Controls.Add(this.tableLayoutPanel7);
this.tabPage3.Location = new System.Drawing.Point(4, 22);
this.tabPage3.Name = "tabPage3";
this.tabPage3.Size = new System.Drawing.Size(576, 276);
this.tabPage3.Size = new System.Drawing.Size(521, 221);
this.tabPage3.TabIndex = 2;
this.tabPage3.Text = "Announcements";
this.tabPage3.UseVisualStyleBackColor = true;
@@ -380,7 +378,7 @@
this.tableLayoutPanel7.RowCount = 1;
this.tableLayoutPanel7.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.tableLayoutPanel7.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
this.tableLayoutPanel7.Size = new System.Drawing.Size(576, 276);
this.tableLayoutPanel7.Size = new System.Drawing.Size(521, 221);
this.tableLayoutPanel7.TabIndex = 0;
//
// groupBox2
@@ -387,9 +385,9 @@
//
this.groupBox2.Controls.Add(this.tableLayoutPanel10);
this.groupBox2.Dock = System.Windows.Forms.DockStyle.Fill;
this.groupBox2.Location = new System.Drawing.Point(291, 3);
this.groupBox2.Location = new System.Drawing.Point(263, 3);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(282, 270);
this.groupBox2.Size = new System.Drawing.Size(255, 215);
this.groupBox2.TabIndex = 3;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "Announcement Settings";
@@ -399,37 +397,26 @@
this.tableLayoutPanel10.ColumnCount = 2;
this.tableLayoutPanel10.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F));
this.tableLayoutPanel10.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 75F));
this.tableLayoutPanel10.Controls.Add(this.speakTextBox, 1, 2);
this.tableLayoutPanel10.Controls.Add(this.label4, 0, 0);
this.tableLayoutPanel10.Controls.Add(this.appIdTextBox, 1, 0);
this.tableLayoutPanel10.Controls.Add(this.label6, 0, 1);
this.tableLayoutPanel10.Controls.Add(this.lingerTimeTextBox, 1, 1);
this.tableLayoutPanel10.Controls.Add(this.label7, 0, 2);
this.tableLayoutPanel10.Dock = System.Windows.Forms.DockStyle.Fill;
this.tableLayoutPanel10.Location = new System.Drawing.Point(3, 16);
this.tableLayoutPanel10.Name = "tableLayoutPanel10";
this.tableLayoutPanel10.RowCount = 3;
this.tableLayoutPanel10.RowCount = 2;
this.tableLayoutPanel10.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.33333F));
this.tableLayoutPanel10.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.33333F));
this.tableLayoutPanel10.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.33333F));
this.tableLayoutPanel10.Size = new System.Drawing.Size(276, 251);
this.tableLayoutPanel10.Size = new System.Drawing.Size(249, 196);
this.tableLayoutPanel10.TabIndex = 4;
//
// speakTextBox
//
this.speakTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.speakTextBox.Location = new System.Drawing.Point(72, 198);
this.speakTextBox.Name = "speakTextBox";
this.speakTextBox.Size = new System.Drawing.Size(201, 20);
this.speakTextBox.TabIndex = 1;
//
// label4
//
this.label4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(3, 35);
this.label4.Location = new System.Drawing.Point(3, 42);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(63, 13);
this.label4.Size = new System.Drawing.Size(56, 13);
this.label4.TabIndex = 0;
this.label4.Text = "App Id";
this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
@@ -437,9 +424,9 @@
// appIdTextBox
//
this.appIdTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.appIdTextBox.Location = new System.Drawing.Point(72, 31);
this.appIdTextBox.Location = new System.Drawing.Point(65, 39);
this.appIdTextBox.Name = "appIdTextBox";
this.appIdTextBox.Size = new System.Drawing.Size(201, 20);
this.appIdTextBox.Size = new System.Drawing.Size(181, 20);
this.appIdTextBox.TabIndex = 1;
//
// label6
@@ -446,32 +433,21 @@
//
this.label6.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(3, 118);
this.label6.Location = new System.Drawing.Point(3, 140);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(63, 13);
this.label6.Size = new System.Drawing.Size(56, 13);
this.label6.TabIndex = 2;
this.label6.Text = "Linger Time";
this.label6.Text = "Timeout";
this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// lingerTimeTextBox
//
this.lingerTimeTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.lingerTimeTextBox.Location = new System.Drawing.Point(72, 114);
this.lingerTimeTextBox.Location = new System.Drawing.Point(65, 137);
this.lingerTimeTextBox.Name = "lingerTimeTextBox";
this.lingerTimeTextBox.Size = new System.Drawing.Size(201, 20);
this.lingerTimeTextBox.Size = new System.Drawing.Size(181, 20);
this.lingerTimeTextBox.TabIndex = 3;
//
// label7
//
this.label7.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.label7.AutoSize = true;
this.label7.Location = new System.Drawing.Point(3, 202);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(63, 13);
this.label7.TabIndex = 4;
this.label7.Text = "Speak";
this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// tableLayoutPanel4
//
this.tableLayoutPanel4.ColumnCount = 1;
@@ -484,7 +460,7 @@
this.tableLayoutPanel4.RowCount = 2;
this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 85F));
this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 15F));
this.tableLayoutPanel4.Size = new System.Drawing.Size(282, 270);
this.tableLayoutPanel4.Size = new System.Drawing.Size(254, 215);
this.tableLayoutPanel4.TabIndex = 4;
//
// tableLayoutPanel5
@@ -496,19 +472,19 @@
this.tableLayoutPanel5.Controls.Add(this.button4, 0, 0);
this.tableLayoutPanel5.Controls.Add(this.button3, 2, 0);
this.tableLayoutPanel5.Dock = System.Windows.Forms.DockStyle.Fill;
this.tableLayoutPanel5.Location = new System.Drawing.Point(3, 232);
this.tableLayoutPanel5.Location = new System.Drawing.Point(3, 185);
this.tableLayoutPanel5.Name = "tableLayoutPanel5";
this.tableLayoutPanel5.RowCount = 1;
this.tableLayoutPanel5.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.tableLayoutPanel5.Size = new System.Drawing.Size(276, 35);
this.tableLayoutPanel5.Size = new System.Drawing.Size(248, 27);
this.tableLayoutPanel5.TabIndex = 0;
//
// button4
//
this.button4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.button4.Location = new System.Drawing.Point(3, 6);
this.button4.Location = new System.Drawing.Point(3, 3);
this.button4.Name = "button4";
this.button4.Size = new System.Drawing.Size(86, 23);
this.button4.Size = new System.Drawing.Size(76, 21);
this.button4.TabIndex = 0;
this.button4.Text = "Add";
this.button4.UseVisualStyleBackColor = true;
@@ -517,9 +493,9 @@
// button3
//
this.button3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.button3.Location = new System.Drawing.Point(187, 6);
this.button3.Location = new System.Drawing.Point(167, 3);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(86, 23);
this.button3.Size = new System.Drawing.Size(78, 21);
this.button3.TabIndex = 0;
this.button3.Text = "Remove";
this.button3.UseVisualStyleBackColor = true;
@@ -531,7 +507,7 @@
this.groupBox4.Dock = System.Windows.Forms.DockStyle.Fill;
this.groupBox4.Location = new System.Drawing.Point(3, 3);
this.groupBox4.Name = "groupBox4";
this.groupBox4.Size = new System.Drawing.Size(276, 223);
this.groupBox4.Size = new System.Drawing.Size(248, 176);
this.groupBox4.TabIndex = 4;
this.groupBox4.TabStop = false;
this.groupBox4.Text = "Application Id";
@@ -542,7 +518,7 @@
this.listBox2.FormattingEnabled = true;
this.listBox2.Location = new System.Drawing.Point(3, 16);
this.listBox2.Name = "listBox2";
this.listBox2.Size = new System.Drawing.Size(270, 204);
this.listBox2.Size = new System.Drawing.Size(242, 157);
this.listBox2.TabIndex = 0;
this.listBox2.SelectedIndexChanged += new System.EventHandler(this.ListBox2_SelectedIndexChanged);
//
@@ -550,10 +526,11 @@
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(584, 302);
this.ClientSize = new System.Drawing.Size(529, 247);
this.Controls.Add(this.tabControl1);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MinimumSize = new System.Drawing.Size(600, 340);
this.MaximumSize = new System.Drawing.Size(545, 285);
this.MinimumSize = new System.Drawing.Size(545, 285);
this.Name = "SettingsForm";
this.Text = "Winify: Settings";
this.tabControl1.ResumeLayout(false);
@@ -610,12 +587,10 @@
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel7;
private System.Windows.Forms.GroupBox groupBox2;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel10;
private System.Windows.Forms.TextBox speakTextBox;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.TextBox appIdTextBox;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.TextBox lingerTimeTextBox;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel4;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel5;
private System.Windows.Forms.Button button4;
/trunk/Winify/SettingsForm.cs
@@ -69,8 +69,6 @@
lingerTimeTextBox.DataBindings.Add(new Binding("Text", _announcementBindingSource,
nameof(_announcement.LingerTime), true,
DataSourceUpdateMode.OnPropertyChanged));
speakTextBox.DataBindings.Add(new Binding("Text", _announcementBindingSource, nameof(_announcement.Speak),
true, DataSourceUpdateMode.OnPropertyChanged));
 
listBox2.DataSource = _announcements.Announcement;
listBox2.DisplayMember = "Id";
/trunk/Winify/Winify.csproj
@@ -77,7 +77,6 @@
<Compile Include="AboutForm.Designer.cs">
<DependentUpon>AboutForm.cs</DependentUpon>
</Compile>
<Compile Include="NotificationManager.cs" />
<Compile Include="Servers\Serialization\SerializationFailure.cs" />
<Compile Include="Servers\Serialization\SerializationState.cs" />
<Compile Include="Servers\Serialization\SerializationSuccess.cs" />