aboutsummaryrefslogtreecommitdiff
path: root/BSODPrank/Boot.cs
blob: a42bcff6a568cbc539442d1631d33736231bfbfe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace BSODPrank
{
    public partial class Boot : Form
    {
        public Boot()
        {
            InitializeComponent();
        }

        private async void Boot_Load(object sender, EventArgs e)
        {
            await Task.Delay(5000);
            txtBoot.AppendText("[SYSTEM ERROR] BIOS Cannot Display." + Environment.NewLine);
        }

        private void Boot_KeyDown(object sender, KeyEventArgs e)
        {
            System.IO.Stream str = Properties.Resources.bleep;
            System.Media.SoundPlayer snd = new System.Media.SoundPlayer(str);
            snd.Play();
        }

        private void txtBoot_KeyDown(object sender, KeyEventArgs e)
        {
            System.IO.Stream str = Properties.Resources.bleep;
            System.Media.SoundPlayer snd = new System.Media.SoundPlayer(str);
            snd.Play();
        }
    }
}