From 0b84aedeb932a6794bb1321573c8ee53fe69f684 Mon Sep 17 00:00:00 2001 From: Graham Date: Wed, 5 Aug 2020 09:57:51 -0400 Subject: [PATCH] manually restored pollTimer, designer deleted it! --- ModbusMaster/MasterForm.Designer.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ModbusMaster/MasterForm.Designer.cs b/ModbusMaster/MasterForm.Designer.cs index 7312217..430afb3 100644 --- a/ModbusMaster/MasterForm.Designer.cs +++ b/ModbusMaster/MasterForm.Designer.cs @@ -24,6 +24,7 @@ /// private void InitializeComponent() { + this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MasterForm)); this.groupBoxFunctions = new System.Windows.Forms.GroupBox(); this.txtPollDelay = new System.Windows.Forms.TextBox(); @@ -38,6 +39,7 @@ this.btnWriteSingleCoil = new System.Windows.Forms.Button(); this.buttonDisconnect = new System.Windows.Forms.Button(); this.btnConnect = new System.Windows.Forms.Button(); + this.pollTimer = new System.Windows.Forms.Timer(this.components); this.groupBox4.SuspendLayout(); this.groupBox3.SuspendLayout(); this.grpStart.SuspendLayout(); @@ -204,6 +206,11 @@ this.btnConnect.Text = "Connect"; this.btnConnect.Click += new System.EventHandler(this.BtnConnectClick); // + // pollTimer + // + this.pollTimer.Interval = 2000; + this.pollTimer.Tick += new System.EventHandler(this.pollTimer_Tick); + // // MasterForm // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);