diff options
| author | Jamie Mansfield <[email protected]> | 2017-06-11 22:31:02 +0100 |
|---|---|---|
| committer | Jamie Mansfield <[email protected]> | 2017-06-11 22:31:46 +0100 |
| commit | eef1e2b945d0eefd8dfd371d5d3c432608aaae2e (patch) | |
| tree | a631bd10b751685d5ce598bfa07570e07aa827f6 /TimeHACK.Engine/BSODCreator.cs | |
| parent | 4b20ee479f2101b691e2254de3228ce9e60c6377 (diff) | |
| download | histacom2-eef1e2b945d0eefd8dfd371d5d3c432608aaae2e.tar.gz histacom2-eef1e2b945d0eefd8dfd371d5d3c432608aaae2e.tar.bz2 histacom2-eef1e2b945d0eefd8dfd371d5d3c432608aaae2e.zip | |
repo: Improve gitignore and gitattributes
The gitignore has been improved to ignore the following:
- IDE configuration for Visual Studio, VSCode, and Rider
- OS files for macOS, Linux, and Windows
The gitattributes has been improved to properly diff the following:
- Normalise line endings
- Common Files - .md, .png, etc
- C# Files
- Visual Studio Files
Diffstat (limited to 'TimeHACK.Engine/BSODCreator.cs')
| -rw-r--r-- | TimeHACK.Engine/BSODCreator.cs | 108 |
1 files changed, 54 insertions, 54 deletions
diff --git a/TimeHACK.Engine/BSODCreator.cs b/TimeHACK.Engine/BSODCreator.cs index 5f5f480..271087c 100644 --- a/TimeHACK.Engine/BSODCreator.cs +++ b/TimeHACK.Engine/BSODCreator.cs @@ -1,54 +1,54 @@ -using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using System.Windows.Forms;
-using TimeHACK.Engine.Template;
-
-namespace TimeHACK.Engine
-{
- public class BSODCreator
- {
- public static System.Drawing.Text.PrivateFontCollection pfc = new System.Drawing.Text.PrivateFontCollection();
-
- public enum BSODCauses
- {
- Testing,
- WimpEnding,
- PiracyEnding,
- }
-
- public Win9XBSOD throw9XBSOD(bool except, BSODCauses type)
- {
- pfc.AddFontFile(AppDomain.CurrentDomain.BaseDirectory + "\\windows_command_prompt.ttf");
- Win9XBSOD bsod = new Win9XBSOD();
- foreach (Control ctrl in bsod.Controls) {
- ctrl.Font = new System.Drawing.Font(pfc.Families[0], 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((0)));
- }
- bsod.TopMost = true;
- bsod.FormBorderStyle = FormBorderStyle.None;
- bsod.WindowState = FormWindowState.Maximized;
- switch (type)
- {
- case BSODCauses.Testing:
- bsod.textBox1.Text = "This is the testing type of BSOD. Hurrah.";
- break;
- case BSODCauses.WimpEnding:
- bsod.textBox1.Text = "An unknown but fatal exception has occured in the program \"wchat98.exe\". The current processes will be terminated.";
- break;
- case BSODCauses.PiracyEnding:
- bsod.textBox1.Text = "Vital elements of Windows were removed, but recovered. However, your data has been lost.";
- bsod.BackColor = System.Drawing.Color.Black;
- foreach (Control ctrl in bsod.Controls) ctrl.ForeColor = System.Drawing.Color.Silver;
- bsod.label1.BackColor = System.Drawing.Color.Silver;
- bsod.label1.ForeColor = System.Drawing.Color.Black;
- break;
- default:
- break;
- }
- bsod.Show();
- return bsod;
- }
- }
-}
+using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; +using TimeHACK.Engine.Template; + +namespace TimeHACK.Engine +{ + public class BSODCreator + { + public static System.Drawing.Text.PrivateFontCollection pfc = new System.Drawing.Text.PrivateFontCollection(); + + public enum BSODCauses + { + Testing, + WimpEnding, + PiracyEnding, + } + + public Win9XBSOD throw9XBSOD(bool except, BSODCauses type) + { + pfc.AddFontFile(AppDomain.CurrentDomain.BaseDirectory + "\\windows_command_prompt.ttf"); + Win9XBSOD bsod = new Win9XBSOD(); + foreach (Control ctrl in bsod.Controls) { + ctrl.Font = new System.Drawing.Font(pfc.Families[0], 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((0))); + } + bsod.TopMost = true; + bsod.FormBorderStyle = FormBorderStyle.None; + bsod.WindowState = FormWindowState.Maximized; + switch (type) + { + case BSODCauses.Testing: + bsod.textBox1.Text = "This is the testing type of BSOD. Hurrah."; + break; + case BSODCauses.WimpEnding: + bsod.textBox1.Text = "An unknown but fatal exception has occured in the program \"wchat98.exe\". The current processes will be terminated."; + break; + case BSODCauses.PiracyEnding: + bsod.textBox1.Text = "Vital elements of Windows were removed, but recovered. However, your data has been lost."; + bsod.BackColor = System.Drawing.Color.Black; + foreach (Control ctrl in bsod.Controls) ctrl.ForeColor = System.Drawing.Color.Silver; + bsod.label1.BackColor = System.Drawing.Color.Silver; + bsod.label1.ForeColor = System.Drawing.Color.Black; + break; + default: + break; + } + bsod.Show(); + return bsod; + } + } +} |
