diff --git a/SteamWare.IO/Core/Compression/Snappy/lib/win/snappy32.dll b/SteamWare.IO/Core/Compression/Snappy/lib/win/snappy32.dll new file mode 100644 index 0000000..afc82ca Binary files /dev/null and b/SteamWare.IO/Core/Compression/Snappy/lib/win/snappy32.dll differ diff --git a/SteamWare.IO/Core/Compression/Snappy/lib/win/snappy64.dll b/SteamWare.IO/Core/Compression/Snappy/lib/win/snappy64.dll new file mode 100644 index 0000000..36cd5fe Binary files /dev/null and b/SteamWare.IO/Core/Compression/Snappy/lib/win/snappy64.dll differ diff --git a/SteamWare.IO/Core/Compression/Zstandard/lib/win/libzstd.dll b/SteamWare.IO/Core/Compression/Zstandard/lib/win/libzstd.dll new file mode 100644 index 0000000..e669123 Binary files /dev/null and b/SteamWare.IO/Core/Compression/Zstandard/lib/win/libzstd.dll differ diff --git a/SteamWare.IO/SteamWare.IO.csproj b/SteamWare.IO/SteamWare.IO.csproj index 7f58ed6..bc0a496 100644 --- a/SteamWare.IO/SteamWare.IO.csproj +++ b/SteamWare.IO/SteamWare.IO.csproj @@ -46,14 +46,14 @@ ..\packages\Microsoft.Bcl.AsyncInterfaces.1.1.1\lib\net461\Microsoft.Bcl.AsyncInterfaces.dll - - ..\packages\MongoDB.Bson.2.11.1\lib\net452\MongoDB.Bson.dll + + ..\packages\MongoDB.Bson.2.11.2\lib\net452\MongoDB.Bson.dll - - ..\packages\MongoDB.Driver.2.11.1\lib\net452\MongoDB.Driver.dll + + ..\packages\MongoDB.Driver.2.11.2\lib\net452\MongoDB.Driver.dll - - ..\packages\MongoDB.Driver.Core.2.11.1\lib\net452\MongoDB.Driver.Core.dll + + ..\packages\MongoDB.Driver.Core.2.11.2\lib\net452\MongoDB.Driver.Core.dll ..\packages\MongoDB.Libmongocrypt.1.0.0\lib\net452\MongoDB.Libmongocrypt.dll @@ -76,8 +76,8 @@ ..\packages\StackExchange.Redis.2.1.58\lib\net461\StackExchange.Redis.dll - - ..\packages\SteamWare.Logger.4.1.2008.736\lib\net462\SteamWare.Logger.dll + + ..\packages\SteamWare.Logger.4.9.2009.739\lib\net462\SteamWare.Logger.dll @@ -222,7 +222,7 @@ Questo progetto fa riferimento a uno o più pacchetti NuGet che non sono presenti in questo computer. Usare lo strumento di ripristino dei pacchetti NuGet per scaricarli. Per altre informazioni, vedere http://go.microsoft.com/fwlink/?LinkID=322105. Il file mancante è {0}. - + - + \ No newline at end of file diff --git a/SteamWare.IO/app.config b/SteamWare.IO/app.config index b2b295d..e63b0f6 100644 --- a/SteamWare.IO/app.config +++ b/SteamWare.IO/app.config @@ -1,61 +1,61 @@ - + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - + diff --git a/SteamWare.IO/packages.config b/SteamWare.IO/packages.config index dda52ed..d5b0b49 100644 --- a/SteamWare.IO/packages.config +++ b/SteamWare.IO/packages.config @@ -3,9 +3,9 @@ - - - + + + @@ -14,7 +14,7 @@ - + diff --git a/SteamWareLib/Core/Compression/Snappy/lib/win/snappy32.dll b/SteamWareLib/Core/Compression/Snappy/lib/win/snappy32.dll new file mode 100644 index 0000000..afc82ca Binary files /dev/null and b/SteamWareLib/Core/Compression/Snappy/lib/win/snappy32.dll differ diff --git a/SteamWareLib/Core/Compression/Snappy/lib/win/snappy64.dll b/SteamWareLib/Core/Compression/Snappy/lib/win/snappy64.dll new file mode 100644 index 0000000..36cd5fe Binary files /dev/null and b/SteamWareLib/Core/Compression/Snappy/lib/win/snappy64.dll differ diff --git a/SteamWareLib/Core/Compression/Zstandard/lib/win/libzstd.dll b/SteamWareLib/Core/Compression/Zstandard/lib/win/libzstd.dll new file mode 100644 index 0000000..e669123 Binary files /dev/null and b/SteamWareLib/Core/Compression/Zstandard/lib/win/libzstd.dll differ diff --git a/SteamWareLib/SteamWare.csproj b/SteamWareLib/SteamWare.csproj index 157ba86..c500645 100644 --- a/SteamWareLib/SteamWare.csproj +++ b/SteamWareLib/SteamWare.csproj @@ -87,14 +87,14 @@ - - ..\packages\MongoDB.Bson.2.11.1\lib\net452\MongoDB.Bson.dll + + ..\packages\MongoDB.Bson.2.11.2\lib\net452\MongoDB.Bson.dll - - ..\packages\MongoDB.Driver.2.11.1\lib\net452\MongoDB.Driver.dll + + ..\packages\MongoDB.Driver.2.11.2\lib\net452\MongoDB.Driver.dll - - ..\packages\MongoDB.Driver.Core.2.11.1\lib\net452\MongoDB.Driver.Core.dll + + ..\packages\MongoDB.Driver.Core.2.11.2\lib\net452\MongoDB.Driver.Core.dll ..\packages\MongoDB.Libmongocrypt.1.0.0\lib\net452\MongoDB.Libmongocrypt.dll @@ -314,6 +314,9 @@ Designer + + + .editorconfig @@ -452,8 +455,8 @@ - + - + \ No newline at end of file diff --git a/SteamWareLib/fileMover.cs b/SteamWareLib/fileMover.cs index 217f607..a780a9e 100644 --- a/SteamWareLib/fileMover.cs +++ b/SteamWareLib/fileMover.cs @@ -850,7 +850,14 @@ namespace SteamWare /// path fisico tradotto public static string getFilePath(string pathRel) { - return System.Web.HttpContext.Current.Server.MapPath(pathRel); + string answ = ""; + try + { + answ = System.Web.HttpContext.Current.Server.MapPath(pathRel); + } + catch + { } + return answ; } /// /// esegue un comando in shell diff --git a/SteamWareLib/packages.config b/SteamWareLib/packages.config index 9d58927..1354a5c 100644 --- a/SteamWareLib/packages.config +++ b/SteamWareLib/packages.config @@ -5,10 +5,10 @@ - - - - + + + + diff --git a/TestBench/MainFOrm.Designer.cs b/TestBench/MainFOrm.Designer.cs index 3c39b06..a74e5e9 100644 --- a/TestBench/MainFOrm.Designer.cs +++ b/TestBench/MainFOrm.Designer.cs @@ -28,553 +28,617 @@ /// 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.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) + 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.tabPage6 = new System.Windows.Forms.TabPage(); + this.grpPublisher = new System.Windows.Forms.GroupBox(); + this.btnSend = new System.Windows.Forms.Button(); + this.label7 = new System.Windows.Forms.Label(); + this.txtQueueMessage = new System.Windows.Forms.TextBox(); + this.groupBox2 = new System.Windows.Forms.GroupBox(); + this.lblQueueRead = new System.Windows.Forms.Label(); + this.clockTimer = new System.Windows.Forms.Timer(this.components); + this.groupBox3 = new System.Windows.Forms.GroupBox(); + this.label8 = new System.Windows.Forms.Label(); + this.txtChannelSend = new System.Windows.Forms.TextBox(); + this.groupBox4 = new System.Windows.Forms.GroupBox(); + this.lblChannelReceive = new System.Windows.Forms.Label(); + 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.grpPublisher.SuspendLayout(); + this.groupBox2.SuspendLayout(); + this.groupBox3.SuspendLayout(); + this.groupBox4.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); - 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) + 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); - 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) + 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); + // + // tabPage6 + // + this.tabPage6.Controls.Add(this.groupBox4); + this.tabPage6.Controls.Add(this.groupBox3); + 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; + // + // 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(205, 103); + this.grpPublisher.TabIndex = 1; + this.grpPublisher.TabStop = false; + this.grpPublisher.Text = "Publisher (to LIST)"; + // + // 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); + // + // 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"; + // + // 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; + // + // 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); + this.groupBox2.Controls.Add(this.lblQueueRead); + this.groupBox2.Location = new System.Drawing.Point(8, 112); + this.groupBox2.Name = "groupBox2"; + this.groupBox2.Size = new System.Drawing.Size(205, 303); + this.groupBox2.TabIndex = 0; + this.groupBox2.TabStop = false; + this.groupBox2.Text = "Subscriber (from LIST; timer)"; + // + // 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 = "..."; + // + // clockTimer + // + this.clockTimer.Interval = 500; + this.clockTimer.Tick += new System.EventHandler(this.clockTimer_Tick); + // + // groupBox3 + // + this.groupBox3.Controls.Add(this.label8); + this.groupBox3.Controls.Add(this.txtChannelSend); + this.groupBox3.Location = new System.Drawing.Point(309, 3); + this.groupBox3.Name = "groupBox3"; + this.groupBox3.Size = new System.Drawing.Size(207, 103); + this.groupBox3.TabIndex = 4; + this.groupBox3.TabStop = false; + this.groupBox3.Text = "Publisher (to channel)"; + // + // label8 + // + this.label8.AutoSize = true; + this.label8.Location = new System.Drawing.Point(6, 18); + this.label8.Name = "label8"; + this.label8.Size = new System.Drawing.Size(152, 17); + this.label8.TabIndex = 0; + this.label8.Text = "message (return send)"; + // + // txtChannelSend + // + this.txtChannelSend.Location = new System.Drawing.Point(9, 38); + this.txtChannelSend.Multiline = true; + this.txtChannelSend.Name = "txtChannelSend"; + this.txtChannelSend.Size = new System.Drawing.Size(185, 59); + this.txtChannelSend.TabIndex = 2; + this.txtChannelSend.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtChannelSend_KeyPress); + // + // groupBox4 + // + this.groupBox4.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Right))); + this.groupBox4.Controls.Add(this.lblChannelReceive); + this.groupBox4.Location = new System.Drawing.Point(309, 115); + this.groupBox4.Name = "groupBox4"; + this.groupBox4.Size = new System.Drawing.Size(207, 303); + this.groupBox4.TabIndex = 2; + this.groupBox4.TabStop = false; + this.groupBox4.Text = "Subscriber (from channel)"; + // + // lblChannelReceive + // + this.lblChannelReceive.AutoSize = true; + this.lblChannelReceive.Dock = System.Windows.Forms.DockStyle.Fill; + this.lblChannelReceive.Location = new System.Drawing.Point(3, 18); + this.lblChannelReceive.Name = "lblChannelReceive"; + this.lblChannelReceive.Size = new System.Drawing.Size(20, 17); + this.lblChannelReceive.TabIndex = 1; + this.lblChannelReceive.Text = "..."; + // + // 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.grpPublisher.ResumeLayout(false); + this.grpPublisher.PerformLayout(); + this.groupBox2.ResumeLayout(false); + this.groupBox2.PerformLayout(); + this.groupBox3.ResumeLayout(false); + this.groupBox3.PerformLayout(); + this.groupBox4.ResumeLayout(false); + this.groupBox4.PerformLayout(); + this.ResumeLayout(false); } @@ -624,6 +688,12 @@ private System.Windows.Forms.Label label7; private System.Windows.Forms.TextBox txtQueueMessage; private System.Windows.Forms.Label lblQueueRead; + private System.Windows.Forms.GroupBox groupBox4; + private System.Windows.Forms.Label lblChannelReceive; + private System.Windows.Forms.GroupBox groupBox3; + private System.Windows.Forms.Button button3; + private System.Windows.Forms.Label label8; + private System.Windows.Forms.TextBox txtChannelSend; } } diff --git a/TestBench/MainFOrm.cs b/TestBench/MainFOrm.cs index d2f659d..6c38a33 100644 --- a/TestBench/MainFOrm.cs +++ b/TestBench/MainFOrm.cs @@ -5,171 +5,204 @@ using System.Collections.Generic; using System.IO; using System.Reflection; using System.Text; +using System.Threading.Tasks; using System.Windows.Forms; namespace TestBench { - public partial class MainForm : Form + public partial class MainForm : Form + { + /// + /// Oggetto REDIS + /// + private SteamWare.IO.Redis myRedis; + + private StackExchange.Redis.ISubscriber subscriber; + + public MainForm() { - 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 = ""; - } + 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(); + + // redis setup + myRedis = new SteamWare.IO.Redis(); + subscriber = myRedis.RedPubSub; + // fix redis channel subscription + subscriber.Subscribe("TestChannel").OnMessage(async channelMessage => + { + await Task.Delay(10); + //Console.WriteLine((string)channelMessage.Message); + lblChannelReceive.Text = (string)channelMessage.Message; + }); + } + + private void txtChannelSend_KeyPress(object sender, KeyPressEventArgs e) + { + // cerco Enter + if (e.KeyChar == (char)13) + { + // invio + subscriber.Publish("TestChannel", $"{DateTime.Now} | {txtChannelSend.Text}"); + // reset + txtChannelSend.Text = ""; + } + MessageBox.Show("ENTER has been pressed!"); + //// ESC + //else if (e.KeyChar == (char)27) + // this.Close(); + } + + 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 + 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) + { + // scrivo su coda + string myKey = "testQueue"; + myRedis.ListPush(myKey, $"{DateTime.Now} | {txtQueueMessage.Text.Trim()}"); + txtQueueMessage.Text = ""; + } + } } \ No newline at end of file diff --git a/TestBench/TestBench.csproj b/TestBench/TestBench.csproj index 3eafcb0..79af104 100644 --- a/TestBench/TestBench.csproj +++ b/TestBench/TestBench.csproj @@ -33,8 +33,47 @@ 4 + + ..\packages\Microsoft.Bcl.AsyncInterfaces.1.1.1\lib\net461\Microsoft.Bcl.AsyncInterfaces.dll + + + ..\packages\Pipelines.Sockets.Unofficial.2.1.16\lib\net472\Pipelines.Sockets.Unofficial.dll + + + ..\packages\StackExchange.Redis.2.1.58\lib\net472\StackExchange.Redis.dll + + + ..\packages\System.Buffers.4.5.1\lib\net461\System.Buffers.dll + + + ..\packages\System.Diagnostics.PerformanceCounter.4.7.0\lib\net461\System.Diagnostics.PerformanceCounter.dll + + + ..\packages\System.IO.Compression.4.3.0\lib\net46\System.IO.Compression.dll + True + True + + + ..\packages\System.IO.Pipelines.4.7.2\lib\net461\System.IO.Pipelines.dll + + + ..\packages\System.Memory.4.5.4\lib\net461\System.Memory.dll + + + + ..\packages\System.Numerics.Vectors.4.5.0\lib\net46\System.Numerics.Vectors.dll + + + ..\packages\System.Runtime.CompilerServices.Unsafe.4.7.1\lib\net461\System.Runtime.CompilerServices.Unsafe.dll + + + ..\packages\System.Threading.Channels.4.7.1\lib\net461\System.Threading.Channels.dll + + + ..\packages\System.Threading.Tasks.Extensions.4.5.4\lib\net461\System.Threading.Tasks.Extensions.dll + @@ -69,6 +108,7 @@ Always + SettingsSingleFileGenerator Settings.Designer.cs diff --git a/TestBench/packages.config b/TestBench/packages.config new file mode 100644 index 0000000..de04b8f --- /dev/null +++ b/TestBench/packages.config @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + \ No newline at end of file