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">
|
<Reference Include="System.Speech">
|
||||||
<HintPath>C:\ControlApp\System.Speech.dll</HintPath>
|
<HintPath>C:\ControlApp\System.Speech.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="Emgu.CV">
|
|
||||||
<HintPath>C:\ControlApp\Emgu.CV.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="Emgu.CV.Bitmap">
|
<Reference Include="Emgu.CV.Bitmap">
|
||||||
<HintPath>C:\ControlApp\Emgu.CV.Bitmap.dll</HintPath>
|
<HintPath>C:\ControlApp\Emgu.CV.Bitmap.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
|
|
|
@ -81,10 +81,17 @@ public class PopUp : Form
|
||||||
});
|
});
|
||||||
Close();
|
Close();
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
run_url = url;
|
||||||
|
}
|
||||||
tmr = new Timer();
|
tmr = new Timer();
|
||||||
tmr.Tick += popup_tick;
|
tmr.Tick += popup_tick;
|
||||||
Random rand = new Random();
|
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);
|
int mins = rand.Next(11);
|
||||||
tmr.Interval = (int)TimeSpan.FromMinutes(mins).TotalMilliseconds;
|
tmr.Interval = (int)TimeSpan.FromMinutes(mins).TotalMilliseconds;
|
||||||
|
@ -95,6 +102,7 @@ public class PopUp : Form
|
||||||
tmr.Interval = (int)TimeSpan.FromSeconds(mins2).TotalMilliseconds;
|
tmr.Interval = (int)TimeSpan.FromSeconds(mins2).TotalMilliseconds;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void AxWindowsMediaPlayer1_ClickEvent(object sender, _WMPOCXEvents_ClickEvent e)
|
private void AxWindowsMediaPlayer1_ClickEvent(object sender, _WMPOCXEvents_ClickEvent e)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue