From e6f52b0c7c73b2789bfdc86fbbb5fa5d90e352fd Mon Sep 17 00:00:00 2001 From: radiomanV Date: Sun, 12 Aug 2018 21:57:06 +0300 Subject: [PATCH] Update firmware updater --- TL866_Updater/C#/mainform.Designer.cs | 4 ++++ TL866_Updater/C#/mainform.cs | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/TL866_Updater/C#/mainform.Designer.cs b/TL866_Updater/C#/mainform.Designer.cs index ee84f7a..7bd1cc2 100644 --- a/TL866_Updater/C#/mainform.Designer.cs +++ b/TL866_Updater/C#/mainform.Designer.cs @@ -551,6 +551,10 @@ this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "TL866 firmware updater"; this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Form1_FormClosing); + this.SizeChanged += new System.EventHandler(this.MainForm_SizeChanged); + this.Resize += new System.EventHandler(this.MainForm_SizeChanged); + this.StyleChanged += new System.EventHandler(this.MainForm_SizeChanged); + this.SystemColorsChanged += new System.EventHandler(this.MainForm_SizeChanged); this.TabPage2.ResumeLayout(false); this.GroupBox3.ResumeLayout(false); this.GroupBox3.PerformLayout(); diff --git a/TL866_Updater/C#/mainform.cs b/TL866_Updater/C#/mainform.cs index 806d931..21bc6b1 100644 --- a/TL866_Updater/C#/mainform.cs +++ b/TL866_Updater/C#/mainform.cs @@ -60,6 +60,11 @@ namespace TL866 usbdevice.RegisterForDeviceChange(false, this); } + private void MainForm_SizeChanged(object sender, EventArgs e) + { + TabPage1.Refresh(); + TabPage2.Refresh(); + } private void BtnInput_Click(object sender, EventArgs e) {