diff --git a/HalCheck/HalControle.Designer.cs b/HalCheck/HalControle.Designer.cs index 5ce198b..44bbcf4 100644 --- a/HalCheck/HalControle.Designer.cs +++ b/HalCheck/HalControle.Designer.cs @@ -127,6 +127,7 @@ namespace HalCheck this.lbSensors = new System.Windows.Forms.ListBox(); this.panelPlot = new System.Windows.Forms.Panel(); this.tpHal = new System.Windows.Forms.TabPage(); + this.lblLastCheckTimeStamp = new System.Windows.Forms.Label(); this.pnlESDwarning = new System.Windows.Forms.Panel(); this.pcESDwarning = new System.Windows.Forms.PictureBox(); this.pcHal = new System.Windows.Forms.PictureBox(); @@ -584,7 +585,7 @@ namespace HalCheck this.tabControl.Controls.Add(this.tpGeneralDataCheck); this.tabControl.Controls.Add(this.tpDataView); this.tabControl.Controls.Add(this.tpHal); - this.tabControl.Location = new System.Drawing.Point(9, 10); + this.tabControl.Location = new System.Drawing.Point(11, 11); this.tabControl.Margin = new System.Windows.Forms.Padding(2); this.tabControl.Name = "tabControl"; this.tabControl.SelectedIndex = 0; @@ -1200,12 +1201,22 @@ namespace HalCheck this.label3.TabIndex = 33; this.label3.Text = "Nieuw aangesloten kamers op CMS2 verwijderen uit txt bestand: Z:\\projects\\2020\\P2" + "01339\\sub1\\4. Software\\1. Feanor\\excluded_chambers.txt"; + // + // lblLastCheckTimeStamp + // + this.lblLastCheckTimeStamp.AutoSize = true; + this.lblLastCheckTimeStamp.Location = new System.Drawing.Point(1420, 1058); + this.lblLastCheckTimeStamp.Name = "lblLastCheckTimeStamp"; + this.lblLastCheckTimeStamp.Size = new System.Drawing.Size(115, 13); + this.lblLastCheckTimeStamp.TabIndex = 3; + this.lblLastCheckTimeStamp.Text = "Last Update timestamp"; // // HalControle // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(1699, 1125); + this.ClientSize = new System.Drawing.Size(1559, 1056); + this.Controls.Add(this.lblLastCheckTimeStamp); this.Controls.Add(this.label3); this.Controls.Add(this.tabControl); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); @@ -1335,5 +1346,6 @@ namespace HalCheck private System.Windows.Forms.PictureBox pcESDwarning; private System.Windows.Forms.Panel pnlESDwarning; private System.Windows.Forms.Label label3; + private System.Windows.Forms.Label lblLastCheckTimeStamp; } } \ No newline at end of file diff --git a/HalCheck/HalControle.cs b/HalCheck/HalControle.cs index ec2e315..1fbed44 100644 --- a/HalCheck/HalControle.cs +++ b/HalCheck/HalControle.cs @@ -1885,6 +1885,10 @@ namespace HalCheck List sensorIds = rthSensors.Select(s => s.Id).ToList(); List<(double temperature, double humidity)> sensorData = GetTemperaturesAndHumidity(sensorIds); + lblLastCheckTimeStamp.BringToFront(); + lblLastCheckTimeStamp.Visible = true; + lblLastCheckTimeStamp.Text = "Last checked: " + DateTime.Now.ToString("HH:mm:ss"); + for (int i = 0; i < sensorData.Count; i++) { rthSensors[i].Temperature = sensorData[i].temperature; diff --git a/HalCheck/HalControle.resx b/HalCheck/HalControle.resx index 2209b59..a8d6d12 100644 --- a/HalCheck/HalControle.resx +++ b/HalCheck/HalControle.resx @@ -157,7 +157,7 @@ 17, 17 - 58 + 25 True