From 0d59b3fd8050b0f0766be47ed5527d96bd4bf2f7 Mon Sep 17 00:00:00 2001 From: yangle <admin@YINMOU> Date: 星期一, 07 四月 2025 09:38:43 +0800 Subject: [PATCH] 斯莫尔插件优化 --- WFormSynchronizeData_SMR/WFormSynchronizeData_SMR/Form1.Designer.cs | 17 +++++++++-------- 1 files changed, 9 insertions(+), 8 deletions(-) diff --git a/WFormSynchronizeData_SMR/WFormSynchronizeData_SMR/Form1.Designer.cs b/WFormSynchronizeData_SMR/WFormSynchronizeData_SMR/Form1.Designer.cs index 4486394..8f95ea5 100644 --- a/WFormSynchronizeData_SMR/WFormSynchronizeData_SMR/Form1.Designer.cs +++ b/WFormSynchronizeData_SMR/WFormSynchronizeData_SMR/Form1.Designer.cs @@ -30,9 +30,16 @@ private void InitializeComponent() { this.components = new System.ComponentModel.Container(); + System.Windows.Forms.Timer timer1; this.btnReadData = new System.Windows.Forms.Button(); - this.timer1 = new System.Windows.Forms.Timer(this.components); + timer1 = new System.Windows.Forms.Timer(this.components); this.SuspendLayout(); + // + // timer1 + // + timer1.Enabled = true; + timer1.Interval = 5000; + timer1.Tick += new System.EventHandler(this.timer1_Tick); // // btnReadData // @@ -44,12 +51,6 @@ this.btnReadData.UseVisualStyleBackColor = true; this.btnReadData.Click += new System.EventHandler(this.btnReadData_Click); // - // timer1 - // - this.timer1.Enabled = true; - this.timer1.Interval = 60000; - this.timer1.Tick += new System.EventHandler(this.timer1_Tick); - // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 18F); @@ -58,6 +59,7 @@ this.Controls.Add(this.btnReadData); this.Name = "Form1"; this.Text = "Form1"; + this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Form1_FormClosing); this.ResumeLayout(false); } @@ -65,7 +67,6 @@ #endregion private System.Windows.Forms.Button btnReadData; - private System.Windows.Forms.Timer timer1; } } -- Gitblit v1.9.1