From 129cc4373485a1d1151442ca250ddd8b0d3a8a15 Mon Sep 17 00:00:00 2001 From: Andrew Date: Mon, 27 Aug 2018 19:19:24 -0400 Subject: [PATCH] Added a new QuantumSite and added a little secret egg (kicks and giggles) --- PortEngine/PortEngine.csproj | 9 ++ PortEngine/QuantumAPI/QuantumAPI.cs | 3 + .../Sites/PortOSDefender.Designer.cs | 118 ++++++++++++++++ PortEngine/QuantumAPI/Sites/PortOSDefender.cs | 25 ++++ .../QuantumAPI/Sites/PortOSDefender.resx | 131 ++++++++++++++++++ .../QuantumAPI/Sites/QuantumISP.Designer.cs | 1 + PortEngine/QuantumAPI/Sites/QuantumISP.cs | 5 + Project Ports/AboutPorts.Designer.cs | 4 + Project Ports/Programs/ChatApp.Designer.cs | 3 + Project Ports/Programs/ChatApp.cs | 2 - Project Ports/Programs/ChatApp.resx | 3 + 11 files changed, 302 insertions(+), 2 deletions(-) create mode 100644 PortEngine/QuantumAPI/Sites/PortOSDefender.Designer.cs create mode 100644 PortEngine/QuantumAPI/Sites/PortOSDefender.cs create mode 100644 PortEngine/QuantumAPI/Sites/PortOSDefender.resx diff --git a/PortEngine/PortEngine.csproj b/PortEngine/PortEngine.csproj index b4c8ef8..544ab0e 100644 --- a/PortEngine/PortEngine.csproj +++ b/PortEngine/PortEngine.csproj @@ -69,6 +69,12 @@ 404Error.cs + + UserControl + + + PortOSDefender.cs + UserControl @@ -94,6 +100,9 @@ Malwarebits.cs + + PortOSDefender.cs + QuantumISP.cs diff --git a/PortEngine/QuantumAPI/QuantumAPI.cs b/PortEngine/QuantumAPI/QuantumAPI.cs index f103255..43d15ee 100644 --- a/PortEngine/QuantumAPI/QuantumAPI.cs +++ b/PortEngine/QuantumAPI/QuantumAPI.cs @@ -27,6 +27,9 @@ namespace PortEngine case "malwarebits.qt": loadSite(new Malwarebits(), pnlLoadSiteHere); break; + case "portosdefender.qt": + loadSite(new QuantumAPI.Sites.PortOSDefender(), pnlLoadSiteHere); + break; default: loadSite(new QuantumAPI.Sites._404Error(), pnlLoadSiteHere); break; diff --git a/PortEngine/QuantumAPI/Sites/PortOSDefender.Designer.cs b/PortEngine/QuantumAPI/Sites/PortOSDefender.Designer.cs new file mode 100644 index 0000000..4a3b347 --- /dev/null +++ b/PortEngine/QuantumAPI/Sites/PortOSDefender.Designer.cs @@ -0,0 +1,118 @@ +namespace PortEngine.QuantumAPI.Sites +{ + partial class PortOSDefender + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Component Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(PortOSDefender)); + this.posLogo = new System.Windows.Forms.Label(); + this.btnSignin = new System.Windows.Forms.Button(); + this.rtxtNews = new System.Windows.Forms.RichTextBox(); + this.lbNews = new System.Windows.Forms.Label(); + this.label1 = new System.Windows.Forms.Label(); + this.SuspendLayout(); + // + // posLogo + // + this.posLogo.AutoSize = true; + this.posLogo.Font = new System.Drawing.Font("Consolas", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.posLogo.ForeColor = System.Drawing.Color.Green; + this.posLogo.Location = new System.Drawing.Point(21, 18); + this.posLogo.Name = "posLogo"; + this.posLogo.Size = new System.Drawing.Size(190, 24); + this.posLogo.TabIndex = 0; + this.posLogo.Text = "PortOS Defender"; + // + // btnSignin + // + this.btnSignin.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btnSignin.Location = new System.Drawing.Point(725, 21); + this.btnSignin.Name = "btnSignin"; + this.btnSignin.Size = new System.Drawing.Size(75, 23); + this.btnSignin.TabIndex = 1; + this.btnSignin.Text = "Sign In"; + this.btnSignin.UseVisualStyleBackColor = true; + // + // rtxtNews + // + this.rtxtNews.BackColor = System.Drawing.Color.White; + this.rtxtNews.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.rtxtNews.Cursor = System.Windows.Forms.Cursors.Arrow; + this.rtxtNews.Font = new System.Drawing.Font("Calibri", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.rtxtNews.Location = new System.Drawing.Point(25, 113); + this.rtxtNews.Name = "rtxtNews"; + this.rtxtNews.ReadOnly = true; + this.rtxtNews.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.Vertical; + this.rtxtNews.Size = new System.Drawing.Size(200, 288); + this.rtxtNews.TabIndex = 2; + this.rtxtNews.Text = resources.GetString("rtxtNews.Text"); + // + // lbNews + // + this.lbNews.AutoSize = true; + this.lbNews.Font = new System.Drawing.Font("Consolas", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.lbNews.Location = new System.Drawing.Point(21, 91); + this.lbNews.Name = "lbNews"; + this.lbNews.Size = new System.Drawing.Size(108, 19); + this.lbNews.TabIndex = 3; + this.lbNews.Text = "Latest News"; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(253, 91); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(71, 13); + this.label1.TabIndex = 4; + this.label1.Text = "Who are we?"; + // + // PortOSDefender + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.Controls.Add(this.label1); + this.Controls.Add(this.lbNews); + this.Controls.Add(this.rtxtNews); + this.Controls.Add(this.btnSignin); + this.Controls.Add(this.posLogo); + this.Name = "PortOSDefender"; + this.Size = new System.Drawing.Size(842, 452); + this.Load += new System.EventHandler(this.PortOSDefender_Load); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.Label posLogo; + private System.Windows.Forms.Button btnSignin; + private System.Windows.Forms.RichTextBox rtxtNews; + private System.Windows.Forms.Label lbNews; + private System.Windows.Forms.Label label1; + } +} diff --git a/PortEngine/QuantumAPI/Sites/PortOSDefender.cs b/PortEngine/QuantumAPI/Sites/PortOSDefender.cs new file mode 100644 index 0000000..948edee --- /dev/null +++ b/PortEngine/QuantumAPI/Sites/PortOSDefender.cs @@ -0,0 +1,25 @@ +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.QuantumAPI.Sites +{ + public partial class PortOSDefender : UserControl + { + public PortOSDefender() + { + InitializeComponent(); + } + + private void PortOSDefender_Load(object sender, EventArgs e) + { + + } + } +} diff --git a/PortEngine/QuantumAPI/Sites/PortOSDefender.resx b/PortEngine/QuantumAPI/Sites/PortOSDefender.resx new file mode 100644 index 0000000..31d45fb --- /dev/null +++ b/PortEngine/QuantumAPI/Sites/PortOSDefender.resx @@ -0,0 +1,131 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque dictum placerat ipsum, nec tincidunt lectus. Sed scelerisque, magna at elementum congue, risus lacus suscipit neque, mollis consectetur eros tellus eu ligula. Ut ante dui, laoreet id consequat sit amet, sollicitudin et magna. Etiam maximus gravida neque id dictum. Suspendisse rhoncus nisl non lacus mattis, eget fringilla dui sodales. Pellentesque auctor dictum faucibus. Duis dignissim dolor sed tincidunt mollis. Vivamus eu lorem hendrerit, imperdiet quam eu, fringilla sem. Donec eu viverra urna, ac volutpat massa. + +Etiam mollis nisl eu odio ullamcorper, quis porta nisl euismod. Phasellus eu orci eget erat aliquam convallis ac vel erat. Aenean maximus nibh id nunc luctus, vel sodales ex ultrices. Vestibulum imperdiet odio vel nisl pulvinar gravida. Nam auctor magna eget justo accumsan faucibus. Morbi consequat, lectus ac feugiat suscipit, ante sapien imperdiet lacus, nec tincidunt nulla quam congue ipsum. Fusce iaculis nibh sapien, placerat varius tellus mollis eget. Aenean quis libero leo. Aliquam vulputate purus lorem, vitae pretium leo accumsan vel. Aenean ut ipsum lobortis, semper lectus et, facilisis lorem. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Aenean bibendum porta consectetur. Morbi venenatis lobortis nisl. Nulla nec pellentesque lacus, sed sagittis felis. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Morbi laoreet quis dolor a sagittis. + +Integer in suscipit mauris, non pulvinar nibh. Suspendisse faucibus lobortis nunc in facilisis. Duis risus nisi, imperdiet nec egestas non, feugiat in dolor. Duis bibendum, tellus et efficitur suscipit, nunc ante dictum tortor, sed gravida leo velit ac risus. Vestibulum eget nulla mollis, ultricies neque sit amet, iaculis turpis. Donec auctor ultricies lacus, quis placerat mauris malesuada non. Etiam non nisi ut mauris tristique placerat et ut eros. Nunc pharetra mattis porttitor. Nulla mattis feugiat neque at cursus. Aenean velit ligula, porttitor a justo at, egestas fringilla est. + +Nulla facilisi. Donec sit amet porttitor mauris. Aliquam in mollis odio. Aliquam vel nulla luctus, pellentesque lectus sit amet, commodo purus. Aliquam vitae rutrum mi, et cursus dui. Fusce fermentum urna in lorem faucibus vulputate. Nunc tincidunt tempor lorem, eget dignissim nulla sodales sit amet. Suspendisse gravida congue risus, nec egestas quam eleifend eget. Proin tincidunt dui sit amet turpis scelerisque varius. Fusce interdum nulla id rutrum ullamcorper. + +Nam convallis massa velit, vel hendrerit neque molestie ac. Sed sollicitudin pretium metus sed aliquet. Vivamus vestibulum diam eget euismod posuere. Nunc neque lacus, pretium id suscipit ac, luctus at est. Mauris hendrerit nibh id ante dictum, accumsan mollis purus blandit. Sed a accumsan sapien. Nullam et ante ultrices, porttitor nisi commodo, tristique lorem. Morbi turpis ex, bibendum at faucibus quis, mollis non enim. Praesent condimentum dignissim est, sed scelerisque lorem iaculis vitae. + + \ No newline at end of file diff --git a/PortEngine/QuantumAPI/Sites/QuantumISP.Designer.cs b/PortEngine/QuantumAPI/Sites/QuantumISP.Designer.cs index c1ceb18..c08028b 100644 --- a/PortEngine/QuantumAPI/Sites/QuantumISP.Designer.cs +++ b/PortEngine/QuantumAPI/Sites/QuantumISP.Designer.cs @@ -75,6 +75,7 @@ this.btnUnsub.TabIndex = 3; this.btnUnsub.Text = "Unsubscribe"; this.btnUnsub.UseVisualStyleBackColor = true; + this.btnUnsub.Click += new System.EventHandler(this.btnUnsub_Click); // // lblBookmarks // diff --git a/PortEngine/QuantumAPI/Sites/QuantumISP.cs b/PortEngine/QuantumAPI/Sites/QuantumISP.cs index 2d23b1c..73db16f 100644 --- a/PortEngine/QuantumAPI/Sites/QuantumISP.cs +++ b/PortEngine/QuantumAPI/Sites/QuantumISP.cs @@ -21,5 +21,10 @@ namespace PortEngine.QuantumAPI.Sites { } + + private void btnUnsub_Click(object sender, EventArgs e) + { + MessageBox.Show("Hey! Why do you want to unsub us?\r*inserts a game over window*"); + } } } diff --git a/Project Ports/AboutPorts.Designer.cs b/Project Ports/AboutPorts.Designer.cs index 046ca5a..16532e8 100644 --- a/Project Ports/AboutPorts.Designer.cs +++ b/Project Ports/AboutPorts.Designer.cs @@ -37,7 +37,11 @@ this.richTextBox1.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.richTextBox1.BackColor = System.Drawing.Color.White; + this.richTextBox1.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.richTextBox1.Cursor = System.Windows.Forms.Cursors.Arrow; this.richTextBox1.Enabled = false; + this.richTextBox1.ForeColor = System.Drawing.Color.Black; this.richTextBox1.Location = new System.Drawing.Point(3, 3); this.richTextBox1.Name = "richTextBox1"; this.richTextBox1.Size = new System.Drawing.Size(426, 238); diff --git a/Project Ports/Programs/ChatApp.Designer.cs b/Project Ports/Programs/ChatApp.Designer.cs index 4084dfd..921a57c 100644 --- a/Project Ports/Programs/ChatApp.Designer.cs +++ b/Project Ports/Programs/ChatApp.Designer.cs @@ -28,10 +28,12 @@ /// private void InitializeComponent() { + this.components = new System.ComponentModel.Container(); this.txtSentMessages = new System.Windows.Forms.TextBox(); this.txtMsgContents = new System.Windows.Forms.TextBox(); this.listBox1 = new System.Windows.Forms.ListBox(); this.btnSendMSG = new System.Windows.Forms.Button(); + this.delay = new System.Windows.Forms.Timer(this.components); this.SuspendLayout(); // // txtSentMessages @@ -109,5 +111,6 @@ private System.Windows.Forms.TextBox txtMsgContents; private System.Windows.Forms.ListBox listBox1; private System.Windows.Forms.Button btnSendMSG; + private System.Windows.Forms.Timer delay; } } diff --git a/Project Ports/Programs/ChatApp.cs b/Project Ports/Programs/ChatApp.cs index aeb384d..50d89c6 100644 --- a/Project Ports/Programs/ChatApp.cs +++ b/Project Ports/Programs/ChatApp.cs @@ -41,10 +41,8 @@ namespace Project_Ports Properties.Settings.Default.chatterStoryline = false; #endif - if (Properties.Settings.Default.chatterStoryline == true) { - Thread.Sleep(2000); txtSentMessages.AppendText("Adam has entered the channel..." + Environment.NewLine); Thread.Sleep(2000); txtSentMessages.AppendText(" Hey there user!" + Environment.NewLine); diff --git a/Project Ports/Programs/ChatApp.resx b/Project Ports/Programs/ChatApp.resx index 1af7de1..359cf31 100644 --- a/Project Ports/Programs/ChatApp.resx +++ b/Project Ports/Programs/ChatApp.resx @@ -117,4 +117,7 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + 17, 17 + \ No newline at end of file