aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew <alee14498@gmail.com>2018-08-29 12:40:57 -0400
committerAndrew <alee14498@gmail.com>2018-08-29 12:40:57 -0400
commit5b5825ff4491047838ad12df69c6aa40f1af5299 (patch)
tree8aa6e1053357f7c51051a42be6fabca52088e992
parente4e99da54a56bd83dc9a8e04d2220dd454f734f8 (diff)
downloadProject-Silicon-5b5825ff4491047838ad12df69c6aa40f1af5299.tar.gz
Project-Silicon-5b5825ff4491047838ad12df69c6aa40f1af5299.tar.bz2
Project-Silicon-5b5825ff4491047838ad12df69c6aa40f1af5299.zip
Added licenses and added panels on boot and crash
-rw-r--r--PortEngine/QuantumAPI/Sites/EarnSite.Designer.cs86
-rw-r--r--PortEngine/QuantumAPI/Sites/EarnSite.cs20
-rw-r--r--PortEngine/QuantumAPI/Sites/EarnSite.resx120
-rw-r--r--Project Ports/Boot.Designer.cs24
-rw-r--r--Project Ports/Boot.cs1
-rw-r--r--Project Ports/Crash.Designer.cs28
-rw-r--r--Project Ports/Crash.cs5
-rw-r--r--Project Ports/DebugMode.cs21
-rw-r--r--Project Ports/hijackScreen.cs21
9 files changed, 310 insertions, 16 deletions
diff --git a/PortEngine/QuantumAPI/Sites/EarnSite.Designer.cs b/PortEngine/QuantumAPI/Sites/EarnSite.Designer.cs
new file mode 100644
index 0000000..a988169
--- /dev/null
+++ b/PortEngine/QuantumAPI/Sites/EarnSite.Designer.cs
@@ -0,0 +1,86 @@
+namespace PortEngine
+{
+ partial class EarnSite
+ {
+ /// <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 Component 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.btnOpenGTN = new System.Windows.Forms.Button();
+ this.btnLaunchDTA = new System.Windows.Forms.Button();
+ this.label1 = new System.Windows.Forms.Label();
+ this.SuspendLayout();
+ //
+ // btnOpenGTN
+ //
+ this.btnOpenGTN.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.btnOpenGTN.Location = new System.Drawing.Point(30, 75);
+ this.btnOpenGTN.Name = "btnOpenGTN";
+ this.btnOpenGTN.Size = new System.Drawing.Size(160, 39);
+ this.btnOpenGTN.TabIndex = 0;
+ this.btnOpenGTN.Text = "Guess the Number";
+ this.btnOpenGTN.UseVisualStyleBackColor = true;
+ //
+ // btnLaunchDTA
+ //
+ this.btnLaunchDTA.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.btnLaunchDTA.Location = new System.Drawing.Point(225, 75);
+ this.btnLaunchDTA.Name = "btnLaunchDTA";
+ this.btnLaunchDTA.Size = new System.Drawing.Size(160, 39);
+ this.btnLaunchDTA.TabIndex = 1;
+ this.btnLaunchDTA.Text = "Dodge the Ad";
+ this.btnLaunchDTA.UseVisualStyleBackColor = true;
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Font = new System.Drawing.Font("Consolas", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.label1.Location = new System.Drawing.Point(328, 17);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(154, 24);
+ this.label1.TabIndex = 2;
+ this.label1.Text = "PortOS Games";
+ //
+ // EarnSite
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.label1);
+ this.Controls.Add(this.btnLaunchDTA);
+ this.Controls.Add(this.btnOpenGTN);
+ this.Name = "EarnSite";
+ this.Size = new System.Drawing.Size(842, 452);
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Button btnOpenGTN;
+ private System.Windows.Forms.Button btnLaunchDTA;
+ private System.Windows.Forms.Label label1;
+ }
+}
diff --git a/PortEngine/QuantumAPI/Sites/EarnSite.cs b/PortEngine/QuantumAPI/Sites/EarnSite.cs
new file mode 100644
index 0000000..6b56782
--- /dev/null
+++ b/PortEngine/QuantumAPI/Sites/EarnSite.cs
@@ -0,0 +1,20 @@
+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;
+
+namespace PortEngine
+{
+ public partial class EarnSite : UserControl
+ {
+ public EarnSite()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/PortEngine/QuantumAPI/Sites/EarnSite.resx b/PortEngine/QuantumAPI/Sites/EarnSite.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/PortEngine/QuantumAPI/Sites/EarnSite.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/Project Ports/Boot.Designer.cs b/Project Ports/Boot.Designer.cs
index e07b929..fdf84db 100644
--- a/Project Ports/Boot.Designer.cs
+++ b/Project Ports/Boot.Designer.cs
@@ -29,6 +29,8 @@
private void InitializeComponent()
{
this.txtBoot = new System.Windows.Forms.RichTextBox();
+ this.panel1 = new System.Windows.Forms.Panel();
+ this.panel1.SuspendLayout();
this.SuspendLayout();
//
// txtBoot
@@ -40,7 +42,7 @@
this.txtBoot.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.txtBoot.Cursor = System.Windows.Forms.Cursors.IBeam;
this.txtBoot.ForeColor = System.Drawing.Color.White;
- this.txtBoot.Location = new System.Drawing.Point(12, 12);
+ this.txtBoot.Location = new System.Drawing.Point(11, 12);
this.txtBoot.Name = "txtBoot";
this.txtBoot.ReadOnly = true;
this.txtBoot.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.None;
@@ -48,20 +50,33 @@
this.txtBoot.TabIndex = 0;
this.txtBoot.Text = "";
//
+ // panel1
+ //
+ this.panel1.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.panel1.BackColor = System.Drawing.Color.Black;
+ this.panel1.Controls.Add(this.txtBoot);
+ this.panel1.Location = new System.Drawing.Point(-1, 0);
+ this.panel1.Name = "panel1";
+ this.panel1.Size = new System.Drawing.Size(590, 460);
+ this.panel1.TabIndex = 1;
+ //
// Boot
//
this.AutoScaleDimensions = new System.Drawing.SizeF(10F, 22F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.BackColor = System.Drawing.Color.Black;
+ this.BackColor = System.Drawing.Color.White;
this.ClientSize = new System.Drawing.Size(589, 453);
- this.Controls.Add(this.txtBoot);
+ this.Controls.Add(this.panel1);
this.Font = new System.Drawing.Font("Consolas", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.ForeColor = System.Drawing.Color.White;
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
- this.Margin = new System.Windows.Forms.Padding(5, 5, 5, 5);
+ this.Margin = new System.Windows.Forms.Padding(5);
this.Name = "Boot";
this.Text = "Boot";
this.Load += new System.EventHandler(this.Boot_Load);
+ this.panel1.ResumeLayout(false);
this.ResumeLayout(false);
}
@@ -69,5 +84,6 @@
#endregion
private System.Windows.Forms.RichTextBox txtBoot;
+ private System.Windows.Forms.Panel panel1;
}
} \ No newline at end of file
diff --git a/Project Ports/Boot.cs b/Project Ports/Boot.cs
index 4aa9380..351137a 100644
--- a/Project Ports/Boot.cs
+++ b/Project Ports/Boot.cs
@@ -20,7 +20,6 @@ namespace Project_Ports
private void Boot_Load(object sender, EventArgs e)
{
- this.BringToFront();
Thread.Sleep(2000);
txtBoot.AppendText("PortOS is now booting...");
Thread.Sleep(2000);
diff --git a/Project Ports/Crash.Designer.cs b/Project Ports/Crash.Designer.cs
index 5f3906a..8c9d8d7 100644
--- a/Project Ports/Crash.Designer.cs
+++ b/Project Ports/Crash.Designer.cs
@@ -30,6 +30,8 @@
{
this.txtCrash = new System.Windows.Forms.RichTextBox();
this.button1 = new System.Windows.Forms.Button();
+ this.panel1 = new System.Windows.Forms.Panel();
+ this.panel1.SuspendLayout();
this.SuspendLayout();
//
// txtCrash
@@ -42,12 +44,12 @@
this.txtCrash.Cursor = System.Windows.Forms.Cursors.IBeam;
this.txtCrash.Font = new System.Drawing.Font("Consolas", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.txtCrash.ForeColor = System.Drawing.Color.Red;
- this.txtCrash.Location = new System.Drawing.Point(12, 12);
+ this.txtCrash.Location = new System.Drawing.Point(21, 15);
this.txtCrash.MaxLength = 32767;
this.txtCrash.Name = "txtCrash";
this.txtCrash.ReadOnly = true;
this.txtCrash.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.None;
- this.txtCrash.Size = new System.Drawing.Size(693, 441);
+ this.txtCrash.Size = new System.Drawing.Size(684, 439);
this.txtCrash.TabIndex = 0;
this.txtCrash.Text = "PortOS.GUI has crashed...\nSYSTEM ERROR: CRASHED\nRebooting PortOS....";
//
@@ -55,7 +57,7 @@
//
this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button1.ForeColor = System.Drawing.Color.White;
- this.button1.Location = new System.Drawing.Point(553, 430);
+ this.button1.Location = new System.Drawing.Point(533, 417);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(152, 23);
this.button1.TabIndex = 1;
@@ -63,19 +65,32 @@
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
+ // panel1
+ //
+ this.panel1.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.panel1.BackColor = System.Drawing.Color.Black;
+ this.panel1.Controls.Add(this.button1);
+ this.panel1.Controls.Add(this.txtCrash);
+ this.panel1.Location = new System.Drawing.Point(0, -1);
+ this.panel1.Name = "panel1";
+ this.panel1.Size = new System.Drawing.Size(717, 467);
+ this.panel1.TabIndex = 2;
+ //
// Crash
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.BackColor = System.Drawing.Color.Black;
+ this.BackColor = System.Drawing.Color.White;
this.ClientSize = new System.Drawing.Size(717, 465);
- this.Controls.Add(this.button1);
- this.Controls.Add(this.txtCrash);
+ this.Controls.Add(this.panel1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.Name = "Crash";
this.Text = "Crash";
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
this.Load += new System.EventHandler(this.Crash_Load);
+ this.panel1.ResumeLayout(false);
this.ResumeLayout(false);
}
@@ -84,5 +99,6 @@
private System.Windows.Forms.RichTextBox txtCrash;
private System.Windows.Forms.Button button1;
+ private System.Windows.Forms.Panel panel1;
}
} \ No newline at end of file
diff --git a/Project Ports/Crash.cs b/Project Ports/Crash.cs
index 346aa40..ac78359 100644
--- a/Project Ports/Crash.cs
+++ b/Project Ports/Crash.cs
@@ -21,8 +21,7 @@ namespace Project_Ports
private void Crash_Load(object sender, EventArgs e)
{
- this.BringToFront();
- /*
+ Thread.Sleep(2000);
if (Properties.Settings.Default.hijacked2 == true)
{
MessageBox.Show("Coming soon!");
@@ -32,7 +31,7 @@ namespace Project_Ports
Boot boot = new Boot();
boot.Show();
this.Close();
- }*/
+ }
}
private void button1_Click(object sender, EventArgs e)
diff --git a/Project Ports/DebugMode.cs b/Project Ports/DebugMode.cs
index e9e4e3a..e42472c 100644
--- a/Project Ports/DebugMode.cs
+++ b/Project Ports/DebugMode.cs
@@ -1,4 +1,23 @@
-using System;
+/************************************************************************
+ *
+ * Project Ports
+ * Copyright (C) 2018 UniverseDG
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
+ *
+ **************************************************************************/
+using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
diff --git a/Project Ports/hijackScreen.cs b/Project Ports/hijackScreen.cs
index 5855d17..97e5e33 100644
--- a/Project Ports/hijackScreen.cs
+++ b/Project Ports/hijackScreen.cs
@@ -1,4 +1,23 @@
-using System;
+/************************************************************************
+ *
+ * Project Ports
+ * Copyright (C) 2018 UniverseDG
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
+ *
+ **************************************************************************/
+using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;