diff options
| author | Alee <Alee14498@gmail.com> | 2019-02-10 12:55:48 -0500 |
|---|---|---|
| committer | Alee <Alee14498@gmail.com> | 2019-02-10 12:55:48 -0500 |
| commit | 776ec1a39831bc476caf389c7941188e4890585f (patch) | |
| tree | 7ccab60bf626159bfcaea33c8ab2e54d314e1c14 | |
| parent | 79188a22cf4a3490ee24d904143fef7de604c1ba (diff) | |
| download | BSODPrank-776ec1a39831bc476caf389c7941188e4890585f.tar.gz BSODPrank-776ec1a39831bc476caf389c7941188e4890585f.tar.bz2 BSODPrank-776ec1a39831bc476caf389c7941188e4890585f.zip | |
Added a bunch of things and testing TravisCI
| -rw-r--r-- | .travis.yml | 24 | ||||
| -rw-r--r-- | BSODPrank/BSOD.Designer.cs (renamed from BSODPrank/Form1.Designer.cs) | 2 | ||||
| -rw-r--r-- | BSODPrank/BSOD.cs (renamed from BSODPrank/Form1.cs) | 24 | ||||
| -rw-r--r-- | BSODPrank/BSOD.resx (renamed from BSODPrank/Form1.resx) | 0 | ||||
| -rw-r--r-- | BSODPrank/BSODPrank.csproj | 19 | ||||
| -rw-r--r-- | BSODPrank/Boot.Designer.cs | 74 | ||||
| -rw-r--r-- | BSODPrank/Boot.cs | 40 | ||||
| -rw-r--r-- | BSODPrank/Boot.resx | 120 | ||||
| -rw-r--r-- | BSODPrank/Program.cs | 2 |
9 files changed, 289 insertions, 16 deletions
diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..2007c95 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,24 @@ +language: csharp +mono: none +solution: BSODPrank.sln +dotnet: 4.5.0 +script: +- msbuild /p:Configuration=Debug BSODPrank.sln +- dotnet restore +before_deploy: echo 'Starting the deploy...' +deploy: + provider: releases + api_key: + secure: QBxJAt+PtzRAtG5WT6UHaYNUX4oMvP/RoL/9NQTJxJUjrpKMePjNS/HXn3z1juEuxHGsW6Cq8IzaFqf3+r9qkYe8VrMaU784wTOpJZJKjLt5GrkbQ52deOORctAzfwYCG2djL2G7VRkmaipEyJsefHNjr1QfVhq1JagJ2E9W/TdWP0v0hwSO1x1f2OYi3z5kVBpeqQfTXCRqkH392yvswZeSR5ONv/Asstuoz74dG0xhpDtLcdBS9R6OGVkrZRWmCYcPcH9yDD6yhVYIFbk4HnHShjk1ltcHxHbvpqx6bJaojlKgHhzI54rjE//TcGSLugSjnpXKnI6N6zmj42DOw3OEDKNpzQYkJkDma0DGoIRR9oyMHm1OMFbh+IEd/hSoVXa5C1mpIK1j1Zst8sityuwfvCBPwgGrYmb8+WR0CVdt9FPkea7sgbZmtm7lWDgJ0vLnC7yKAw/hbotUtFTPPuOCK8hMvkcpN8/T+oIzYrTaS2BZn4I+iIFh6vW+ub72mPmo0ZI0X2GlgvMrZ715cs4Q57WsfOMwKwJnCPuNhDLUzYqpPfhe1WDkCKosxrCe5B58VUUhNlzTqHmLNpYJ6zkqVnjDL2OMnl1v6DvY7b5BYYs04khOHoyvZO8ORJvMmjeAqTIbbab8c5yqwPlsgRxe7hjlotCvNB1gdbIXBgU= + file: BSODPrank\bin\Debug\* + on: + repo: Alee14/BSODPrank +after_deploy: echo 'Deploy finished!' +after_success: + - wget https://raw.githubusercontent.com/k3rn31p4nic/travis-ci-discord-webhook/master/send.sh + - chmod +x send.sh + - ./send.sh success $WEBHOOK_URL +after_failure: + - wget https://raw.githubusercontent.com/k3rn31p4nic/travis-ci-discord-webhook/master/send.sh + - chmod +x send.sh + - ./send.sh failure $WEBHOOK_URL
\ No newline at end of file diff --git a/BSODPrank/Form1.Designer.cs b/BSODPrank/BSOD.Designer.cs index e4d2c77..64cd4f2 100644 --- a/BSODPrank/Form1.Designer.cs +++ b/BSODPrank/BSOD.Designer.cs @@ -1,6 +1,6 @@ namespace BSODPrank { - partial class Form1 + partial class BSOD { /// <summary> /// Required designer variable. diff --git a/BSODPrank/Form1.cs b/BSODPrank/BSOD.cs index 9ef6b14..427121f 100644 --- a/BSODPrank/Form1.cs +++ b/BSODPrank/BSOD.cs @@ -4,33 +4,39 @@ using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; +using System.Media; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace BSODPrank { - public partial class Form1 : Form + public partial class BSOD : Form { - public Form1() + public BSOD() { InitializeComponent(); } - private void Form1_Load(object sender, EventArgs e) + private async void Form1_Load(object sender, EventArgs e) { - #if DEBUG +#if DEBUG MessageBox.Show("Debug mode is on."); btnExitDebug.Visible = true; - #endif - //System.Media.SoundPlayer player = new System.Media.SoundPlayer(); - //player.SoundLocation = "Bleep-SoundBible.com-1927126940.wav"; - //player.Play(); +#endif + this.KeyPreview = true; + this.KeyDown += new KeyEventHandler(Form1_KeyDown); + await Task.Delay(5000); + Boot boot = new Boot(); + boot.Show(); + this.Hide(); } private void Form1_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 btnExitDebug_Click(object sender, EventArgs e) diff --git a/BSODPrank/Form1.resx b/BSODPrank/BSOD.resx index 1af7de1..1af7de1 100644 --- a/BSODPrank/Form1.resx +++ b/BSODPrank/BSOD.resx diff --git a/BSODPrank/BSODPrank.csproj b/BSODPrank/BSODPrank.csproj index 78a54b9..fc4f65a 100644 --- a/BSODPrank/BSODPrank.csproj +++ b/BSODPrank/BSODPrank.csproj @@ -45,16 +45,25 @@ <Reference Include="System.Xml" /> </ItemGroup> <ItemGroup> - <Compile Include="Form1.cs"> + <Compile Include="Boot.cs"> <SubType>Form</SubType> </Compile> - <Compile Include="Form1.Designer.cs"> - <DependentUpon>Form1.cs</DependentUpon> + <Compile Include="Boot.Designer.cs"> + <DependentUpon>Boot.cs</DependentUpon> + </Compile> + <Compile Include="BSOD.cs"> + <SubType>Form</SubType> + </Compile> + <Compile Include="BSOD.Designer.cs"> + <DependentUpon>BSOD.cs</DependentUpon> </Compile> <Compile Include="Program.cs" /> <Compile Include="Properties\AssemblyInfo.cs" /> - <EmbeddedResource Include="Form1.resx"> - <DependentUpon>Form1.cs</DependentUpon> + <EmbeddedResource Include="Boot.resx"> + <DependentUpon>Boot.cs</DependentUpon> + </EmbeddedResource> + <EmbeddedResource Include="BSOD.resx"> + <DependentUpon>BSOD.cs</DependentUpon> </EmbeddedResource> <EmbeddedResource Include="Properties\Resources.resx"> <Generator>ResXFileCodeGenerator</Generator> diff --git a/BSODPrank/Boot.Designer.cs b/BSODPrank/Boot.Designer.cs new file mode 100644 index 0000000..27c2098 --- /dev/null +++ b/BSODPrank/Boot.Designer.cs @@ -0,0 +1,74 @@ +namespace BSODPrank +{ + partial class Boot + { + /// <summary> + /// Required designer variable. + /// </summary> + private System.ComponentModel.IContainer components = null; + + /// <summary> + /// Clean up any resources being used. + /// </summary> + /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// <summary> + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// </summary> + private void InitializeComponent() + { + this.txtBoot = new System.Windows.Forms.RichTextBox(); + this.SuspendLayout(); + // + // txtBoot + // + this.txtBoot.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.txtBoot.BackColor = System.Drawing.Color.Black; + this.txtBoot.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.txtBoot.Cursor = System.Windows.Forms.Cursors.Arrow; + this.txtBoot.Font = new System.Drawing.Font("Consolas", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.txtBoot.ForeColor = System.Drawing.Color.White; + this.txtBoot.Location = new System.Drawing.Point(1, 0); + this.txtBoot.Name = "txtBoot"; + this.txtBoot.ReadOnly = true; + this.txtBoot.Size = new System.Drawing.Size(509, 392); + this.txtBoot.TabIndex = 0; + this.txtBoot.Text = ""; + this.txtBoot.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtBoot_KeyDown); + // + // Boot + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.Color.Black; + this.ClientSize = new System.Drawing.Size(510, 393); + this.Controls.Add(this.txtBoot); + this.ForeColor = System.Drawing.Color.White; + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; + this.Name = "Boot"; + this.Text = "Boot"; + this.WindowState = System.Windows.Forms.FormWindowState.Maximized; + this.Load += new System.EventHandler(this.Boot_Load); + this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Boot_KeyDown); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.RichTextBox txtBoot; + } +}
\ No newline at end of file diff --git a/BSODPrank/Boot.cs b/BSODPrank/Boot.cs new file mode 100644 index 0000000..a42bcff --- /dev/null +++ b/BSODPrank/Boot.cs @@ -0,0 +1,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(); + } + } +} diff --git a/BSODPrank/Boot.resx b/BSODPrank/Boot.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/BSODPrank/Boot.resx @@ -0,0 +1,120 @@ +<?xml version="1.0" encoding="utf-8"?> +<root> + <!-- + Microsoft ResX Schema + + Version 2.0 + + The primary goals of this format is to allow a simple XML format + that is mostly human readable. The generation and parsing of the + various data types are done through the TypeConverter classes + associated with the data types. + + Example: + + ... ado.net/XML headers & schema ... + <resheader name="resmimetype">text/microsoft-resx</resheader> + <resheader name="version">2.0</resheader> + <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> + <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> + <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> + <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> + <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> + <value>[base64 mime encoded serialized .NET Framework object]</value> + </data> + <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> + <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> + <comment>This is a comment</comment> + </data> + + There are any number of "resheader" rows that contain simple + name/value pairs. + + Each data row contains a name, and value. The row also contains a + type or mimetype. Type corresponds to a .NET class that support + text/value conversion through the TypeConverter architecture. + Classes that don't support this are serialized and stored with the + mimetype set. + + The mimetype is used for serialized objects, and tells the + ResXResourceReader how to depersist the object. This is currently not + extensible. For a given mimetype the value must be set accordingly: + + Note - application/x-microsoft.net.object.binary.base64 is the format + that the ResXResourceWriter will generate, however the reader can + read any of the formats listed below. + + mimetype: application/x-microsoft.net.object.binary.base64 + value : The object must be serialized with + : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter + : and then encoded with base64 encoding. + + mimetype: application/x-microsoft.net.object.soap.base64 + value : The object must be serialized with + : System.Runtime.Serialization.Formatters.Soap.SoapFormatter + : and then encoded with base64 encoding. + + mimetype: application/x-microsoft.net.object.bytearray.base64 + value : The object must be serialized into a byte array + : using a System.ComponentModel.TypeConverter + : and then encoded with base64 encoding. + --> + <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> + <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> + <xsd:element name="root" msdata:IsDataSet="true"> + <xsd:complexType> + <xsd:choice maxOccurs="unbounded"> + <xsd:element name="metadata"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" /> + </xsd:sequence> + <xsd:attribute name="name" use="required" type="xsd:string" /> + <xsd:attribute name="type" type="xsd:string" /> + <xsd:attribute name="mimetype" type="xsd:string" /> + <xsd:attribute ref="xml:space" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="assembly"> + <xsd:complexType> + <xsd:attribute name="alias" type="xsd:string" /> + <xsd:attribute name="name" type="xsd:string" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="data"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> + <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> + </xsd:sequence> + <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> + <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> + <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> + <xsd:attribute ref="xml:space" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="resheader"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> + </xsd:sequence> + <xsd:attribute name="name" type="xsd:string" use="required" /> + </xsd:complexType> + </xsd:element> + </xsd:choice> + </xsd:complexType> + </xsd:element> + </xsd:schema> + <resheader name="resmimetype"> + <value>text/microsoft-resx</value> + </resheader> + <resheader name="version"> + <value>2.0</value> + </resheader> + <resheader name="reader"> + <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> + <resheader name="writer"> + <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> +</root>
\ No newline at end of file diff --git a/BSODPrank/Program.cs b/BSODPrank/Program.cs index 28455c4..a458684 100644 --- a/BSODPrank/Program.cs +++ b/BSODPrank/Program.cs @@ -16,7 +16,7 @@ namespace BSODPrank { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); - Application.Run(new Form1()); + Application.Run(new BSOD()); } } } |
