aboutsummaryrefslogtreecommitdiff
path: root/Histacom2/OS/WinXPBad/WinClassicIE6Bad.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Histacom2/OS/WinXPBad/WinClassicIE6Bad.cs')
-rw-r--r--Histacom2/OS/WinXPBad/WinClassicIE6Bad.cs20
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;
}