Include Popup Patch
This commit is contained in:
parent
6b99b60603
commit
27203df657
2 changed files with 16 additions and 11 deletions
|
@ -35,9 +35,6 @@
|
|||
<Reference Include="System.Speech">
|
||||
<HintPath>C:\ControlApp\System.Speech.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Emgu.CV">
|
||||
<HintPath>C:\ControlApp\Emgu.CV.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Emgu.CV.Bitmap">
|
||||
<HintPath>C:\ControlApp\Emgu.CV.Bitmap.dll</HintPath>
|
||||
</Reference>
|
||||
|
|
|
@ -81,10 +81,17 @@ 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)
|
||||
{
|
||||
string lengthtime = ConfigurationManager.AppSettings["PopSet"].ToString();
|
||||
if ("Long" == lengthtime)
|
||||
{
|
||||
int mins = rand.Next(11);
|
||||
tmr.Interval = (int)TimeSpan.FromMinutes(mins).TotalMilliseconds;
|
||||
|
@ -95,6 +102,7 @@ public class PopUp : Form
|
|||
tmr.Interval = (int)TimeSpan.FromSeconds(mins2).TotalMilliseconds;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void AxWindowsMediaPlayer1_ClickEvent(object sender, _WMPOCXEvents_ClickEvent e)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue