diff options
Diffstat (limited to 'Histacom2/OS/WinXPBad/VirusLabel.cs')
| -rw-r--r-- | Histacom2/OS/WinXPBad/VirusLabel.cs | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/Histacom2/OS/WinXPBad/VirusLabel.cs b/Histacom2/OS/WinXPBad/VirusLabel.cs index e2af37a..7ab3ee1 100644 --- a/Histacom2/OS/WinXPBad/VirusLabel.cs +++ b/Histacom2/OS/WinXPBad/VirusLabel.cs @@ -1,8 +1,8 @@ using System; using System.Collections.Generic; using System.ComponentModel; -using System.Drawing; using System.Data; +using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; @@ -10,9 +10,9 @@ using System.Windows.Forms; namespace Histacom2.OS.WinXPBad { - public partial class VirusLabel : UserControl + public partial class VirusLabel : Form { - private bool white = true; + private bool light = true; public VirusLabel() { @@ -21,15 +21,13 @@ namespace Histacom2.OS.WinXPBad private void timer1_Tick(object sender, EventArgs e) { - if (white) + if (light) { label1.ForeColor = Color.Black; - white = false; - } - else - { + light = false; + } else { label1.ForeColor = Color.PaleGreen; - white = true; + light = true; } } } |
