diff options
| author | FloppyDiskDrive <ibmpcdos5@gmail.com> | 2017-09-17 21:24:14 -0500 |
|---|---|---|
| committer | FloppyDiskDrive <ibmpcdos5@gmail.com> | 2017-09-17 21:24:14 -0500 |
| commit | 7f5d0c3915d178e4d412a0b1a9b48baf058b2afc (patch) | |
| tree | 6761bc6acfa1a11b2876cc0558cc7220151702da /Histacom2/OS/Win95/Win95Apps/12padamsViruses/StartRunner95.cs | |
| parent | 8a6bebdad321a0f357f5c6cad621b8313b19da03 (diff) | |
| download | histacom2-7f5d0c3915d178e4d412a0b1a9b48baf058b2afc.tar.gz histacom2-7f5d0c3915d178e4d412a0b1a9b48baf058b2afc.tar.bz2 histacom2-7f5d0c3915d178e4d412a0b1a9b48baf058b2afc.zip | |
Added Error Blaster 95, see Description for details
Error Blaster is updated with a new type: "Memory Leak." After the
messageGen timer interval hits 300, the PC BSODs.
Start Runner is also in there, however it is not functional due to
unknown reasons.
Diffstat (limited to 'Histacom2/OS/Win95/Win95Apps/12padamsViruses/StartRunner95.cs')
| -rw-r--r-- | Histacom2/OS/Win95/Win95Apps/12padamsViruses/StartRunner95.cs | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/Histacom2/OS/Win95/Win95Apps/12padamsViruses/StartRunner95.cs b/Histacom2/OS/Win95/Win95Apps/12padamsViruses/StartRunner95.cs new file mode 100644 index 0000000..579f001 --- /dev/null +++ b/Histacom2/OS/Win95/Win95Apps/12padamsViruses/StartRunner95.cs @@ -0,0 +1,65 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Drawing; +using System.Data; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; +using Histacom2.Engine; +using System.Drawing.Text; +using static Histacom2.Engine.SaveSystem; +using Histacom2.OS.Win95; + +namespace Histacom2.OS.Win95.Win95Apps._12padamsViruses +{ + public partial class StartRunner95 : UserControl + { + Point beginLocation; + int taskbarLength; + int xLocation; + Timer moveStart = new Timer(); + private static PrivateFontCollection pfc = new PrivateFontCollection(); + Windows95 w = new Windows95(); + public StartRunner95() + { + InitializeComponent(); + pfc.AddFontFile(DataDirectory + "\\LeviWindows.ttf"); + label2.Font = new Font(pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0))); + beginLocation = w.startbutton.Location; + moveStart.Interval = 300; + moveStart.Tick += MoveStart_Tick; + + } + + private void MoveStart_Tick(object sender, EventArgs e) + { + int taskbarWidth = w.taskbar.Size.Width; + Random random = new Random(); + xLocation = random.Next(1, taskbarWidth); + w.startbutton.Location = new Point(xLocation, w.startbutton.Location.Y); + } + + private void classicButton1_Click(object sender, EventArgs e) + { + moveStart.Start(); + } + + private void StartRunner95_Load(object sender, EventArgs e) + { + + } + + private void classicButton2_Click(object sender, EventArgs e) + { + moveStart.Stop(); + w.startbutton.Location = beginLocation; + } + + private void classicButton3_Click(object sender, EventArgs e) + { + ParentForm.Close(); + } + } +} |
