From aeaaa0f4fa382129dbefd467116f580bf6f64674 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Fri, 19 May 2017 17:49:45 +0200 Subject: [PATCH] fix grafico x visualizzazione statistiche comunicazione --- MTC_Adapter/MTC_Adapter/AdapterGeneric.cs | 2 + MTC_Adapter/MTC_Adapter/MainForm.Designer.cs | 241 ++++++++++--------- MTC_Adapter/MTC_Adapter/MainForm.cs | 12 +- MTC_Adapter/MTC_Adapter/MainForm.resx | 18 -- 4 files changed, 137 insertions(+), 136 deletions(-) diff --git a/MTC_Adapter/MTC_Adapter/AdapterGeneric.cs b/MTC_Adapter/MTC_Adapter/AdapterGeneric.cs index 675f7bf..f35acab 100644 --- a/MTC_Adapter/MTC_Adapter/AdapterGeneric.cs +++ b/MTC_Adapter/MTC_Adapter/AdapterGeneric.cs @@ -2042,6 +2042,8 @@ namespace MTC_Adapter // riporto conteggio medio al secondo... lg.Info("Chiamate GLOBALI: {0}, periodo: {1:N2} minuti.cent, tempo medio {2:N2} msec | impegno canale {3:P3}", globNumCall, DateTime.Now.Subtract(dtAvvioAdp).TotalMinutes, globAvgMsec.TotalMilliseconds / globNumCall, globAvgMsec.TotalSeconds / DateTime.Now.Subtract(dtAvvioAdp).TotalSeconds); lg.Info("{0}--------------- STOP TIMING DATA ---------------{0}", Environment.NewLine); + // mostro in form statistiche globali! + parentForm.updateComStats(string.Format("Periodo: {0:N2}min | {1} x {2:N2}ms | canale {3:P3}", DateTime.Now.Subtract(dtAvvioAdp).TotalMinutes, globNumCall, globAvgMsec.TotalMilliseconds / globNumCall, globAvgMsec.TotalSeconds / DateTime.Now.Subtract(dtAvvioAdp).TotalSeconds)); } } diff --git a/MTC_Adapter/MTC_Adapter/MainForm.Designer.cs b/MTC_Adapter/MTC_Adapter/MainForm.Designer.cs index 6a03d5c..6afb379 100644 --- a/MTC_Adapter/MTC_Adapter/MainForm.Designer.cs +++ b/MTC_Adapter/MTC_Adapter/MainForm.Designer.cs @@ -218,6 +218,7 @@ this.label20 = new System.Windows.Forms.Label(); this.notifyIcon1 = new System.Windows.Forms.NotifyIcon(this.components); this.trayMenu = new System.Windows.Forms.ContextMenuStrip(this.components); + this.lblComStats = new System.Windows.Forms.ToolStripStatusLabel(); this.groupBox4.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.PosAct)).BeginInit(); this.groupBox3.SuspendLayout(); @@ -247,7 +248,7 @@ // this.PlcErr_02.AutoSize = true; this.PlcErr_02.Location = new System.Drawing.Point(128, 53); - this.PlcErr_02.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.PlcErr_02.Margin = new System.Windows.Forms.Padding(4); this.PlcErr_02.Name = "PlcErr_02"; this.PlcErr_02.Size = new System.Drawing.Size(92, 21); this.PlcErr_02.TabIndex = 6; @@ -266,9 +267,9 @@ this.groupBox4.Controls.Add(this.messageText); this.groupBox4.Controls.Add(this.messageCode); this.groupBox4.Location = new System.Drawing.Point(5, 514); - this.groupBox4.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.groupBox4.Margin = new System.Windows.Forms.Padding(4); this.groupBox4.Name = "groupBox4"; - this.groupBox4.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.groupBox4.Padding = new System.Windows.Forms.Padding(4); this.groupBox4.Size = new System.Drawing.Size(505, 64); this.groupBox4.TabIndex = 44; this.groupBox4.TabStop = false; @@ -297,7 +298,7 @@ // messageText // this.messageText.Location = new System.Drawing.Point(201, 28); - this.messageText.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.messageText.Margin = new System.Windows.Forms.Padding(4); this.messageText.Name = "messageText"; this.messageText.Size = new System.Drawing.Size(285, 22); this.messageText.TabIndex = 14; @@ -306,7 +307,7 @@ // messageCode // this.messageCode.Location = new System.Drawing.Point(67, 28); - this.messageCode.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.messageCode.Margin = new System.Windows.Forms.Padding(4); this.messageCode.Name = "messageCode"; this.messageCode.Size = new System.Drawing.Size(81, 22); this.messageCode.TabIndex = 13; @@ -323,7 +324,7 @@ // AxFeedOverValue // this.AxFeedOverValue.Location = new System.Drawing.Point(353, 201); - this.AxFeedOverValue.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.AxFeedOverValue.Margin = new System.Windows.Forms.Padding(4); this.AxFeedOverValue.Name = "AxFeedOverValue"; this.AxFeedOverValue.Size = new System.Drawing.Size(132, 22); this.AxFeedOverValue.TabIndex = 26; @@ -331,7 +332,7 @@ // AxFeedActValue // this.AxFeedActValue.Location = new System.Drawing.Point(353, 175); - this.AxFeedActValue.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.AxFeedActValue.Margin = new System.Windows.Forms.Padding(4); this.AxFeedActValue.Name = "AxFeedActValue"; this.AxFeedActValue.Size = new System.Drawing.Size(132, 22); this.AxFeedActValue.TabIndex = 25; @@ -376,7 +377,7 @@ // partID // this.partID.Location = new System.Drawing.Point(107, 55); - this.partID.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.partID.Margin = new System.Windows.Forms.Padding(4); this.partID.Name = "partID"; this.partID.Size = new System.Drawing.Size(132, 22); this.partID.TabIndex = 49; @@ -395,7 +396,7 @@ // this.functionalMode.FormattingEnabled = true; this.functionalMode.Location = new System.Drawing.Point(107, 87); - this.functionalMode.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.functionalMode.Margin = new System.Windows.Forms.Padding(4); this.functionalMode.Name = "functionalMode"; this.functionalMode.Size = new System.Drawing.Size(389, 24); this.functionalMode.TabIndex = 47; @@ -425,7 +426,7 @@ this.J, this.K}); this.PosAct.Location = new System.Drawing.Point(107, 142); - this.PosAct.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.PosAct.Margin = new System.Windows.Forms.Padding(4); this.PosAct.Name = "PosAct"; this.PosAct.ScrollBars = System.Windows.Forms.ScrollBars.None; this.PosAct.Size = new System.Drawing.Size(389, 50); @@ -477,7 +478,7 @@ // this.PlcErr_03.AutoSize = true; this.PlcErr_03.Location = new System.Drawing.Point(128, 81); - this.PlcErr_03.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.PlcErr_03.Margin = new System.Windows.Forms.Padding(4); this.PlcErr_03.Name = "PlcErr_03"; this.PlcErr_03.Size = new System.Drawing.Size(92, 21); this.PlcErr_03.TabIndex = 5; @@ -489,7 +490,7 @@ // this.PlcErr_01.AutoSize = true; this.PlcErr_01.Location = new System.Drawing.Point(128, 25); - this.PlcErr_01.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.PlcErr_01.Margin = new System.Windows.Forms.Padding(4); this.PlcErr_01.Name = "PlcErr_01"; this.PlcErr_01.Size = new System.Drawing.Size(92, 21); this.PlcErr_01.TabIndex = 4; @@ -512,9 +513,9 @@ this.groupBox3.Controls.Add(this.SysErr_02); this.groupBox3.Controls.Add(this.SysErr_01); this.groupBox3.Location = new System.Drawing.Point(4, 620); - this.groupBox3.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.groupBox3.Margin = new System.Windows.Forms.Padding(4); this.groupBox3.Name = "groupBox3"; - this.groupBox3.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.groupBox3.Padding = new System.Windows.Forms.Padding(4); this.groupBox3.Size = new System.Drawing.Size(505, 140); this.groupBox3.TabIndex = 41; this.groupBox3.TabStop = false; @@ -524,7 +525,7 @@ // this.ErrRT_03.AutoSize = true; this.ErrRT_03.Location = new System.Drawing.Point(357, 81); - this.ErrRT_03.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.ErrRT_03.Margin = new System.Windows.Forms.Padding(4); this.ErrRT_03.Name = "ErrRT_03"; this.ErrRT_03.Size = new System.Drawing.Size(83, 21); this.ErrRT_03.TabIndex = 11; @@ -536,7 +537,7 @@ // this.ErrRT_02.AutoSize = true; this.ErrRT_02.Location = new System.Drawing.Point(357, 53); - this.ErrRT_02.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.ErrRT_02.Margin = new System.Windows.Forms.Padding(4); this.ErrRT_02.Name = "ErrRT_02"; this.ErrRT_02.Size = new System.Drawing.Size(83, 21); this.ErrRT_02.TabIndex = 10; @@ -548,7 +549,7 @@ // this.CncErr_02.AutoSize = true; this.CncErr_02.Location = new System.Drawing.Point(241, 53); - this.CncErr_02.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.CncErr_02.Margin = new System.Windows.Forms.Padding(4); this.CncErr_02.Name = "CncErr_02"; this.CncErr_02.Size = new System.Drawing.Size(97, 21); this.CncErr_02.TabIndex = 9; @@ -560,7 +561,7 @@ // this.CncErr_03.AutoSize = true; this.CncErr_03.Location = new System.Drawing.Point(241, 81); - this.CncErr_03.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.CncErr_03.Margin = new System.Windows.Forms.Padding(4); this.CncErr_03.Name = "CncErr_03"; this.CncErr_03.Size = new System.Drawing.Size(97, 21); this.CncErr_03.TabIndex = 8; @@ -572,7 +573,7 @@ // this.CncErr_01.AutoSize = true; this.CncErr_01.Location = new System.Drawing.Point(241, 25); - this.CncErr_01.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.CncErr_01.Margin = new System.Windows.Forms.Padding(4); this.CncErr_01.Name = "CncErr_01"; this.CncErr_01.Size = new System.Drawing.Size(97, 21); this.CncErr_01.TabIndex = 7; @@ -584,7 +585,7 @@ // this.SysErr_03.AutoSize = true; this.SysErr_03.Location = new System.Drawing.Point(9, 81); - this.SysErr_03.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.SysErr_03.Margin = new System.Windows.Forms.Padding(4); this.SysErr_03.Name = "SysErr_03"; this.SysErr_03.Size = new System.Drawing.Size(96, 21); this.SysErr_03.TabIndex = 3; @@ -596,7 +597,7 @@ // this.ErrRT_01.AutoSize = true; this.ErrRT_01.Location = new System.Drawing.Point(357, 25); - this.ErrRT_01.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.ErrRT_01.Margin = new System.Windows.Forms.Padding(4); this.ErrRT_01.Name = "ErrRT_01"; this.ErrRT_01.Size = new System.Drawing.Size(83, 21); this.ErrRT_01.TabIndex = 2; @@ -608,7 +609,7 @@ // this.SysErr_02.AutoSize = true; this.SysErr_02.Location = new System.Drawing.Point(9, 53); - this.SysErr_02.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.SysErr_02.Margin = new System.Windows.Forms.Padding(4); this.SysErr_02.Name = "SysErr_02"; this.SysErr_02.Size = new System.Drawing.Size(96, 21); this.SysErr_02.TabIndex = 1; @@ -620,7 +621,7 @@ // this.SysErr_01.AutoSize = true; this.SysErr_01.Location = new System.Drawing.Point(9, 25); - this.SysErr_01.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.SysErr_01.Margin = new System.Windows.Forms.Padding(4); this.SysErr_01.Name = "SysErr_01"; this.SysErr_01.Size = new System.Drawing.Size(96, 21); this.SysErr_01.TabIndex = 0; @@ -661,9 +662,9 @@ this.groupBox2.Controls.Add(this.label3); this.groupBox2.Controls.Add(this.AxLoad); this.groupBox2.Location = new System.Drawing.Point(513, 514); - this.groupBox2.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.groupBox2.Margin = new System.Windows.Forms.Padding(4); this.groupBox2.Name = "groupBox2"; - this.groupBox2.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.groupBox2.Padding = new System.Windows.Forms.Padding(4); this.groupBox2.Size = new System.Drawing.Size(500, 277); this.groupBox2.TabIndex = 40; this.groupBox2.TabStop = false; @@ -672,7 +673,7 @@ // AxAccelAct // this.AxAccelAct.Location = new System.Drawing.Point(107, 226); - this.AxAccelAct.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.AxAccelAct.Margin = new System.Windows.Forms.Padding(4); this.AxAccelAct.Name = "AxAccelAct"; this.AxAccelAct.Size = new System.Drawing.Size(60, 22); this.AxAccelAct.TabIndex = 43; @@ -690,7 +691,7 @@ // AxBatt // this.AxBatt.Location = new System.Drawing.Point(405, 226); - this.AxBatt.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.AxBatt.Margin = new System.Windows.Forms.Padding(4); this.AxBatt.Name = "AxBatt"; this.AxBatt.Size = new System.Drawing.Size(80, 22); this.AxBatt.TabIndex = 41; @@ -708,7 +709,7 @@ // AxAccTime // this.AxAccTime.Location = new System.Drawing.Point(263, 226); - this.AxAccTime.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.AxAccTime.Margin = new System.Windows.Forms.Padding(4); this.AxAccTime.Name = "AxAccTime"; this.AxAccTime.Size = new System.Drawing.Size(68, 22); this.AxAccTime.TabIndex = 39; @@ -726,7 +727,7 @@ // AxDir // this.AxDir.Location = new System.Drawing.Point(353, 82); - this.AxDir.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.AxDir.Margin = new System.Windows.Forms.Padding(4); this.AxDir.Name = "AxDir"; this.AxDir.Size = new System.Drawing.Size(105, 22); this.AxDir.TabIndex = 37; @@ -759,7 +760,7 @@ "LINEAR", "ROTARY"}); this.cbAxType.Location = new System.Drawing.Point(108, 85); - this.cbAxType.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.cbAxType.Margin = new System.Windows.Forms.Padding(4); this.cbAxType.Name = "cbAxType"; this.cbAxType.Size = new System.Drawing.Size(119, 24); this.cbAxType.TabIndex = 34; @@ -767,7 +768,7 @@ // AxMastId // this.AxMastId.Location = new System.Drawing.Point(380, 50); - this.AxMastId.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.AxMastId.Margin = new System.Windows.Forms.Padding(4); this.AxMastId.Name = "AxMastId"; this.AxMastId.Size = new System.Drawing.Size(105, 22); this.AxMastId.TabIndex = 33; @@ -786,7 +787,7 @@ // this.AxIsMaster.AutoSize = true; this.AxIsMaster.Location = new System.Drawing.Point(237, 54); - this.AxIsMaster.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.AxIsMaster.Margin = new System.Windows.Forms.Padding(4); this.AxIsMaster.Name = "AxIsMaster"; this.AxIsMaster.Size = new System.Drawing.Size(73, 21); this.AxIsMaster.TabIndex = 31; @@ -796,7 +797,7 @@ // AxMainProc // this.AxMainProc.Location = new System.Drawing.Point(108, 50); - this.AxMainProc.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.AxMainProc.Margin = new System.Windows.Forms.Padding(4); this.AxMainProc.Name = "AxMainProc"; this.AxMainProc.Size = new System.Drawing.Size(60, 22); this.AxMainProc.TabIndex = 30; @@ -816,7 +817,7 @@ this.cbAxNum.DisplayMember = "Name"; this.cbAxNum.FormattingEnabled = true; this.cbAxNum.Location = new System.Drawing.Point(108, 18); - this.cbAxNum.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.cbAxNum.Margin = new System.Windows.Forms.Padding(4); this.cbAxNum.Name = "cbAxNum"; this.cbAxNum.Size = new System.Drawing.Size(160, 24); this.cbAxNum.TabIndex = 28; @@ -836,7 +837,7 @@ // AxPositionValue // this.AxPositionValue.Location = new System.Drawing.Point(353, 149); - this.AxPositionValue.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.AxPositionValue.Margin = new System.Windows.Forms.Padding(4); this.AxPositionValue.Name = "AxPositionValue"; this.AxPositionValue.Size = new System.Drawing.Size(132, 22); this.AxPositionValue.TabIndex = 26; @@ -844,7 +845,7 @@ // AxLoadValue // this.AxLoadValue.Location = new System.Drawing.Point(353, 123); - this.AxLoadValue.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.AxLoadValue.Margin = new System.Windows.Forms.Padding(4); this.AxLoadValue.Name = "AxLoadValue"; this.AxLoadValue.Size = new System.Drawing.Size(132, 22); this.AxLoadValue.TabIndex = 25; @@ -897,7 +898,7 @@ // program // this.program.Location = new System.Drawing.Point(107, 23); - this.program.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.program.Margin = new System.Windows.Forms.Padding(4); this.program.Name = "program"; this.program.Size = new System.Drawing.Size(203, 22); this.program.TabIndex = 39; @@ -931,9 +932,9 @@ this.groupBox9.Controls.Add(this.functionalMode); this.groupBox9.Controls.Add(this.label12); this.groupBox9.Location = new System.Drawing.Point(4, 182); - this.groupBox9.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.groupBox9.Margin = new System.Windows.Forms.Padding(4); this.groupBox9.Name = "groupBox9"; - this.groupBox9.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.groupBox9.Padding = new System.Windows.Forms.Padding(4); this.groupBox9.Size = new System.Drawing.Size(505, 194); this.groupBox9.TabIndex = 55; this.groupBox9.TabStop = false; @@ -942,7 +943,7 @@ // txtPzKo // this.txtPzKo.Location = new System.Drawing.Point(417, 121); - this.txtPzKo.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.txtPzKo.Margin = new System.Windows.Forms.Padding(4); this.txtPzKo.Name = "txtPzKo"; this.txtPzKo.Size = new System.Drawing.Size(79, 22); this.txtPzKo.TabIndex = 59; @@ -962,7 +963,7 @@ // this.txtPzOk.Enabled = false; this.txtPzOk.Location = new System.Drawing.Point(268, 121); - this.txtPzOk.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.txtPzOk.Margin = new System.Windows.Forms.Padding(4); this.txtPzOk.Name = "txtPzOk"; this.txtPzOk.Size = new System.Drawing.Size(79, 22); this.txtPzOk.TabIndex = 57; @@ -981,7 +982,7 @@ // this.txtPzTot.Enabled = false; this.txtPzTot.Location = new System.Drawing.Point(107, 121); - this.txtPzTot.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.txtPzTot.Margin = new System.Windows.Forms.Padding(4); this.txtPzTot.Name = "txtPzTot"; this.txtPzTot.Size = new System.Drawing.Size(79, 22); this.txtPzTot.TabIndex = 55; @@ -999,7 +1000,7 @@ // OPERATOR_ID // this.OPERATOR_ID.Location = new System.Drawing.Point(364, 55); - this.OPERATOR_ID.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.OPERATOR_ID.Margin = new System.Windows.Forms.Padding(4); this.OPERATOR_ID.Name = "OPERATOR_ID"; this.OPERATOR_ID.Size = new System.Drawing.Size(132, 22); this.OPERATOR_ID.TabIndex = 53; @@ -1017,7 +1018,7 @@ // PROG_ROW_NUM // this.PROG_ROW_NUM.Location = new System.Drawing.Point(417, 23); - this.PROG_ROW_NUM.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.PROG_ROW_NUM.Margin = new System.Windows.Forms.Padding(4); this.PROG_ROW_NUM.Name = "PROG_ROW_NUM"; this.PROG_ROW_NUM.Size = new System.Drawing.Size(79, 22); this.PROG_ROW_NUM.TabIndex = 51; @@ -1043,9 +1044,9 @@ this.groupBox11.Controls.Add(this.STATUS_STRB_DW0); this.groupBox11.Controls.Add(this.lblPLC_ADP); this.groupBox11.Location = new System.Drawing.Point(11, 71); - this.groupBox11.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.groupBox11.Margin = new System.Windows.Forms.Padding(4); this.groupBox11.Name = "groupBox11"; - this.groupBox11.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.groupBox11.Padding = new System.Windows.Forms.Padding(4); this.groupBox11.Size = new System.Drawing.Size(509, 191); this.groupBox11.TabIndex = 57; this.groupBox11.TabStop = false; @@ -1055,7 +1056,7 @@ // this.STATUS_STRB_DW3.Font = new System.Drawing.Font("Microsoft Sans Serif", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.STATUS_STRB_DW3.Location = new System.Drawing.Point(113, 146); - this.STATUS_STRB_DW3.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.STATUS_STRB_DW3.Margin = new System.Windows.Forms.Padding(4); this.STATUS_STRB_DW3.Name = "STATUS_STRB_DW3"; this.STATUS_STRB_DW3.Size = new System.Drawing.Size(387, 28); this.STATUS_STRB_DW3.TabIndex = 59; @@ -1074,7 +1075,7 @@ // this.STATUS_STRB_DW2.Font = new System.Drawing.Font("Microsoft Sans Serif", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.STATUS_STRB_DW2.Location = new System.Drawing.Point(113, 103); - this.STATUS_STRB_DW2.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.STATUS_STRB_DW2.Margin = new System.Windows.Forms.Padding(4); this.STATUS_STRB_DW2.Name = "STATUS_STRB_DW2"; this.STATUS_STRB_DW2.Size = new System.Drawing.Size(387, 28); this.STATUS_STRB_DW2.TabIndex = 57; @@ -1093,7 +1094,7 @@ // this.STATUS_STRB_DW1.Font = new System.Drawing.Font("Microsoft Sans Serif", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.STATUS_STRB_DW1.Location = new System.Drawing.Point(113, 60); - this.STATUS_STRB_DW1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.STATUS_STRB_DW1.Margin = new System.Windows.Forms.Padding(4); this.STATUS_STRB_DW1.Name = "STATUS_STRB_DW1"; this.STATUS_STRB_DW1.Size = new System.Drawing.Size(387, 28); this.STATUS_STRB_DW1.TabIndex = 55; @@ -1112,7 +1113,7 @@ // this.STATUS_STRB_DW0.Font = new System.Drawing.Font("Microsoft Sans Serif", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.STATUS_STRB_DW0.Location = new System.Drawing.Point(113, 17); - this.STATUS_STRB_DW0.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.STATUS_STRB_DW0.Margin = new System.Windows.Forms.Padding(4); this.STATUS_STRB_DW0.Name = "STATUS_STRB_DW0"; this.STATUS_STRB_DW0.Size = new System.Drawing.Size(387, 28); this.STATUS_STRB_DW0.TabIndex = 53; @@ -1134,6 +1135,7 @@ this.lblApp, this.lblVers, this.MainProgrBar, + this.lblComStats, this.lblStatus}); this.statusStrip1.Location = new System.Drawing.Point(0, 669); this.statusStrip1.Name = "statusStrip1"; @@ -1187,9 +1189,9 @@ this.groupBox13.Controls.Add(this.label26); this.groupBox13.Controls.Add(this.hsPathFeed); this.groupBox13.Location = new System.Drawing.Point(513, 103); - this.groupBox13.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.groupBox13.Margin = new System.Windows.Forms.Padding(4); this.groupBox13.Name = "groupBox13"; - this.groupBox13.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.groupBox13.Padding = new System.Windows.Forms.Padding(4); this.groupBox13.Size = new System.Drawing.Size(505, 206); this.groupBox13.TabIndex = 60; this.groupBox13.TabStop = false; @@ -1200,7 +1202,7 @@ this.cbPathSel.DisplayMember = "Name"; this.cbPathSel.FormattingEnabled = true; this.cbPathSel.Location = new System.Drawing.Point(107, 20); - this.cbPathSel.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.cbPathSel.Margin = new System.Windows.Forms.Padding(4); this.cbPathSel.Name = "cbPathSel"; this.cbPathSel.Size = new System.Drawing.Size(160, 24); this.cbPathSel.TabIndex = 63; @@ -1230,7 +1232,7 @@ // txtPathSpeedOver // this.txtPathSpeedOver.Location = new System.Drawing.Point(397, 108); - this.txtPathSpeedOver.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.txtPathSpeedOver.Margin = new System.Windows.Forms.Padding(4); this.txtPathSpeedOver.Name = "txtPathSpeedOver"; this.txtPathSpeedOver.Size = new System.Drawing.Size(97, 22); this.txtPathSpeedOver.TabIndex = 32; @@ -1258,7 +1260,7 @@ // txtPathFeedOver // this.txtPathFeedOver.Location = new System.Drawing.Point(397, 78); - this.txtPathFeedOver.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.txtPathFeedOver.Margin = new System.Windows.Forms.Padding(4); this.txtPathFeedOver.Name = "txtPathFeedOver"; this.txtPathFeedOver.Size = new System.Drawing.Size(97, 22); this.txtPathFeedOver.TabIndex = 29; @@ -1286,7 +1288,7 @@ // txtPathFeed // this.txtPathFeed.Location = new System.Drawing.Point(397, 46); - this.txtPathFeed.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.txtPathFeed.Margin = new System.Windows.Forms.Padding(4); this.txtPathFeed.Name = "txtPathFeed"; this.txtPathFeed.Size = new System.Drawing.Size(97, 22); this.txtPathFeed.TabIndex = 26; @@ -1375,7 +1377,7 @@ this.tabCtrlMain.Controls.Add(this.tpSIM); this.tabCtrlMain.Dock = System.Windows.Forms.DockStyle.Fill; this.tabCtrlMain.Location = new System.Drawing.Point(0, 60); - this.tabCtrlMain.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.tabCtrlMain.Margin = new System.Windows.Forms.Padding(4); this.tabCtrlMain.Name = "tabCtrlMain"; this.tabCtrlMain.SelectedIndex = 0; this.tabCtrlMain.Size = new System.Drawing.Size(1047, 609); @@ -1389,9 +1391,9 @@ this.tpStatus.Controls.Add(this.groupBox1); this.tpStatus.Controls.Add(this.groupBox11); this.tpStatus.Location = new System.Drawing.Point(4, 25); - this.tpStatus.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.tpStatus.Margin = new System.Windows.Forms.Padding(4); this.tpStatus.Name = "tpStatus"; - this.tpStatus.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.tpStatus.Padding = new System.Windows.Forms.Padding(4); this.tpStatus.Size = new System.Drawing.Size(1039, 580); this.tpStatus.TabIndex = 0; this.tpStatus.Text = "STATUS"; @@ -1462,9 +1464,9 @@ this.groupBox6.Controls.Add(this.STATUS_ACK_DW0); this.groupBox6.Controls.Add(this.label48); this.groupBox6.Location = new System.Drawing.Point(523, 71); - this.groupBox6.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.groupBox6.Margin = new System.Windows.Forms.Padding(4); this.groupBox6.Name = "groupBox6"; - this.groupBox6.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.groupBox6.Padding = new System.Windows.Forms.Padding(4); this.groupBox6.Size = new System.Drawing.Size(512, 191); this.groupBox6.TabIndex = 58; this.groupBox6.TabStop = false; @@ -1474,7 +1476,7 @@ // this.STATUS_ACK_DW3.Font = new System.Drawing.Font("Microsoft Sans Serif", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.STATUS_ACK_DW3.Location = new System.Drawing.Point(113, 145); - this.STATUS_ACK_DW3.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.STATUS_ACK_DW3.Margin = new System.Windows.Forms.Padding(4); this.STATUS_ACK_DW3.Name = "STATUS_ACK_DW3"; this.STATUS_ACK_DW3.Size = new System.Drawing.Size(389, 28); this.STATUS_ACK_DW3.TabIndex = 59; @@ -1493,7 +1495,7 @@ // this.STATUS_ACK_DW2.Font = new System.Drawing.Font("Microsoft Sans Serif", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.STATUS_ACK_DW2.Location = new System.Drawing.Point(113, 102); - this.STATUS_ACK_DW2.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.STATUS_ACK_DW2.Margin = new System.Windows.Forms.Padding(4); this.STATUS_ACK_DW2.Name = "STATUS_ACK_DW2"; this.STATUS_ACK_DW2.Size = new System.Drawing.Size(389, 28); this.STATUS_ACK_DW2.TabIndex = 57; @@ -1512,7 +1514,7 @@ // this.STATUS_ACK_DW1.Font = new System.Drawing.Font("Microsoft Sans Serif", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.STATUS_ACK_DW1.Location = new System.Drawing.Point(113, 59); - this.STATUS_ACK_DW1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.STATUS_ACK_DW1.Margin = new System.Windows.Forms.Padding(4); this.STATUS_ACK_DW1.Name = "STATUS_ACK_DW1"; this.STATUS_ACK_DW1.Size = new System.Drawing.Size(389, 28); this.STATUS_ACK_DW1.TabIndex = 55; @@ -1531,7 +1533,7 @@ // this.STATUS_ACK_DW0.Font = new System.Drawing.Font("Microsoft Sans Serif", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.STATUS_ACK_DW0.Location = new System.Drawing.Point(113, 18); - this.STATUS_ACK_DW0.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.STATUS_ACK_DW0.Margin = new System.Windows.Forms.Padding(4); this.STATUS_ACK_DW0.Name = "STATUS_ACK_DW0"; this.STATUS_ACK_DW0.Size = new System.Drawing.Size(389, 28); this.STATUS_ACK_DW0.TabIndex = 53; @@ -1554,9 +1556,9 @@ this.groupBox1.Controls.Add(this.port); this.groupBox1.Controls.Add(this.label1); this.groupBox1.Location = new System.Drawing.Point(8, 7); - this.groupBox1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.groupBox1.Margin = new System.Windows.Forms.Padding(4); this.groupBox1.Name = "groupBox1"; - this.groupBox1.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.groupBox1.Padding = new System.Windows.Forms.Padding(4); this.groupBox1.Size = new System.Drawing.Size(505, 53); this.groupBox1.TabIndex = 35; this.groupBox1.TabStop = false; @@ -1565,7 +1567,7 @@ // dump // this.dump.Location = new System.Drawing.Point(397, 18); - this.dump.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.dump.Margin = new System.Windows.Forms.Padding(4); this.dump.Name = "dump"; this.dump.Size = new System.Drawing.Size(100, 28); this.dump.TabIndex = 4; @@ -1576,7 +1578,7 @@ // stop // this.stop.Location = new System.Drawing.Point(269, 18); - this.stop.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.stop.Margin = new System.Windows.Forms.Padding(4); this.stop.Name = "stop"; this.stop.Size = new System.Drawing.Size(100, 28); this.stop.TabIndex = 3; @@ -1587,7 +1589,7 @@ // start // this.start.Location = new System.Drawing.Point(161, 18); - this.start.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.start.Margin = new System.Windows.Forms.Padding(4); this.start.Name = "start"; this.start.Size = new System.Drawing.Size(100, 28); this.start.TabIndex = 2; @@ -1598,7 +1600,7 @@ // port // this.port.Location = new System.Drawing.Point(67, 21); - this.port.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.port.Margin = new System.Windows.Forms.Padding(4); this.port.Name = "port"; this.port.Size = new System.Drawing.Size(81, 22); this.port.TabIndex = 1; @@ -1620,10 +1622,10 @@ this.tbConf.BackColor = System.Drawing.Color.Maroon; this.tbConf.Controls.Add(this.wbXmlConf); this.tbConf.Location = new System.Drawing.Point(4, 25); - this.tbConf.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.tbConf.Margin = new System.Windows.Forms.Padding(4); this.tbConf.Name = "tbConf"; - this.tbConf.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4); - this.tbConf.Size = new System.Drawing.Size(1039, 577); + this.tbConf.Padding = new System.Windows.Forms.Padding(4); + this.tbConf.Size = new System.Drawing.Size(1039, 580); this.tbConf.TabIndex = 1; this.tbConf.Text = "XML CONFIG"; // @@ -1631,10 +1633,10 @@ // this.wbXmlConf.Dock = System.Windows.Forms.DockStyle.Fill; this.wbXmlConf.Location = new System.Drawing.Point(4, 4); - this.wbXmlConf.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.wbXmlConf.Margin = new System.Windows.Forms.Padding(4); this.wbXmlConf.MinimumSize = new System.Drawing.Size(27, 25); this.wbXmlConf.Name = "wbXmlConf"; - this.wbXmlConf.Size = new System.Drawing.Size(1031, 569); + this.wbXmlConf.Size = new System.Drawing.Size(1031, 572); this.wbXmlConf.TabIndex = 0; // // tpSIM @@ -1653,9 +1655,9 @@ this.tpSIM.Controls.Add(this.groupBox2); this.tpSIM.Controls.Add(this.groupBox12); this.tpSIM.Location = new System.Drawing.Point(4, 25); - this.tpSIM.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.tpSIM.Margin = new System.Windows.Forms.Padding(4); this.tpSIM.Name = "tpSIM"; - this.tpSIM.Size = new System.Drawing.Size(1039, 577); + this.tpSIM.Size = new System.Drawing.Size(1039, 580); this.tpSIM.TabIndex = 2; this.tpSIM.Text = "SIMULATION"; // @@ -1680,9 +1682,9 @@ this.groupBox5.Controls.Add(this.cbUnOpSel); this.groupBox5.Controls.Add(this.label39); this.groupBox5.Location = new System.Drawing.Point(513, 316); - this.groupBox5.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.groupBox5.Margin = new System.Windows.Forms.Padding(4); this.groupBox5.Name = "groupBox5"; - this.groupBox5.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.groupBox5.Padding = new System.Windows.Forms.Padding(4); this.groupBox5.Size = new System.Drawing.Size(505, 191); this.groupBox5.TabIndex = 62; this.groupBox5.TabStop = false; @@ -1691,7 +1693,7 @@ // uoSpeedVal // this.uoSpeedVal.Location = new System.Drawing.Point(343, 146); - this.uoSpeedVal.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.uoSpeedVal.Margin = new System.Windows.Forms.Padding(4); this.uoSpeedVal.Name = "uoSpeedVal"; this.uoSpeedVal.Size = new System.Drawing.Size(132, 22); this.uoSpeedVal.TabIndex = 81; @@ -1699,7 +1701,7 @@ // uoLoadVal // this.uoLoadVal.Location = new System.Drawing.Point(343, 121); - this.uoLoadVal.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.uoLoadVal.Margin = new System.Windows.Forms.Padding(4); this.uoLoadVal.Name = "uoLoadVal"; this.uoLoadVal.Size = new System.Drawing.Size(132, 22); this.uoLoadVal.TabIndex = 80; @@ -1743,7 +1745,7 @@ // uoVitaRes // this.uoVitaRes.Location = new System.Drawing.Point(97, 89); - this.uoVitaRes.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.uoVitaRes.Margin = new System.Windows.Forms.Padding(4); this.uoVitaRes.Name = "uoVitaRes"; this.uoVitaRes.Size = new System.Drawing.Size(60, 22); this.uoVitaRes.TabIndex = 75; @@ -1761,7 +1763,7 @@ // uoAccTime // this.uoAccTime.Location = new System.Drawing.Point(253, 89); - this.uoAccTime.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.uoAccTime.Margin = new System.Windows.Forms.Padding(4); this.uoAccTime.Name = "uoAccTime"; this.uoAccTime.Size = new System.Drawing.Size(68, 22); this.uoAccTime.TabIndex = 73; @@ -1779,7 +1781,7 @@ // uoToolId // this.uoToolId.Location = new System.Drawing.Point(97, 57); - this.uoToolId.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.uoToolId.Margin = new System.Windows.Forms.Padding(4); this.uoToolId.Name = "uoToolId"; this.uoToolId.Size = new System.Drawing.Size(60, 22); this.uoToolId.TabIndex = 71; @@ -1797,7 +1799,7 @@ // uoStatus // this.uoStatus.Location = new System.Drawing.Point(396, 57); - this.uoStatus.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.uoStatus.Margin = new System.Windows.Forms.Padding(4); this.uoStatus.Name = "uoStatus"; this.uoStatus.Size = new System.Drawing.Size(80, 22); this.uoStatus.TabIndex = 69; @@ -1815,7 +1817,7 @@ // uoNumCU // this.uoNumCU.Location = new System.Drawing.Point(253, 57); - this.uoNumCU.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.uoNumCU.Margin = new System.Windows.Forms.Padding(4); this.uoNumCU.Name = "uoNumCU"; this.uoNumCU.Size = new System.Drawing.Size(68, 22); this.uoNumCU.TabIndex = 67; @@ -1835,7 +1837,7 @@ this.cbUnOpSel.DisplayMember = "Name"; this.cbUnOpSel.FormattingEnabled = true; this.cbUnOpSel.Location = new System.Drawing.Point(97, 23); - this.cbUnOpSel.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.cbUnOpSel.Margin = new System.Windows.Forms.Padding(4); this.cbUnOpSel.Name = "cbUnOpSel"; this.cbUnOpSel.Size = new System.Drawing.Size(160, 24); this.cbUnOpSel.TabIndex = 65; @@ -1859,9 +1861,9 @@ this.Execution.Controls.Add(this.stopped); this.Execution.Controls.Add(this.running); this.Execution.Location = new System.Drawing.Point(4, 116); - this.Execution.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.Execution.Margin = new System.Windows.Forms.Padding(4); this.Execution.Name = "Execution"; - this.Execution.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.Execution.Padding = new System.Windows.Forms.Padding(4); this.Execution.Size = new System.Drawing.Size(507, 59); this.Execution.TabIndex = 61; this.Execution.TabStop = false; @@ -1872,7 +1874,7 @@ this.ready.AutoSize = true; this.ready.Checked = true; this.ready.Location = new System.Drawing.Point(152, 20); - this.ready.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.ready.Margin = new System.Windows.Forms.Padding(4); this.ready.Name = "ready"; this.ready.Size = new System.Drawing.Size(70, 21); this.ready.TabIndex = 9; @@ -1884,7 +1886,7 @@ // this.feedhold.AutoSize = true; this.feedhold.Location = new System.Drawing.Point(337, 20); - this.feedhold.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.feedhold.Margin = new System.Windows.Forms.Padding(4); this.feedhold.Name = "feedhold"; this.feedhold.Size = new System.Drawing.Size(94, 21); this.feedhold.TabIndex = 8; @@ -1895,7 +1897,7 @@ // this.stopped.AutoSize = true; this.stopped.Location = new System.Drawing.Point(240, 20); - this.stopped.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.stopped.Margin = new System.Windows.Forms.Padding(4); this.stopped.Name = "stopped"; this.stopped.Size = new System.Drawing.Size(82, 21); this.stopped.TabIndex = 7; @@ -1906,7 +1908,7 @@ // this.running.AutoSize = true; this.running.Location = new System.Drawing.Point(48, 20); - this.running.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.running.Margin = new System.Windows.Forms.Padding(4); this.running.Name = "running"; this.running.Size = new System.Drawing.Size(82, 21); this.running.TabIndex = 6; @@ -1920,9 +1922,9 @@ this.mode.Controls.Add(this.manual); this.mode.Controls.Add(this.automatic); this.mode.Location = new System.Drawing.Point(4, 49); - this.mode.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.mode.Margin = new System.Windows.Forms.Padding(4); this.mode.Name = "mode"; - this.mode.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.mode.Padding = new System.Windows.Forms.Padding(4); this.mode.Size = new System.Drawing.Size(505, 59); this.mode.TabIndex = 60; this.mode.TabStop = false; @@ -1932,7 +1934,7 @@ // this.edit.AutoSize = true; this.edit.Location = new System.Drawing.Point(399, 20); - this.edit.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.edit.Margin = new System.Windows.Forms.Padding(4); this.edit.Name = "edit"; this.edit.Size = new System.Drawing.Size(53, 21); this.edit.TabIndex = 9; @@ -1943,7 +1945,7 @@ // this.mdi.AutoSize = true; this.mdi.Location = new System.Drawing.Point(240, 18); - this.mdi.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.mdi.Margin = new System.Windows.Forms.Padding(4); this.mdi.Name = "mdi"; this.mdi.Size = new System.Drawing.Size(144, 21); this.mdi.TabIndex = 8; @@ -1955,7 +1957,7 @@ this.manual.AutoSize = true; this.manual.Checked = true; this.manual.Location = new System.Drawing.Point(152, 18); - this.manual.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.manual.Margin = new System.Windows.Forms.Padding(4); this.manual.Name = "manual"; this.manual.Size = new System.Drawing.Size(75, 21); this.manual.TabIndex = 7; @@ -1967,7 +1969,7 @@ // this.automatic.AutoSize = true; this.automatic.Location = new System.Drawing.Point(48, 20); - this.automatic.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.automatic.Margin = new System.Windows.Forms.Padding(4); this.automatic.Name = "automatic"; this.automatic.Size = new System.Drawing.Size(91, 21); this.automatic.TabIndex = 6; @@ -1987,9 +1989,9 @@ this.groupBox7.Controls.Add(this.label15); this.groupBox7.Controls.Add(this.label14); this.groupBox7.Location = new System.Drawing.Point(513, 4); - this.groupBox7.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.groupBox7.Margin = new System.Windows.Forms.Padding(4); this.groupBox7.Name = "groupBox7"; - this.groupBox7.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.groupBox7.Padding = new System.Windows.Forms.Padding(4); this.groupBox7.Size = new System.Drawing.Size(507, 92); this.groupBox7.TabIndex = 59; this.groupBox7.TabStop = false; @@ -2041,7 +2043,7 @@ // txtAccTime // this.txtAccTime.Location = new System.Drawing.Point(312, 21); - this.txtAccTime.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.txtAccTime.Margin = new System.Windows.Forms.Padding(4); this.txtAccTime.Name = "txtAccTime"; this.txtAccTime.Size = new System.Drawing.Size(69, 22); this.txtAccTime.TabIndex = 62; @@ -2059,7 +2061,7 @@ // txtPower // this.txtPower.Location = new System.Drawing.Point(433, 21); - this.txtPower.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.txtPower.Margin = new System.Windows.Forms.Padding(4); this.txtPower.Name = "txtPower"; this.txtPower.Size = new System.Drawing.Size(64, 22); this.txtPower.TabIndex = 60; @@ -2098,9 +2100,9 @@ // this.groupBox10.Controls.Add(this.enableDataSim); this.groupBox10.Location = new System.Drawing.Point(273, 4); - this.groupBox10.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.groupBox10.Margin = new System.Windows.Forms.Padding(4); this.groupBox10.Name = "groupBox10"; - this.groupBox10.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.groupBox10.Padding = new System.Windows.Forms.Padding(4); this.groupBox10.Size = new System.Drawing.Size(236, 38); this.groupBox10.TabIndex = 58; this.groupBox10.TabStop = false; @@ -2110,7 +2112,7 @@ // this.enableDataSim.AutoSize = true; this.enableDataSim.Location = new System.Drawing.Point(149, 11); - this.enableDataSim.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.enableDataSim.Margin = new System.Windows.Forms.Padding(4); this.enableDataSim.Name = "enableDataSim"; this.enableDataSim.RightToLeft = System.Windows.Forms.RightToLeft.Yes; this.enableDataSim.Size = new System.Drawing.Size(74, 21); @@ -2122,9 +2124,9 @@ // this.groupBox8.Controls.Add(this.estop); this.groupBox8.Location = new System.Drawing.Point(4, 4); - this.groupBox8.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.groupBox8.Margin = new System.Windows.Forms.Padding(4); this.groupBox8.Name = "groupBox8"; - this.groupBox8.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.groupBox8.Padding = new System.Windows.Forms.Padding(4); this.groupBox8.Size = new System.Drawing.Size(261, 38); this.groupBox8.TabIndex = 57; this.groupBox8.TabStop = false; @@ -2134,7 +2136,7 @@ // this.estop.AutoSize = true; this.estop.Location = new System.Drawing.Point(79, 11); - this.estop.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.estop.Margin = new System.Windows.Forms.Padding(4); this.estop.Name = "estop"; this.estop.RightToLeft = System.Windows.Forms.RightToLeft.Yes; this.estop.Size = new System.Drawing.Size(134, 21); @@ -2154,9 +2156,9 @@ this.groupBox12.Controls.Add(this.addCodM); this.groupBox12.Controls.Add(this.label20); this.groupBox12.Location = new System.Drawing.Point(4, 384); - this.groupBox12.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.groupBox12.Margin = new System.Windows.Forms.Padding(4); this.groupBox12.Name = "groupBox12"; - this.groupBox12.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.groupBox12.Padding = new System.Windows.Forms.Padding(4); this.groupBox12.Size = new System.Drawing.Size(507, 123); this.groupBox12.TabIndex = 58; this.groupBox12.TabStop = false; @@ -2175,7 +2177,7 @@ // addCodT // this.addCodT.Location = new System.Drawing.Point(68, 87); - this.addCodT.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.addCodT.Margin = new System.Windows.Forms.Padding(4); this.addCodT.Name = "addCodT"; this.addCodT.Size = new System.Drawing.Size(79, 22); this.addCodT.TabIndex = 59; @@ -2205,7 +2207,7 @@ // addCodS // this.addCodS.Location = new System.Drawing.Point(69, 55); - this.addCodS.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.addCodS.Margin = new System.Windows.Forms.Padding(4); this.addCodS.Name = "addCodS"; this.addCodS.Size = new System.Drawing.Size(79, 22); this.addCodS.TabIndex = 56; @@ -2235,7 +2237,7 @@ // addCodM // this.addCodM.Location = new System.Drawing.Point(69, 23); - this.addCodM.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.addCodM.Margin = new System.Windows.Forms.Padding(4); this.addCodM.Name = "addCodM"; this.addCodM.Size = new System.Drawing.Size(79, 22); this.addCodM.TabIndex = 53; @@ -2266,6 +2268,12 @@ this.trayMenu.Size = new System.Drawing.Size(67, 4); this.trayMenu.ItemClicked += new System.Windows.Forms.ToolStripItemClickedEventHandler(this.trayMenu_ItemClicked); // + // lblComStats + // + this.lblComStats.Name = "lblComStats"; + this.lblComStats.Size = new System.Drawing.Size(39, 24); + this.lblComStats.Text = "stats"; + // // MainForm // this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); @@ -2278,7 +2286,7 @@ this.Controls.Add(this.label6); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.MainMenuStrip = this.menuStrip1; - this.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.Margin = new System.Windows.Forms.Padding(4); this.MaximizeBox = false; this.Name = "MainForm"; this.ShowInTaskbar = false; @@ -2523,6 +2531,7 @@ private System.Windows.Forms.Label lblOutMessage2; private System.Windows.Forms.GroupBox gbMonitor; private System.Windows.Forms.Label lblOutMessage3; + private System.Windows.Forms.ToolStripStatusLabel lblComStats; } } diff --git a/MTC_Adapter/MTC_Adapter/MainForm.cs b/MTC_Adapter/MTC_Adapter/MainForm.cs index fb75b06..ade0160 100644 --- a/MTC_Adapter/MTC_Adapter/MainForm.cs +++ b/MTC_Adapter/MTC_Adapter/MainForm.cs @@ -108,6 +108,14 @@ namespace MTC_Adapter lg.Info(txt2show); Thread.Sleep(startTimerMs); } + /// + /// Mostra update delle statistiche di comunicazione (numero chiamate, tempo medio...) + /// + /// + public void updateComStats(string txt2show) + { + lblComStats.Text = string.Format("{0} | ", txt2show); + } #endregion @@ -609,8 +617,8 @@ namespace MTC_Adapter set { // se true --> comunica/verde, altrimenti grigio - lblApp.ForeColor = value ? Color.Green : Color.Black; - lblApp.Invalidate(); + lblApp.ForeColor = value ? Color.SeaGreen : Color.Black; + lblVers.ForeColor = value ? Color.SeaGreen : Color.DarkSlateGray; statusStrip1.Refresh(); } } diff --git a/MTC_Adapter/MTC_Adapter/MainForm.resx b/MTC_Adapter/MTC_Adapter/MainForm.resx index a8117b7..b7d94fe 100644 --- a/MTC_Adapter/MTC_Adapter/MainForm.resx +++ b/MTC_Adapter/MTC_Adapter/MainForm.resx @@ -138,24 +138,6 @@ True - - True - - - True - - - True - - - True - - - True - - - True - 104, 17