diff --git a/SteamWare.IO/Redis.cs b/SteamWare.IO/Redis.cs
index 292462e..5c1e7a4 100644
--- a/SteamWare.IO/Redis.cs
+++ b/SteamWare.IO/Redis.cs
@@ -920,9 +920,9 @@ namespace SteamWare.IO
///
///
///
- public long StackLen(RedisKey stackName)
+ public long StackLen(string stackName)
{
- return connRedis.GetDatabase().ListLength(stackName);
+ return connRedis.GetDatabase().ListLength((RedisKey)stackName);
}
///
@@ -930,9 +930,9 @@ namespace SteamWare.IO
///
///
///
- public void StackPush(RedisKey stackName, RedisValue value)
+ public void StackPush(string stackName, string value)
{
- connRedis.GetDatabase().ListRightPush(stackName, value);
+ connRedis.GetDatabase().ListRightPush((RedisKey)stackName, (RedisValue)value);
}
///
@@ -940,9 +940,9 @@ namespace SteamWare.IO
///
///
///
- public RedisValue StackPop(RedisKey stackName)
+ public string StackPop(string stackName)
{
- return connRedis.GetDatabase().ListRightPop(stackName);
+ return connRedis.GetDatabase().ListRightPop((RedisKey)stackName).ToString();
}
///
@@ -950,9 +950,9 @@ namespace SteamWare.IO
///
///
///
- public long ListLen(RedisKey queueName)
+ public long ListLen(string queueName)
{
- return connRedis.GetDatabase().ListLength(queueName);
+ return connRedis.GetDatabase().ListLength((RedisKey)queueName);
}
///
@@ -960,9 +960,9 @@ namespace SteamWare.IO
///
///
///
- public void ListPush(RedisKey queueName, RedisValue value)
+ public void ListPush(string queueName, string value)
{
- connRedis.GetDatabase().ListRightPush(queueName, value);
+ connRedis.GetDatabase().ListRightPush((RedisKey)queueName, (RedisValue)value);
}
///
@@ -970,9 +970,9 @@ namespace SteamWare.IO
///
///
///
- public RedisValue ListPop(RedisKey queueName)
+ public string ListPop(string queueName)
{
- return connRedis.GetDatabase().ListLeftPop(queueName);
+ return connRedis.GetDatabase().ListLeftPop((RedisKey)queueName).ToString();
}
#endregion gestione Stack / List
diff --git a/TestBench/MainFOrm.Designer.cs b/TestBench/MainFOrm.Designer.cs
index be785fa..3c39b06 100644
--- a/TestBench/MainFOrm.Designer.cs
+++ b/TestBench/MainFOrm.Designer.cs
@@ -28,466 +28,553 @@
///
private void InitializeComponent()
{
- this.components = new System.ComponentModel.Container();
- this.groupBox1 = new System.Windows.Forms.GroupBox();
- this.lblOutMessage = new System.Windows.Forms.Label();
- this.chkRecursive = new System.Windows.Forms.CheckBox();
- this.btnCopyAll = new System.Windows.Forms.Button();
- this.label2 = new System.Windows.Forms.Label();
- this.txtDestDir = new System.Windows.Forms.TextBox();
- this.label1 = new System.Windows.Forms.Label();
- this.txtSourceDir = new System.Windows.Forms.TextBox();
- this.label3 = new System.Windows.Forms.Label();
- this.lblHwSwData = new System.Windows.Forms.Label();
- this.lblRedis = new System.Windows.Forms.Label();
- this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
- this.txtMergedName = new System.Windows.Forms.TextBox();
- this.button1 = new System.Windows.Forms.Button();
- this.lblNumMerged = new System.Windows.Forms.Label();
- this.button2 = new System.Windows.Forms.Button();
- this.tabControl1 = new System.Windows.Forms.TabControl();
- this.tabPage1 = new System.Windows.Forms.TabPage();
- this.tabPage2 = new System.Windows.Forms.TabPage();
- this.tabPage3 = new System.Windows.Forms.TabPage();
- this.btnResetCdv = new System.Windows.Forms.Button();
- this.lblRedCDV = new System.Windows.Forms.Label();
- this.btnShowCdv = new System.Windows.Forms.Button();
- this.tabPage4 = new System.Windows.Forms.TabPage();
- this.tabPage5 = new System.Windows.Forms.TabPage();
- this.btnStartSched = new System.Windows.Forms.Button();
- this.txtOre = new System.Windows.Forms.TextBox();
- this.lblOre = new System.Windows.Forms.Label();
- this.label4 = new System.Windows.Forms.Label();
- this.txtMin = new System.Windows.Forms.TextBox();
- this.label5 = new System.Windows.Forms.Label();
- this.txtSec = new System.Windows.Forms.TextBox();
- this.label6 = new System.Windows.Forms.Label();
- this.lblStartTimer = new System.Windows.Forms.Label();
- this.lblNextSched = new System.Windows.Forms.Label();
- this.lblClock = new System.Windows.Forms.Label();
- this.clockTimer = new System.Windows.Forms.Timer(this.components);
- this.groupBox1.SuspendLayout();
- this.tabControl1.SuspendLayout();
- this.tabPage1.SuspendLayout();
- this.tabPage2.SuspendLayout();
- this.tabPage3.SuspendLayout();
- this.tabPage4.SuspendLayout();
- this.tabPage5.SuspendLayout();
- this.SuspendLayout();
- //
- // groupBox1
- //
- this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ this.components = new System.ComponentModel.Container();
+ this.groupBox1 = new System.Windows.Forms.GroupBox();
+ this.lblOutMessage = new System.Windows.Forms.Label();
+ this.chkRecursive = new System.Windows.Forms.CheckBox();
+ this.btnCopyAll = new System.Windows.Forms.Button();
+ this.label2 = new System.Windows.Forms.Label();
+ this.txtDestDir = new System.Windows.Forms.TextBox();
+ this.label1 = new System.Windows.Forms.Label();
+ this.txtSourceDir = new System.Windows.Forms.TextBox();
+ this.label3 = new System.Windows.Forms.Label();
+ this.lblHwSwData = new System.Windows.Forms.Label();
+ this.lblRedis = new System.Windows.Forms.Label();
+ this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
+ this.txtMergedName = new System.Windows.Forms.TextBox();
+ this.button1 = new System.Windows.Forms.Button();
+ this.lblNumMerged = new System.Windows.Forms.Label();
+ this.button2 = new System.Windows.Forms.Button();
+ this.tabControl1 = new System.Windows.Forms.TabControl();
+ this.tabPage1 = new System.Windows.Forms.TabPage();
+ this.tabPage2 = new System.Windows.Forms.TabPage();
+ this.tabPage3 = new System.Windows.Forms.TabPage();
+ this.btnResetCdv = new System.Windows.Forms.Button();
+ this.lblRedCDV = new System.Windows.Forms.Label();
+ this.btnShowCdv = new System.Windows.Forms.Button();
+ this.tabPage4 = new System.Windows.Forms.TabPage();
+ this.tabPage5 = new System.Windows.Forms.TabPage();
+ this.lblClock = new System.Windows.Forms.Label();
+ this.lblNextSched = new System.Windows.Forms.Label();
+ this.lblStartTimer = new System.Windows.Forms.Label();
+ this.label6 = new System.Windows.Forms.Label();
+ this.label5 = new System.Windows.Forms.Label();
+ this.txtSec = new System.Windows.Forms.TextBox();
+ this.label4 = new System.Windows.Forms.Label();
+ this.txtMin = new System.Windows.Forms.TextBox();
+ this.lblOre = new System.Windows.Forms.Label();
+ this.txtOre = new System.Windows.Forms.TextBox();
+ this.btnStartSched = new System.Windows.Forms.Button();
+ this.clockTimer = new System.Windows.Forms.Timer(this.components);
+ this.tabPage6 = new System.Windows.Forms.TabPage();
+ this.groupBox2 = new System.Windows.Forms.GroupBox();
+ this.grpPublisher = new System.Windows.Forms.GroupBox();
+ this.label7 = new System.Windows.Forms.Label();
+ this.lblQueueRead = new System.Windows.Forms.Label();
+ this.txtQueueMessage = new System.Windows.Forms.TextBox();
+ this.btnSend = new System.Windows.Forms.Button();
+ this.groupBox1.SuspendLayout();
+ this.tabControl1.SuspendLayout();
+ this.tabPage1.SuspendLayout();
+ this.tabPage2.SuspendLayout();
+ this.tabPage3.SuspendLayout();
+ this.tabPage4.SuspendLayout();
+ this.tabPage5.SuspendLayout();
+ this.tabPage6.SuspendLayout();
+ this.groupBox2.SuspendLayout();
+ this.grpPublisher.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // groupBox1
+ //
+ this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
- this.groupBox1.AutoSize = true;
- this.groupBox1.Controls.Add(this.lblOutMessage);
- this.groupBox1.Controls.Add(this.chkRecursive);
- this.groupBox1.Controls.Add(this.btnCopyAll);
- this.groupBox1.Controls.Add(this.label2);
- this.groupBox1.Controls.Add(this.txtDestDir);
- this.groupBox1.Controls.Add(this.label1);
- this.groupBox1.Controls.Add(this.txtSourceDir);
- this.groupBox1.Location = new System.Drawing.Point(7, 6);
- this.groupBox1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
- this.groupBox1.Name = "groupBox1";
- this.groupBox1.Padding = new System.Windows.Forms.Padding(3, 2, 3, 2);
- this.groupBox1.Size = new System.Drawing.Size(987, 103);
- this.groupBox1.TabIndex = 1;
- this.groupBox1.TabStop = false;
- this.groupBox1.Text = "File IO test";
- //
- // lblOutMessage
- //
- this.lblOutMessage.AutoSize = true;
- this.lblOutMessage.Location = new System.Drawing.Point(17, 62);
- this.lblOutMessage.Name = "lblOutMessage";
- this.lblOutMessage.Size = new System.Drawing.Size(20, 17);
- this.lblOutMessage.TabIndex = 7;
- this.lblOutMessage.Text = "...";
- //
- // chkRecursive
- //
- this.chkRecursive.AutoSize = true;
- this.chkRecursive.Location = new System.Drawing.Point(533, 21);
- this.chkRecursive.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
- this.chkRecursive.Name = "chkRecursive";
- this.chkRecursive.Size = new System.Drawing.Size(88, 21);
- this.chkRecursive.TabIndex = 6;
- this.chkRecursive.Text = "recursive";
- this.chkRecursive.UseVisualStyleBackColor = true;
- //
- // btnCopyAll
- //
- this.btnCopyAll.Location = new System.Drawing.Point(695, 18);
- this.btnCopyAll.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
- this.btnCopyAll.Name = "btnCopyAll";
- this.btnCopyAll.Size = new System.Drawing.Size(75, 23);
- this.btnCopyAll.TabIndex = 5;
- this.btnCopyAll.Text = "Copy All";
- this.btnCopyAll.UseVisualStyleBackColor = true;
- this.btnCopyAll.Click += new System.EventHandler(this.BtnCopyAll_Click);
- //
- // label2
- //
- this.label2.AutoSize = true;
- this.label2.Location = new System.Drawing.Point(301, 25);
- this.label2.Name = "label2";
- this.label2.Size = new System.Drawing.Size(64, 17);
- this.label2.TabIndex = 4;
- this.label2.Text = "Dest DIR";
- //
- // txtDestDir
- //
- this.txtDestDir.Location = new System.Drawing.Point(371, 21);
- this.txtDestDir.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
- this.txtDestDir.Name = "txtDestDir";
- this.txtDestDir.Size = new System.Drawing.Size(156, 22);
- this.txtDestDir.TabIndex = 3;
- //
- // label1
- //
- this.label1.AutoSize = true;
- this.label1.Location = new System.Drawing.Point(17, 25);
- this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(80, 17);
- this.label1.TabIndex = 2;
- this.label1.Text = "Source DIR";
- //
- // txtSourceDir
- //
- this.txtSourceDir.Location = new System.Drawing.Point(103, 21);
- this.txtSourceDir.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
- this.txtSourceDir.Name = "txtSourceDir";
- this.txtSourceDir.Size = new System.Drawing.Size(156, 22);
- this.txtSourceDir.TabIndex = 1;
- //
- // label3
- //
- this.label3.AutoSize = true;
- this.label3.Location = new System.Drawing.Point(12, 20);
- this.label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
- this.label3.Name = "label3";
- this.label3.Size = new System.Drawing.Size(79, 17);
- this.label3.TabIndex = 2;
- this.label3.Text = "HwSw Data";
- //
- // lblHwSwData
- //
- this.lblHwSwData.AutoSize = true;
- this.lblHwSwData.Location = new System.Drawing.Point(129, 20);
- this.lblHwSwData.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
- this.lblHwSwData.Name = "lblHwSwData";
- this.lblHwSwData.Size = new System.Drawing.Size(20, 17);
- this.lblHwSwData.TabIndex = 3;
- this.lblHwSwData.Text = "...";
- //
- // lblRedis
- //
- this.lblRedis.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ this.groupBox1.AutoSize = true;
+ this.groupBox1.Controls.Add(this.lblOutMessage);
+ this.groupBox1.Controls.Add(this.chkRecursive);
+ this.groupBox1.Controls.Add(this.btnCopyAll);
+ this.groupBox1.Controls.Add(this.label2);
+ this.groupBox1.Controls.Add(this.txtDestDir);
+ this.groupBox1.Controls.Add(this.label1);
+ this.groupBox1.Controls.Add(this.txtSourceDir);
+ this.groupBox1.Location = new System.Drawing.Point(7, 6);
+ this.groupBox1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+ this.groupBox1.Name = "groupBox1";
+ this.groupBox1.Padding = new System.Windows.Forms.Padding(3, 2, 3, 2);
+ this.groupBox1.Size = new System.Drawing.Size(987, 103);
+ this.groupBox1.TabIndex = 1;
+ this.groupBox1.TabStop = false;
+ this.groupBox1.Text = "File IO test";
+ //
+ // lblOutMessage
+ //
+ this.lblOutMessage.AutoSize = true;
+ this.lblOutMessage.Location = new System.Drawing.Point(17, 62);
+ this.lblOutMessage.Name = "lblOutMessage";
+ this.lblOutMessage.Size = new System.Drawing.Size(20, 17);
+ this.lblOutMessage.TabIndex = 7;
+ this.lblOutMessage.Text = "...";
+ //
+ // chkRecursive
+ //
+ this.chkRecursive.AutoSize = true;
+ this.chkRecursive.Location = new System.Drawing.Point(533, 21);
+ this.chkRecursive.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+ this.chkRecursive.Name = "chkRecursive";
+ this.chkRecursive.Size = new System.Drawing.Size(88, 21);
+ this.chkRecursive.TabIndex = 6;
+ this.chkRecursive.Text = "recursive";
+ this.chkRecursive.UseVisualStyleBackColor = true;
+ //
+ // btnCopyAll
+ //
+ this.btnCopyAll.Location = new System.Drawing.Point(695, 18);
+ this.btnCopyAll.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+ this.btnCopyAll.Name = "btnCopyAll";
+ this.btnCopyAll.Size = new System.Drawing.Size(75, 23);
+ this.btnCopyAll.TabIndex = 5;
+ this.btnCopyAll.Text = "Copy All";
+ this.btnCopyAll.UseVisualStyleBackColor = true;
+ this.btnCopyAll.Click += new System.EventHandler(this.BtnCopyAll_Click);
+ //
+ // label2
+ //
+ this.label2.AutoSize = true;
+ this.label2.Location = new System.Drawing.Point(301, 25);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(64, 17);
+ this.label2.TabIndex = 4;
+ this.label2.Text = "Dest DIR";
+ //
+ // txtDestDir
+ //
+ this.txtDestDir.Location = new System.Drawing.Point(371, 21);
+ this.txtDestDir.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+ this.txtDestDir.Name = "txtDestDir";
+ this.txtDestDir.Size = new System.Drawing.Size(156, 22);
+ this.txtDestDir.TabIndex = 3;
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(17, 25);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(80, 17);
+ this.label1.TabIndex = 2;
+ this.label1.Text = "Source DIR";
+ //
+ // txtSourceDir
+ //
+ this.txtSourceDir.Location = new System.Drawing.Point(103, 21);
+ this.txtSourceDir.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+ this.txtSourceDir.Name = "txtSourceDir";
+ this.txtSourceDir.Size = new System.Drawing.Size(156, 22);
+ this.txtSourceDir.TabIndex = 1;
+ //
+ // label3
+ //
+ this.label3.AutoSize = true;
+ this.label3.Location = new System.Drawing.Point(12, 20);
+ this.label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(79, 17);
+ this.label3.TabIndex = 2;
+ this.label3.Text = "HwSw Data";
+ //
+ // lblHwSwData
+ //
+ this.lblHwSwData.AutoSize = true;
+ this.lblHwSwData.Location = new System.Drawing.Point(129, 20);
+ this.lblHwSwData.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ this.lblHwSwData.Name = "lblHwSwData";
+ this.lblHwSwData.Size = new System.Drawing.Size(20, 17);
+ this.lblHwSwData.TabIndex = 3;
+ this.lblHwSwData.Text = "...";
+ //
+ // lblRedis
+ //
+ this.lblRedis.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
- this.lblRedis.AutoEllipsis = true;
- this.lblRedis.Location = new System.Drawing.Point(11, 48);
- this.lblRedis.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
- this.lblRedis.Name = "lblRedis";
- this.lblRedis.Size = new System.Drawing.Size(496, 361);
- this.lblRedis.TabIndex = 5;
- this.lblRedis.Text = "---";
- //
- // openFileDialog1
- //
- this.openFileDialog1.DefaultExt = "pdf";
- this.openFileDialog1.FileName = "openFileDialog1";
- this.openFileDialog1.Multiselect = true;
- this.openFileDialog1.FileOk += new System.ComponentModel.CancelEventHandler(this.openFileDialog1_FileOk);
- //
- // txtMergedName
- //
- this.txtMergedName.Location = new System.Drawing.Point(123, 17);
- this.txtMergedName.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
- this.txtMergedName.Name = "txtMergedName";
- this.txtMergedName.Size = new System.Drawing.Size(203, 22);
- this.txtMergedName.TabIndex = 6;
- this.txtMergedName.Text = "MergedPdfFile.pdf";
- //
- // button1
- //
- this.button1.Location = new System.Drawing.Point(7, 14);
- this.button1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
- this.button1.Name = "button1";
- this.button1.Size = new System.Drawing.Size(100, 28);
- this.button1.TabIndex = 7;
- this.button1.Text = "Select PDF";
- this.button1.UseVisualStyleBackColor = true;
- this.button1.Click += new System.EventHandler(this.button1_Click);
- //
- // lblNumMerged
- //
- this.lblNumMerged.AutoSize = true;
- this.lblNumMerged.Location = new System.Drawing.Point(400, 25);
- this.lblNumMerged.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
- this.lblNumMerged.Name = "lblNumMerged";
- this.lblNumMerged.Size = new System.Drawing.Size(13, 17);
- this.lblNumMerged.TabIndex = 8;
- this.lblNumMerged.Text = "-";
- //
- // button2
- //
- this.button2.Location = new System.Drawing.Point(7, 16);
- this.button2.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
- this.button2.Name = "button2";
- this.button2.Size = new System.Drawing.Size(100, 28);
- this.button2.TabIndex = 9;
- this.button2.Text = "RedisInfo";
- this.button2.UseVisualStyleBackColor = true;
- this.button2.Click += new System.EventHandler(this.button2_Click);
- //
- // tabControl1
- //
- this.tabControl1.Controls.Add(this.tabPage1);
- this.tabControl1.Controls.Add(this.tabPage2);
- this.tabControl1.Controls.Add(this.tabPage3);
- this.tabControl1.Controls.Add(this.tabPage4);
- this.tabControl1.Controls.Add(this.tabPage5);
- this.tabControl1.Dock = System.Windows.Forms.DockStyle.Fill;
- this.tabControl1.Location = new System.Drawing.Point(0, 0);
- this.tabControl1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
- this.tabControl1.Name = "tabControl1";
- this.tabControl1.SelectedIndex = 0;
- this.tabControl1.Size = new System.Drawing.Size(1035, 447);
- this.tabControl1.TabIndex = 10;
- //
- // tabPage1
- //
- this.tabPage1.Controls.Add(this.groupBox1);
- this.tabPage1.Location = new System.Drawing.Point(4, 25);
- this.tabPage1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
- this.tabPage1.Name = "tabPage1";
- this.tabPage1.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4);
- this.tabPage1.Size = new System.Drawing.Size(1027, 418);
- this.tabPage1.TabIndex = 0;
- this.tabPage1.Text = "File IO test";
- this.tabPage1.UseVisualStyleBackColor = true;
- //
- // tabPage2
- //
- this.tabPage2.Controls.Add(this.lblNumMerged);
- this.tabPage2.Controls.Add(this.txtMergedName);
- this.tabPage2.Controls.Add(this.button1);
- this.tabPage2.Location = new System.Drawing.Point(4, 25);
- this.tabPage2.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
- this.tabPage2.Name = "tabPage2";
- this.tabPage2.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4);
- this.tabPage2.Size = new System.Drawing.Size(1027, 418);
- this.tabPage2.TabIndex = 1;
- this.tabPage2.Text = "PDF test";
- this.tabPage2.UseVisualStyleBackColor = true;
- //
- // tabPage3
- //
- this.tabPage3.Controls.Add(this.btnResetCdv);
- this.tabPage3.Controls.Add(this.lblRedCDV);
- this.tabPage3.Controls.Add(this.btnShowCdv);
- this.tabPage3.Controls.Add(this.lblRedis);
- this.tabPage3.Controls.Add(this.button2);
- this.tabPage3.Location = new System.Drawing.Point(4, 25);
- this.tabPage3.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
- this.tabPage3.Name = "tabPage3";
- this.tabPage3.Size = new System.Drawing.Size(1027, 418);
- this.tabPage3.TabIndex = 2;
- this.tabPage3.Text = "Redis test";
- this.tabPage3.UseVisualStyleBackColor = true;
- //
- // btnResetCdv
- //
- this.btnResetCdv.Location = new System.Drawing.Point(660, 16);
- this.btnResetCdv.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
- this.btnResetCdv.Name = "btnResetCdv";
- this.btnResetCdv.Size = new System.Drawing.Size(100, 28);
- this.btnResetCdv.TabIndex = 13;
- this.btnResetCdv.Text = "Reset CDV";
- this.btnResetCdv.UseVisualStyleBackColor = true;
- this.btnResetCdv.Click += new System.EventHandler(this.btnResetCdv_Click);
- //
- // lblRedCDV
- //
- this.lblRedCDV.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ this.lblRedis.AutoEllipsis = true;
+ this.lblRedis.Location = new System.Drawing.Point(11, 48);
+ this.lblRedis.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ this.lblRedis.Name = "lblRedis";
+ this.lblRedis.Size = new System.Drawing.Size(496, 361);
+ this.lblRedis.TabIndex = 5;
+ this.lblRedis.Text = "---";
+ //
+ // openFileDialog1
+ //
+ this.openFileDialog1.DefaultExt = "pdf";
+ this.openFileDialog1.FileName = "openFileDialog1";
+ this.openFileDialog1.Multiselect = true;
+ this.openFileDialog1.FileOk += new System.ComponentModel.CancelEventHandler(this.openFileDialog1_FileOk);
+ //
+ // txtMergedName
+ //
+ this.txtMergedName.Location = new System.Drawing.Point(123, 17);
+ this.txtMergedName.Margin = new System.Windows.Forms.Padding(4);
+ this.txtMergedName.Name = "txtMergedName";
+ this.txtMergedName.Size = new System.Drawing.Size(203, 22);
+ this.txtMergedName.TabIndex = 6;
+ this.txtMergedName.Text = "MergedPdfFile.pdf";
+ //
+ // button1
+ //
+ this.button1.Location = new System.Drawing.Point(7, 14);
+ this.button1.Margin = new System.Windows.Forms.Padding(4);
+ this.button1.Name = "button1";
+ this.button1.Size = new System.Drawing.Size(100, 28);
+ this.button1.TabIndex = 7;
+ this.button1.Text = "Select PDF";
+ this.button1.UseVisualStyleBackColor = true;
+ this.button1.Click += new System.EventHandler(this.button1_Click);
+ //
+ // lblNumMerged
+ //
+ this.lblNumMerged.AutoSize = true;
+ this.lblNumMerged.Location = new System.Drawing.Point(400, 25);
+ this.lblNumMerged.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ this.lblNumMerged.Name = "lblNumMerged";
+ this.lblNumMerged.Size = new System.Drawing.Size(13, 17);
+ this.lblNumMerged.TabIndex = 8;
+ this.lblNumMerged.Text = "-";
+ //
+ // button2
+ //
+ this.button2.Location = new System.Drawing.Point(7, 16);
+ this.button2.Margin = new System.Windows.Forms.Padding(4);
+ this.button2.Name = "button2";
+ this.button2.Size = new System.Drawing.Size(100, 28);
+ this.button2.TabIndex = 9;
+ this.button2.Text = "RedisInfo";
+ this.button2.UseVisualStyleBackColor = true;
+ this.button2.Click += new System.EventHandler(this.button2_Click);
+ //
+ // tabControl1
+ //
+ this.tabControl1.Controls.Add(this.tabPage1);
+ this.tabControl1.Controls.Add(this.tabPage2);
+ this.tabControl1.Controls.Add(this.tabPage3);
+ this.tabControl1.Controls.Add(this.tabPage4);
+ this.tabControl1.Controls.Add(this.tabPage5);
+ this.tabControl1.Controls.Add(this.tabPage6);
+ this.tabControl1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.tabControl1.Location = new System.Drawing.Point(0, 0);
+ this.tabControl1.Margin = new System.Windows.Forms.Padding(4);
+ this.tabControl1.Name = "tabControl1";
+ this.tabControl1.SelectedIndex = 0;
+ this.tabControl1.Size = new System.Drawing.Size(1035, 447);
+ this.tabControl1.TabIndex = 10;
+ //
+ // tabPage1
+ //
+ this.tabPage1.Controls.Add(this.groupBox1);
+ this.tabPage1.Location = new System.Drawing.Point(4, 25);
+ this.tabPage1.Margin = new System.Windows.Forms.Padding(4);
+ this.tabPage1.Name = "tabPage1";
+ this.tabPage1.Padding = new System.Windows.Forms.Padding(4);
+ this.tabPage1.Size = new System.Drawing.Size(1027, 418);
+ this.tabPage1.TabIndex = 0;
+ this.tabPage1.Text = "File IO test";
+ this.tabPage1.UseVisualStyleBackColor = true;
+ //
+ // tabPage2
+ //
+ this.tabPage2.Controls.Add(this.lblNumMerged);
+ this.tabPage2.Controls.Add(this.txtMergedName);
+ this.tabPage2.Controls.Add(this.button1);
+ this.tabPage2.Location = new System.Drawing.Point(4, 25);
+ this.tabPage2.Margin = new System.Windows.Forms.Padding(4);
+ this.tabPage2.Name = "tabPage2";
+ this.tabPage2.Padding = new System.Windows.Forms.Padding(4);
+ this.tabPage2.Size = new System.Drawing.Size(1027, 418);
+ this.tabPage2.TabIndex = 1;
+ this.tabPage2.Text = "PDF test";
+ this.tabPage2.UseVisualStyleBackColor = true;
+ //
+ // tabPage3
+ //
+ this.tabPage3.Controls.Add(this.btnResetCdv);
+ this.tabPage3.Controls.Add(this.lblRedCDV);
+ this.tabPage3.Controls.Add(this.btnShowCdv);
+ this.tabPage3.Controls.Add(this.lblRedis);
+ this.tabPage3.Controls.Add(this.button2);
+ this.tabPage3.Location = new System.Drawing.Point(4, 25);
+ this.tabPage3.Margin = new System.Windows.Forms.Padding(4);
+ this.tabPage3.Name = "tabPage3";
+ this.tabPage3.Size = new System.Drawing.Size(1027, 418);
+ this.tabPage3.TabIndex = 2;
+ this.tabPage3.Text = "Redis test";
+ this.tabPage3.UseVisualStyleBackColor = true;
+ //
+ // btnResetCdv
+ //
+ this.btnResetCdv.Location = new System.Drawing.Point(660, 16);
+ this.btnResetCdv.Margin = new System.Windows.Forms.Padding(4);
+ this.btnResetCdv.Name = "btnResetCdv";
+ this.btnResetCdv.Size = new System.Drawing.Size(100, 28);
+ this.btnResetCdv.TabIndex = 13;
+ this.btnResetCdv.Text = "Reset CDV";
+ this.btnResetCdv.UseVisualStyleBackColor = true;
+ this.btnResetCdv.Click += new System.EventHandler(this.btnResetCdv_Click);
+ //
+ // lblRedCDV
+ //
+ this.lblRedCDV.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
- this.lblRedCDV.AutoEllipsis = true;
- this.lblRedCDV.Location = new System.Drawing.Point(548, 48);
- this.lblRedCDV.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
- this.lblRedCDV.Name = "lblRedCDV";
- this.lblRedCDV.Size = new System.Drawing.Size(465, 361);
- this.lblRedCDV.TabIndex = 10;
- this.lblRedCDV.Text = "---";
- //
- // btnShowCdv
- //
- this.btnShowCdv.Location = new System.Drawing.Point(552, 16);
- this.btnShowCdv.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
- this.btnShowCdv.Name = "btnShowCdv";
- this.btnShowCdv.Size = new System.Drawing.Size(100, 28);
- this.btnShowCdv.TabIndex = 11;
- this.btnShowCdv.Text = "Show Config";
- this.btnShowCdv.UseVisualStyleBackColor = true;
- this.btnShowCdv.Click += new System.EventHandler(this.btnShowCdv_Click);
- //
- // tabPage4
- //
- this.tabPage4.Controls.Add(this.label3);
- this.tabPage4.Controls.Add(this.lblHwSwData);
- this.tabPage4.Location = new System.Drawing.Point(4, 25);
- this.tabPage4.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
- this.tabPage4.Name = "tabPage4";
- this.tabPage4.Size = new System.Drawing.Size(1027, 418);
- this.tabPage4.TabIndex = 3;
- this.tabPage4.Text = "Hw Sw pages";
- this.tabPage4.UseVisualStyleBackColor = true;
- //
- // tabPage5
- //
- this.tabPage5.Controls.Add(this.lblClock);
- this.tabPage5.Controls.Add(this.lblNextSched);
- this.tabPage5.Controls.Add(this.lblStartTimer);
- this.tabPage5.Controls.Add(this.label6);
- this.tabPage5.Controls.Add(this.label5);
- this.tabPage5.Controls.Add(this.txtSec);
- this.tabPage5.Controls.Add(this.label4);
- this.tabPage5.Controls.Add(this.txtMin);
- this.tabPage5.Controls.Add(this.lblOre);
- this.tabPage5.Controls.Add(this.txtOre);
- this.tabPage5.Controls.Add(this.btnStartSched);
- this.tabPage5.Location = new System.Drawing.Point(4, 25);
- this.tabPage5.Name = "tabPage5";
- this.tabPage5.Padding = new System.Windows.Forms.Padding(3);
- this.tabPage5.Size = new System.Drawing.Size(1027, 418);
- this.tabPage5.TabIndex = 4;
- this.tabPage5.Text = "Scheduler";
- this.tabPage5.UseVisualStyleBackColor = true;
- //
- // btnStartSched
- //
- this.btnStartSched.Location = new System.Drawing.Point(21, 23);
- this.btnStartSched.Name = "btnStartSched";
- this.btnStartSched.Size = new System.Drawing.Size(75, 23);
- this.btnStartSched.TabIndex = 0;
- this.btnStartSched.Text = "Start Scheduler";
- this.btnStartSched.UseVisualStyleBackColor = true;
- this.btnStartSched.Click += new System.EventHandler(this.btnStartSched_Click);
- //
- // txtOre
- //
- this.txtOre.Location = new System.Drawing.Point(163, 23);
- this.txtOre.Name = "txtOre";
- this.txtOre.Size = new System.Drawing.Size(39, 22);
- this.txtOre.TabIndex = 1;
- this.txtOre.Text = "0";
- //
- // lblOre
- //
- this.lblOre.AutoSize = true;
- this.lblOre.Location = new System.Drawing.Point(133, 26);
- this.lblOre.Name = "lblOre";
- this.lblOre.Size = new System.Drawing.Size(24, 17);
- this.lblOre.TabIndex = 2;
- this.lblOre.Text = "hh";
- //
- // label4
- //
- this.label4.AutoSize = true;
- this.label4.Location = new System.Drawing.Point(212, 26);
- this.label4.Name = "label4";
- this.label4.Size = new System.Drawing.Size(30, 17);
- this.label4.TabIndex = 4;
- this.label4.Text = "min";
- //
- // txtMin
- //
- this.txtMin.Location = new System.Drawing.Point(242, 23);
- this.txtMin.Name = "txtMin";
- this.txtMin.Size = new System.Drawing.Size(39, 22);
- this.txtMin.TabIndex = 3;
- this.txtMin.Text = "0";
- //
- // label5
- //
- this.label5.AutoSize = true;
- this.label5.Location = new System.Drawing.Point(287, 26);
- this.label5.Name = "label5";
- this.label5.Size = new System.Drawing.Size(30, 17);
- this.label5.TabIndex = 6;
- this.label5.Text = "sec";
- //
- // txtSec
- //
- this.txtSec.Location = new System.Drawing.Point(322, 23);
- this.txtSec.Name = "txtSec";
- this.txtSec.Size = new System.Drawing.Size(45, 22);
- this.txtSec.TabIndex = 5;
- this.txtSec.Text = "10";
- //
- // label6
- //
- this.label6.AutoSize = true;
- this.label6.Location = new System.Drawing.Point(27, 62);
- this.label6.Name = "label6";
- this.label6.Size = new System.Drawing.Size(311, 17);
- this.label6.TabIndex = 7;
- this.label6.Text = "Esecuzione test timer con apertura messagebox";
- //
- // lblStartTimer
- //
- this.lblStartTimer.AutoSize = true;
- this.lblStartTimer.Location = new System.Drawing.Point(389, 26);
- this.lblStartTimer.Name = "lblStartTimer";
- this.lblStartTimer.Size = new System.Drawing.Size(23, 17);
- this.lblStartTimer.TabIndex = 8;
- this.lblStartTimer.Text = "---";
- //
- // lblNextSched
- //
- this.lblNextSched.AutoSize = true;
- this.lblNextSched.Location = new System.Drawing.Point(389, 62);
- this.lblNextSched.Name = "lblNextSched";
- this.lblNextSched.Size = new System.Drawing.Size(23, 17);
- this.lblNextSched.TabIndex = 9;
- this.lblNextSched.Text = "---";
- //
- // lblClock
- //
- this.lblClock.AutoSize = true;
- this.lblClock.Location = new System.Drawing.Point(792, 26);
- this.lblClock.Name = "lblClock";
- this.lblClock.Size = new System.Drawing.Size(20, 17);
- this.lblClock.TabIndex = 10;
- this.lblClock.Text = "...";
- //
- // clockTimer
- //
- this.clockTimer.Interval = 500;
- this.clockTimer.Tick += new System.EventHandler(this.clockTimer_Tick);
- //
- // MainForm
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(1035, 447);
- this.Controls.Add(this.tabControl1);
- this.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
- this.Name = "MainForm";
- this.Text = "WinForm library POC";
- this.groupBox1.ResumeLayout(false);
- this.groupBox1.PerformLayout();
- this.tabControl1.ResumeLayout(false);
- this.tabPage1.ResumeLayout(false);
- this.tabPage1.PerformLayout();
- this.tabPage2.ResumeLayout(false);
- this.tabPage2.PerformLayout();
- this.tabPage3.ResumeLayout(false);
- this.tabPage4.ResumeLayout(false);
- this.tabPage4.PerformLayout();
- this.tabPage5.ResumeLayout(false);
- this.tabPage5.PerformLayout();
- this.ResumeLayout(false);
+ this.lblRedCDV.AutoEllipsis = true;
+ this.lblRedCDV.Location = new System.Drawing.Point(548, 48);
+ this.lblRedCDV.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ this.lblRedCDV.Name = "lblRedCDV";
+ this.lblRedCDV.Size = new System.Drawing.Size(465, 361);
+ this.lblRedCDV.TabIndex = 10;
+ this.lblRedCDV.Text = "---";
+ //
+ // btnShowCdv
+ //
+ this.btnShowCdv.Location = new System.Drawing.Point(552, 16);
+ this.btnShowCdv.Margin = new System.Windows.Forms.Padding(4);
+ this.btnShowCdv.Name = "btnShowCdv";
+ this.btnShowCdv.Size = new System.Drawing.Size(100, 28);
+ this.btnShowCdv.TabIndex = 11;
+ this.btnShowCdv.Text = "Show Config";
+ this.btnShowCdv.UseVisualStyleBackColor = true;
+ this.btnShowCdv.Click += new System.EventHandler(this.btnShowCdv_Click);
+ //
+ // tabPage4
+ //
+ this.tabPage4.Controls.Add(this.label3);
+ this.tabPage4.Controls.Add(this.lblHwSwData);
+ this.tabPage4.Location = new System.Drawing.Point(4, 25);
+ this.tabPage4.Margin = new System.Windows.Forms.Padding(4);
+ this.tabPage4.Name = "tabPage4";
+ this.tabPage4.Size = new System.Drawing.Size(1027, 418);
+ this.tabPage4.TabIndex = 3;
+ this.tabPage4.Text = "Hw Sw pages";
+ this.tabPage4.UseVisualStyleBackColor = true;
+ //
+ // tabPage5
+ //
+ this.tabPage5.Controls.Add(this.lblClock);
+ this.tabPage5.Controls.Add(this.lblNextSched);
+ this.tabPage5.Controls.Add(this.lblStartTimer);
+ this.tabPage5.Controls.Add(this.label6);
+ this.tabPage5.Controls.Add(this.label5);
+ this.tabPage5.Controls.Add(this.txtSec);
+ this.tabPage5.Controls.Add(this.label4);
+ this.tabPage5.Controls.Add(this.txtMin);
+ this.tabPage5.Controls.Add(this.lblOre);
+ this.tabPage5.Controls.Add(this.txtOre);
+ this.tabPage5.Controls.Add(this.btnStartSched);
+ this.tabPage5.Location = new System.Drawing.Point(4, 25);
+ this.tabPage5.Name = "tabPage5";
+ this.tabPage5.Padding = new System.Windows.Forms.Padding(3);
+ this.tabPage5.Size = new System.Drawing.Size(1027, 418);
+ this.tabPage5.TabIndex = 4;
+ this.tabPage5.Text = "Scheduler";
+ this.tabPage5.UseVisualStyleBackColor = true;
+ //
+ // lblClock
+ //
+ this.lblClock.AutoSize = true;
+ this.lblClock.Location = new System.Drawing.Point(792, 26);
+ this.lblClock.Name = "lblClock";
+ this.lblClock.Size = new System.Drawing.Size(20, 17);
+ this.lblClock.TabIndex = 10;
+ this.lblClock.Text = "...";
+ //
+ // lblNextSched
+ //
+ this.lblNextSched.AutoSize = true;
+ this.lblNextSched.Location = new System.Drawing.Point(389, 62);
+ this.lblNextSched.Name = "lblNextSched";
+ this.lblNextSched.Size = new System.Drawing.Size(23, 17);
+ this.lblNextSched.TabIndex = 9;
+ this.lblNextSched.Text = "---";
+ //
+ // lblStartTimer
+ //
+ this.lblStartTimer.AutoSize = true;
+ this.lblStartTimer.Location = new System.Drawing.Point(389, 26);
+ this.lblStartTimer.Name = "lblStartTimer";
+ this.lblStartTimer.Size = new System.Drawing.Size(23, 17);
+ this.lblStartTimer.TabIndex = 8;
+ this.lblStartTimer.Text = "---";
+ //
+ // label6
+ //
+ this.label6.AutoSize = true;
+ this.label6.Location = new System.Drawing.Point(27, 62);
+ this.label6.Name = "label6";
+ this.label6.Size = new System.Drawing.Size(311, 17);
+ this.label6.TabIndex = 7;
+ this.label6.Text = "Esecuzione test timer con apertura messagebox";
+ //
+ // label5
+ //
+ this.label5.AutoSize = true;
+ this.label5.Location = new System.Drawing.Point(287, 26);
+ this.label5.Name = "label5";
+ this.label5.Size = new System.Drawing.Size(30, 17);
+ this.label5.TabIndex = 6;
+ this.label5.Text = "sec";
+ //
+ // txtSec
+ //
+ this.txtSec.Location = new System.Drawing.Point(322, 23);
+ this.txtSec.Name = "txtSec";
+ this.txtSec.Size = new System.Drawing.Size(45, 22);
+ this.txtSec.TabIndex = 5;
+ this.txtSec.Text = "10";
+ //
+ // label4
+ //
+ this.label4.AutoSize = true;
+ this.label4.Location = new System.Drawing.Point(212, 26);
+ this.label4.Name = "label4";
+ this.label4.Size = new System.Drawing.Size(30, 17);
+ this.label4.TabIndex = 4;
+ this.label4.Text = "min";
+ //
+ // txtMin
+ //
+ this.txtMin.Location = new System.Drawing.Point(242, 23);
+ this.txtMin.Name = "txtMin";
+ this.txtMin.Size = new System.Drawing.Size(39, 22);
+ this.txtMin.TabIndex = 3;
+ this.txtMin.Text = "0";
+ //
+ // lblOre
+ //
+ this.lblOre.AutoSize = true;
+ this.lblOre.Location = new System.Drawing.Point(133, 26);
+ this.lblOre.Name = "lblOre";
+ this.lblOre.Size = new System.Drawing.Size(24, 17);
+ this.lblOre.TabIndex = 2;
+ this.lblOre.Text = "hh";
+ //
+ // txtOre
+ //
+ this.txtOre.Location = new System.Drawing.Point(163, 23);
+ this.txtOre.Name = "txtOre";
+ this.txtOre.Size = new System.Drawing.Size(39, 22);
+ this.txtOre.TabIndex = 1;
+ this.txtOre.Text = "0";
+ //
+ // btnStartSched
+ //
+ this.btnStartSched.Location = new System.Drawing.Point(21, 23);
+ this.btnStartSched.Name = "btnStartSched";
+ this.btnStartSched.Size = new System.Drawing.Size(75, 23);
+ this.btnStartSched.TabIndex = 0;
+ this.btnStartSched.Text = "Start Scheduler";
+ this.btnStartSched.UseVisualStyleBackColor = true;
+ this.btnStartSched.Click += new System.EventHandler(this.btnStartSched_Click);
+ //
+ // clockTimer
+ //
+ this.clockTimer.Interval = 500;
+ this.clockTimer.Tick += new System.EventHandler(this.clockTimer_Tick);
+ //
+ // tabPage6
+ //
+ this.tabPage6.Controls.Add(this.grpPublisher);
+ this.tabPage6.Controls.Add(this.groupBox2);
+ this.tabPage6.Location = new System.Drawing.Point(4, 25);
+ this.tabPage6.Name = "tabPage6";
+ this.tabPage6.Size = new System.Drawing.Size(1027, 418);
+ this.tabPage6.TabIndex = 5;
+ this.tabPage6.Text = "MessageQueue";
+ this.tabPage6.UseVisualStyleBackColor = true;
+ //
+ // groupBox2
+ //
+ this.groupBox2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.groupBox2.Controls.Add(this.lblQueueRead);
+ this.groupBox2.Location = new System.Drawing.Point(214, 3);
+ this.groupBox2.Name = "groupBox2";
+ this.groupBox2.Size = new System.Drawing.Size(805, 407);
+ this.groupBox2.TabIndex = 0;
+ this.groupBox2.TabStop = false;
+ this.groupBox2.Text = "Subscriber";
+ //
+ // grpPublisher
+ //
+ this.grpPublisher.Controls.Add(this.btnSend);
+ this.grpPublisher.Controls.Add(this.label7);
+ this.grpPublisher.Controls.Add(this.txtQueueMessage);
+ this.grpPublisher.Location = new System.Drawing.Point(8, 3);
+ this.grpPublisher.Name = "grpPublisher";
+ this.grpPublisher.Size = new System.Drawing.Size(200, 193);
+ this.grpPublisher.TabIndex = 1;
+ this.grpPublisher.TabStop = false;
+ this.grpPublisher.Text = "Publisher";
+ //
+ // label7
+ //
+ this.label7.AutoSize = true;
+ this.label7.Location = new System.Drawing.Point(6, 18);
+ this.label7.Name = "label7";
+ this.label7.Size = new System.Drawing.Size(65, 17);
+ this.label7.TabIndex = 0;
+ this.label7.Text = "message";
+ //
+ // lblQueueRead
+ //
+ this.lblQueueRead.AutoSize = true;
+ this.lblQueueRead.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.lblQueueRead.Location = new System.Drawing.Point(3, 18);
+ this.lblQueueRead.Name = "lblQueueRead";
+ this.lblQueueRead.Size = new System.Drawing.Size(20, 17);
+ this.lblQueueRead.TabIndex = 1;
+ this.lblQueueRead.Text = "...";
+ //
+ // txtQueueMessage
+ //
+ this.txtQueueMessage.Location = new System.Drawing.Point(9, 38);
+ this.txtQueueMessage.Name = "txtQueueMessage";
+ this.txtQueueMessage.Size = new System.Drawing.Size(185, 22);
+ this.txtQueueMessage.TabIndex = 2;
+ //
+ // btnSend
+ //
+ this.btnSend.Location = new System.Drawing.Point(9, 66);
+ this.btnSend.Name = "btnSend";
+ this.btnSend.Size = new System.Drawing.Size(185, 23);
+ this.btnSend.TabIndex = 3;
+ this.btnSend.Text = "Send";
+ this.btnSend.UseVisualStyleBackColor = true;
+ this.btnSend.Click += new System.EventHandler(this.btnSend_Click);
+ //
+ // MainForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(1035, 447);
+ this.Controls.Add(this.tabControl1);
+ this.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+ this.Name = "MainForm";
+ this.Text = "WinForm library POC";
+ this.groupBox1.ResumeLayout(false);
+ this.groupBox1.PerformLayout();
+ this.tabControl1.ResumeLayout(false);
+ this.tabPage1.ResumeLayout(false);
+ this.tabPage1.PerformLayout();
+ this.tabPage2.ResumeLayout(false);
+ this.tabPage2.PerformLayout();
+ this.tabPage3.ResumeLayout(false);
+ this.tabPage4.ResumeLayout(false);
+ this.tabPage4.PerformLayout();
+ this.tabPage5.ResumeLayout(false);
+ this.tabPage5.PerformLayout();
+ this.tabPage6.ResumeLayout(false);
+ this.groupBox2.ResumeLayout(false);
+ this.groupBox2.PerformLayout();
+ this.grpPublisher.ResumeLayout(false);
+ this.grpPublisher.PerformLayout();
+ this.ResumeLayout(false);
}
@@ -530,6 +617,13 @@
private System.Windows.Forms.Label lblStartTimer;
private System.Windows.Forms.Label lblClock;
private System.Windows.Forms.Timer clockTimer;
+ private System.Windows.Forms.TabPage tabPage6;
+ private System.Windows.Forms.GroupBox grpPublisher;
+ private System.Windows.Forms.GroupBox groupBox2;
+ private System.Windows.Forms.Button btnSend;
+ private System.Windows.Forms.Label label7;
+ private System.Windows.Forms.TextBox txtQueueMessage;
+ private System.Windows.Forms.Label lblQueueRead;
}
}
diff --git a/TestBench/MainFOrm.cs b/TestBench/MainFOrm.cs
index 68b0b05..d2f659d 100644
--- a/TestBench/MainFOrm.cs
+++ b/TestBench/MainFOrm.cs
@@ -9,141 +9,167 @@ using System.Windows.Forms;
namespace TestBench
{
- public partial class MainForm : Form
- {
- public MainForm()
+ public partial class MainForm : Form
{
- InitializeComponent();
- myInitComponent();
+ public MainForm()
+ {
+ InitializeComponent();
+ myInitComponent();
+ }
+
+ private void myInitComponent()
+ {
+ // imposto folders
+ txtSourceDir.Text = @"C:\TMP\";
+ txtDestDir.Text = @"L:\TMP\";
+
+ lblHwSwData.Text = SteamWare.HwSwInfo.man(Assembly.GetExecutingAssembly()).librariesVers;
+
+ // reset conf CDV
+ memLayer.ML.resetAppConf();
+ }
+
+ private void BtnCopyAll_Click(object sender, EventArgs e)
+ {
+ // effettuo copia con steamware libs...
+ string sourceDir = txtSourceDir.Text.Trim();
+ string destDir = txtDestDir.Text.Trim();
+ if (sourceDir != "" && destDir != "")
+ {
+ lblOutMessage.Text = "inizio copia...";
+ lblOutMessage.Refresh();
+ fileMover.DirectoryCopy(sourceDir, destDir, chkRecursive.Checked);
+ lblOutMessage.Text = "Copia completata!";
+ }
+ }
+
+ private void button1_Click(object sender, EventArgs e)
+ {
+ // apro selettore file...
+ openFileDialog1.ShowDialog();
+ }
+
+ private void openFileDialog1_FileOk(object sender, System.ComponentModel.CancelEventArgs e)
+ {
+ // prendo i files selezionati --> merge in pdf e indico quanti...
+ List elencoFiles = new List();
+ foreach (var item in openFileDialog1.FileNames)
+ {
+ elencoFiles.Add(item);
+ }
+ int numFiles = 0;
+ string outPath = $"{Directory.GetCurrentDirectory()}\\{txtMergedName.Text}";
+ try
+ {
+ numFiles = pdfUtils.mergePdfFiles(txtMergedName.Text, elencoFiles);
+ }
+ catch
+ { }
+ lblNumMerged.Text = $"Effettuato merge di {numFiles} files!";
+ }
+
+ private void button2_Click(object sender, EventArgs e)
+ {
+ string answ = "";
+ try
+ {
+ answ = memLayer.ML.getRedisInfoData();
+ }
+ catch
+ { }
+
+ lblRedis.Text = answ;
+ }
+
+ private void btnResetCdv_Click(object sender, EventArgs e)
+ {
+ memLayer.ML.resetAppConf();
+ }
+
+ private void btnShowCdv_Click(object sender, EventArgs e)
+ {
+ StringBuilder sb = new StringBuilder();
+ sb.AppendLine("----- REDIS CDV data -----");
+ foreach (var item in memLayer.ML.AppConf)
+ {
+ sb.AppendLine($"{item.Key}: {item.Value}");
+ }
+ lblRedCDV.Text = sb.ToString();
+ }
+
+ private void btnStartSched_Click(object sender, EventArgs e)
+ {
+ // avvia uno scheduler che apre una messagebox secondo programmazione impostata...
+
+ // For Interval in Minutes
+ // This Scheduler will start at 22:00 and call after every 30 Minutes
+ // IntervalInSeconds(start_hour, start_minute, minutes)
+
+ // calcolo istante dal PROSSIMO minuto
+ DateTime avvio = DateTime.Now;
+ lblStartTimer.Text = $"Avvio timer: {avvio:ddd yyyy-MM-dd HH:mm:ss}";
+ avvio = avvio.AddMinutes(1).AddSeconds(-avvio.Second);
+ lblNextSched.Text = $"Scadenza timer: {avvio:ddd yyyy-MM-dd HH:mm:ss}";
+
+ clockTimer.Start();
+
+ // calcolo periodo in minuti guardando quanto selezionato
+ int ore = 0;
+ int min = 0;
+ int sec = 0;
+ int.TryParse(txtOre.Text, out ore);
+ int.TryParse(txtMin.Text, out min);
+ int.TryParse(txtSec.Text, out sec);
+ // calcolo
+ double intSecondi = ore * 60 * 60 + min * 60 + sec;
+
+ TaskSched.IntervalInSeconds(avvio.Hour, avvio.Minute, intSecondi,
+ () =>
+ {
+ DateTime adesso = DateTime.Now;
+
+ // Initializes the variables to pass to the MessageBox.Show method.
+ string message = $"E' scattato il timer alle ore {DateTime.Now}.";
+ string caption = "Timer Elapsed";
+ MessageBoxButtons buttons = MessageBoxButtons.OK;
+ DialogResult result;
+
+ //lblNextSched.Text = $"Scadenza timer: {adesso.AddSeconds(intSecondi):ddd yyyy-MM-dd HH:mm:ss}";
+ // Displays the MessageBox.
+ result = MessageBox.Show(message, caption, buttons);
+ });
+ }
+
+ private void clockTimer_Tick(object sender, EventArgs e)
+ {
+ DateTime adesso = DateTime.Now;
+ lblClock.Text = $"Clock: {adesso:ddd yyyy-MM-dd HH:mm:ss}";
+
+ updateQueue();
+ }
+
+ ///
+ /// Aggiorno da lettura coda...
+ ///
+ private void updateQueue()
+ {
+ // leggo da coda
+ SteamWare.IO.Redis myRedis = new SteamWare.IO.Redis();
+ string myKey = "testQueue";
+ if (myRedis.ListLen(myKey) > 0)
+ {
+ // aggiorno coda
+ lblQueueRead.Text = $"{myRedis.ListPop(myKey)}{Environment.NewLine}{lblQueueRead.Text}";
+ }
+ }
+
+ private void btnSend_Click(object sender, EventArgs e)
+ {
+ // pubblico su coda...
+ SteamWare.IO.Redis myRedis = new SteamWare.IO.Redis();
+ string myKey = "testQueue";
+ myRedis.ListPush(myKey, $"{DateTime.Now} | {txtQueueMessage.Text.Trim()}");
+ txtQueueMessage.Text = "";
+ }
}
-
- private void myInitComponent()
- {
- // imposto folders
- txtSourceDir.Text = @"C:\TMP\";
- txtDestDir.Text = @"L:\TMP\";
-
- lblHwSwData.Text = SteamWare.HwSwInfo.man(Assembly.GetExecutingAssembly()).librariesVers;
-
- // reset conf CDV
- memLayer.ML.resetAppConf();
- }
-
- private void BtnCopyAll_Click(object sender, EventArgs e)
- {
- // effettuo copia con steamware libs...
- string sourceDir = txtSourceDir.Text.Trim();
- string destDir = txtDestDir.Text.Trim();
- if (sourceDir != "" && destDir != "")
- {
- lblOutMessage.Text = "inizio copia...";
- lblOutMessage.Refresh();
- fileMover.DirectoryCopy(sourceDir, destDir, chkRecursive.Checked);
- lblOutMessage.Text = "Copia completata!";
- }
- }
-
- private void button1_Click(object sender, EventArgs e)
- {
- // apro selettore file...
- openFileDialog1.ShowDialog();
- }
-
- private void openFileDialog1_FileOk(object sender, System.ComponentModel.CancelEventArgs e)
- {
- // prendo i files selezionati --> merge in pdf e indico quanti...
- List elencoFiles = new List();
- foreach (var item in openFileDialog1.FileNames)
- {
- elencoFiles.Add(item);
- }
- int numFiles = 0;
- string outPath = $"{Directory.GetCurrentDirectory()}\\{txtMergedName.Text}";
- try
- {
- numFiles = pdfUtils.mergePdfFiles(txtMergedName.Text, elencoFiles);
- }
- catch
- { }
- lblNumMerged.Text = $"Effettuato merge di {numFiles} files!";
- }
-
- private void button2_Click(object sender, EventArgs e)
- {
- string answ = "";
- try
- {
- answ = memLayer.ML.getRedisInfoData();
- }
- catch
- { }
-
- lblRedis.Text = answ;
- }
-
- private void btnResetCdv_Click(object sender, EventArgs e)
- {
- memLayer.ML.resetAppConf();
- }
-
- private void btnShowCdv_Click(object sender, EventArgs e)
- {
- StringBuilder sb = new StringBuilder();
- sb.AppendLine("----- REDIS CDV data -----");
- foreach (var item in memLayer.ML.AppConf)
- {
- sb.AppendLine($"{item.Key}: {item.Value}");
- }
- lblRedCDV.Text = sb.ToString();
- }
-
- private void btnStartSched_Click(object sender, EventArgs e)
- {
- // avvia uno scheduler che apre una messagebox secondo programmazione impostata...
-
- // For Interval in Minutes
- // This Scheduler will start at 22:00 and call after every 30 Minutes
- // IntervalInSeconds(start_hour, start_minute, minutes)
-
- // calcolo istante dal PROSSIMO minuto
- DateTime avvio = DateTime.Now;
- lblStartTimer.Text = $"Avvio timer: {avvio:ddd yyyy-MM-dd HH:mm:ss}";
- avvio = avvio.AddMinutes(1).AddSeconds(-avvio.Second);
- lblNextSched.Text = $"Scadenza timer: {avvio:ddd yyyy-MM-dd HH:mm:ss}";
-
- clockTimer.Start();
-
- // calcolo periodo in minuti guardando quanto selezionato
- int ore = 0;
- int min = 0;
- int sec = 0;
- int.TryParse(txtOre.Text, out ore);
- int.TryParse(txtMin.Text, out min);
- int.TryParse(txtSec.Text, out sec);
- // calcolo
- double intSecondi = ore * 60 * 60 + min * 60 + sec;
-
- TaskSched.IntervalInSeconds(avvio.Hour, avvio.Minute, intSecondi,
- () =>
- {
- DateTime adesso = DateTime.Now;
-
- // Initializes the variables to pass to the MessageBox.Show method.
- string message = $"E' scattato il timer alle ore {DateTime.Now}.";
- string caption = "Timer Elapsed";
- MessageBoxButtons buttons = MessageBoxButtons.OK;
- DialogResult result;
-
- lblNextSched.Text = $"Scadenza timer: {adesso.AddSeconds(intSecondi):ddd yyyy-MM-dd HH:mm:ss}";
- // Displays the MessageBox.
- result = MessageBox.Show(message, caption, buttons);
- });
- }
-
- private void clockTimer_Tick(object sender, EventArgs e)
- {
- DateTime adesso = DateTime.Now;
- lblClock.Text = $"Clock: {adesso:ddd yyyy-MM-dd HH:mm:ss}";
- }
- }
-}
+}
\ No newline at end of file