From 27203df657be498684c1cf9f912630910faed43e Mon Sep 17 00:00:00 2001 From: Merith Date: Wed, 19 Mar 2025 16:28:15 -0700 Subject: [PATCH] Include Popup Patch --- ControlApp.csproj | 3 --- ControlApp/PopUp.cs | 24 ++++++++++++++++-------- 2 files changed, 16 insertions(+), 11 deletions(-) diff --git a/ControlApp.csproj b/ControlApp.csproj index f6684e1..dd7c30e 100644 --- a/ControlApp.csproj +++ b/ControlApp.csproj @@ -35,9 +35,6 @@ C:\ControlApp\System.Speech.dll - - C:\ControlApp\Emgu.CV.dll - C:\ControlApp\Emgu.CV.Bitmap.dll diff --git a/ControlApp/PopUp.cs b/ControlApp/PopUp.cs index 8762609..393e32c 100644 --- a/ControlApp/PopUp.cs +++ b/ControlApp/PopUp.cs @@ -81,18 +81,26 @@ public class PopUp : Form }); Close(); } + else + { + run_url = url; + } tmr = new Timer(); tmr.Tick += popup_tick; Random rand = new Random(); - if (ConfigurationManager.AppSettings["PopSet"] != null && "Long" == ConfigurationManager.AppSettings["PopSet"].ToString()) + if (ConfigurationManager.AppSettings["PopSet"] != null) { - int mins = rand.Next(11); - tmr.Interval = (int)TimeSpan.FromMinutes(mins).TotalMilliseconds; - } - else - { - int mins2 = rand.Next(55) + 5; - tmr.Interval = (int)TimeSpan.FromSeconds(mins2).TotalMilliseconds; + string lengthtime = ConfigurationManager.AppSettings["PopSet"].ToString(); + if ("Long" == lengthtime) + { + int mins = rand.Next(11); + tmr.Interval = (int)TimeSpan.FromMinutes(mins).TotalMilliseconds; + } + else + { + int mins2 = rand.Next(55) + 5; + tmr.Interval = (int)TimeSpan.FromSeconds(mins2).TotalMilliseconds; + } } }