diff options
| author | lempamo <lempamo@outlook.com> | 2017-10-29 12:04:18 -0400 |
|---|---|---|
| committer | lempamo <lempamo@outlook.com> | 2017-10-29 12:04:18 -0400 |
| commit | 22f94867ba365ec2dd56026684a72905dbe5f5d3 (patch) | |
| tree | e953acaa258191d0f82495bc67ef7ea369a47a57 /Histacom2/OS/WinXPBad/WinClassicIE6Bad.cs | |
| parent | 294dc501a4dd8f4c5b22ec646c8d953229efd5eb (diff) | |
| download | histacom2-22f94867ba365ec2dd56026684a72905dbe5f5d3.tar.gz histacom2-22f94867ba365ec2dd56026684a72905dbe5f5d3.tar.bz2 histacom2-22f94867ba365ec2dd56026684a72905dbe5f5d3.zip | |
random virus labels work!
Diffstat (limited to 'Histacom2/OS/WinXPBad/WinClassicIE6Bad.cs')
| -rw-r--r-- | Histacom2/OS/WinXPBad/WinClassicIE6Bad.cs | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/Histacom2/OS/WinXPBad/WinClassicIE6Bad.cs b/Histacom2/OS/WinXPBad/WinClassicIE6Bad.cs index c4740fc..dfce481 100644 --- a/Histacom2/OS/WinXPBad/WinClassicIE6Bad.cs +++ b/Histacom2/OS/WinXPBad/WinClassicIE6Bad.cs @@ -15,11 +15,10 @@ namespace Histacom2.OS.WinXPBad public partial class WinClassicIE6Bad : UserControl { private bool light = true; - private Random r = new Random(); - private Random r2 = new Random(); + private static readonly Random Rnd = new Random(); - private int maxX; - private int maxY; + private int maxX = Screen.PrimaryScreen.Bounds.Width; + private int maxY = Screen.PrimaryScreen.Bounds.Height; public WinClassicIE6Bad() { @@ -40,19 +39,10 @@ namespace Histacom2.OS.WinXPBad } } - private void labelTimer_Tick(object sender, EventArgs e) - { - VirusLabel v = new VirusLabel(); - v.Location = new Point(r.Next(0, maxX), r2.Next(0, maxY)); - v.Show(); - v.TopMost = true; - v.BringToFront(); - } - private void WinClassicIE6Bad_Load(object sender, EventArgs e) { - maxX = Screen.PrimaryScreen.Bounds.Width; - maxY = Screen.PrimaryScreen.Bounds.Height; + Console.WriteLine($"{maxX}, {maxY}."); + Hack4.VirusDestruction(this); ((WinXP)ParentForm).closeDisabled = true; } |
