From 49e0f01a68468af1697ee23798a48f6f6cd7e647 Mon Sep 17 00:00:00 2001 From: TheEdgeNK Date: Sun, 26 Aug 2018 19:34:17 -0400 Subject: Sites Progress 1 --- PortEngine/EarnSite.Designer.cs | 72 +++++++++++ PortEngine/EarnSite.cs | 20 +++ PortEngine/EarnSite.resx | 120 ++++++++++++++++++ PortEngine/PortEngine.csproj | 18 +++ PortEngine/Properties/Settings.Designer.cs | 41 ++++++- PortEngine/Properties/Settings.settings | 11 +- PortEngine/QuantumAPI/QuantumAPI.cs | 3 + .../QuantumAPI/Sites/Malwarebits.Designer.cs | 134 +++++++++++++++++++++ PortEngine/QuantumAPI/Sites/Malwarebits.cs | 25 ++++ PortEngine/QuantumAPI/Sites/Malwarebits.resx | 123 +++++++++++++++++++ PortEngine/QuantumAPI/Sites/QuantumISP.Designer.cs | 28 +++++ PortEngine/QuantumAPI/Sites/QuantumISP.cs | 5 + PortEngine/app.config | 22 +++- 13 files changed, 614 insertions(+), 8 deletions(-) create mode 100644 PortEngine/EarnSite.Designer.cs create mode 100644 PortEngine/EarnSite.cs create mode 100644 PortEngine/EarnSite.resx create mode 100644 PortEngine/QuantumAPI/Sites/Malwarebits.Designer.cs create mode 100644 PortEngine/QuantumAPI/Sites/Malwarebits.cs create mode 100644 PortEngine/QuantumAPI/Sites/Malwarebits.resx (limited to 'PortEngine') diff --git a/PortEngine/EarnSite.Designer.cs b/PortEngine/EarnSite.Designer.cs new file mode 100644 index 0000000..a1c3fc9 --- /dev/null +++ b/PortEngine/EarnSite.Designer.cs @@ -0,0 +1,72 @@ +namespace PortEngine +{ + partial class EarnSite + { + /// + /// 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() + { + this.btnOpenGTN = new System.Windows.Forms.Button(); + this.btnLaunchDTA = new System.Windows.Forms.Button(); + this.SuspendLayout(); + // + // btnOpenGTN + // + this.btnOpenGTN.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btnOpenGTN.Location = new System.Drawing.Point(3, 3); + 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(3, 48); + 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; + // + // EarnSite + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.Controls.Add(this.btnLaunchDTA); + this.Controls.Add(this.btnOpenGTN); + this.Name = "EarnSite"; + this.Size = new System.Drawing.Size(842, 452); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.Button btnOpenGTN; + private System.Windows.Forms.Button btnLaunchDTA; + } +} diff --git a/PortEngine/EarnSite.cs b/PortEngine/EarnSite.cs new file mode 100644 index 0000000..6b56782 --- /dev/null +++ b/PortEngine/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/EarnSite.resx b/PortEngine/EarnSite.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/PortEngine/EarnSite.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + \ No newline at end of file diff --git a/PortEngine/PortEngine.csproj b/PortEngine/PortEngine.csproj index 6f7375b..da69b4b 100644 --- a/PortEngine/PortEngine.csproj +++ b/PortEngine/PortEngine.csproj @@ -43,6 +43,18 @@ + + UserControl + + + EarnSite.cs + + + UserControl + + + Malwarebits.cs + True @@ -72,9 +84,15 @@ + + EarnSite.cs + 404Error.cs + + Malwarebits.cs + QuantumISP.cs diff --git a/PortEngine/Properties/Settings.Designer.cs b/PortEngine/Properties/Settings.Designer.cs index 6462222..3703ea0 100644 --- a/PortEngine/Properties/Settings.Designer.cs +++ b/PortEngine/Properties/Settings.Designer.cs @@ -23,16 +23,13 @@ namespace PortEngine.Properties { } } - [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.ApplicationScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.DefaultSettingValueAttribute("False")] public bool graphicsFriendly { get { return ((bool)(this["graphicsFriendly"])); } - set { - this["graphicsFriendly"] = value; - } } [global::System.Configuration.UserScopedSettingAttribute()] @@ -46,5 +43,41 @@ namespace PortEngine.Properties { this["userDisplayName"] = value; } } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("0")] + public int userBalance { + get { + return ((int)(this["userBalance"])); + } + set { + this["userBalance"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("1")] + public string userSecurityLevel { + get { + return ((string)(this["userSecurityLevel"])); + } + set { + this["userSecurityLevel"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("1")] + public string userPowerLevel { + get { + return ((string)(this["userPowerLevel"])); + } + set { + this["userPowerLevel"] = value; + } + } } } diff --git a/PortEngine/Properties/Settings.settings b/PortEngine/Properties/Settings.settings index 14e29c9..27ebb1f 100644 --- a/PortEngine/Properties/Settings.settings +++ b/PortEngine/Properties/Settings.settings @@ -2,11 +2,20 @@ - + False Player + + 0 + + + 1 + + + 1 + \ No newline at end of file diff --git a/PortEngine/QuantumAPI/QuantumAPI.cs b/PortEngine/QuantumAPI/QuantumAPI.cs index d909002..d10f87d 100644 --- a/PortEngine/QuantumAPI/QuantumAPI.cs +++ b/PortEngine/QuantumAPI/QuantumAPI.cs @@ -23,6 +23,9 @@ namespace PortEngine case "quantumconnections.qt": loadSite(new QuantumAPI.Sites.QuantumISP(), pnlLoadSiteHere); break; + case "malwarebits.qt": + loadSite(new Malwarebits(), pnlLoadSiteHere); + break; default: loadSite(new QuantumAPI.Sites._404Error(), pnlLoadSiteHere); break; diff --git a/PortEngine/QuantumAPI/Sites/Malwarebits.Designer.cs b/PortEngine/QuantumAPI/Sites/Malwarebits.Designer.cs new file mode 100644 index 0000000..3709263 --- /dev/null +++ b/PortEngine/QuantumAPI/Sites/Malwarebits.Designer.cs @@ -0,0 +1,134 @@ +namespace PortEngine +{ + partial class Malwarebits + { + /// + /// 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() + { + this.components = new System.ComponentModel.Container(); + this.lblMalwarebitsTitle = new System.Windows.Forms.Label(); + this.lblUpgradeSecurity = new System.Windows.Forms.Label(); + this.lblUpgradePower = new System.Windows.Forms.Label(); + this.btnUpgradeSecurity = new System.Windows.Forms.Button(); + this.btnUpgradePower = new System.Windows.Forms.Button(); + this.lblBalance = new System.Windows.Forms.Label(); + this.tmrUpdateBal = new System.Windows.Forms.Timer(this.components); + this.SuspendLayout(); + // + // lblMalwarebitsTitle + // + this.lblMalwarebitsTitle.AutoSize = true; + this.lblMalwarebitsTitle.Font = new System.Drawing.Font("Segoe UI Semibold", 27.75F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.lblMalwarebitsTitle.ForeColor = System.Drawing.SystemColors.Highlight; + this.lblMalwarebitsTitle.Location = new System.Drawing.Point(609, 12); + this.lblMalwarebitsTitle.Name = "lblMalwarebitsTitle"; + this.lblMalwarebitsTitle.Size = new System.Drawing.Size(227, 50); + this.lblMalwarebitsTitle.TabIndex = 0; + this.lblMalwarebitsTitle.Text = "Malwarebits"; + // + // lblUpgradeSecurity + // + this.lblUpgradeSecurity.AutoSize = true; + this.lblUpgradeSecurity.Font = new System.Drawing.Font("Lucida Console", 15F); + this.lblUpgradeSecurity.Location = new System.Drawing.Point(19, 91); + this.lblUpgradeSecurity.Name = "lblUpgradeSecurity"; + this.lblUpgradeSecurity.Size = new System.Drawing.Size(201, 20); + this.lblUpgradeSecurity.TabIndex = 1; + this.lblUpgradeSecurity.Text = "Upgrade Security"; + // + // lblUpgradePower + // + this.lblUpgradePower.AutoSize = true; + this.lblUpgradePower.Font = new System.Drawing.Font("Lucida Console", 15F); + this.lblUpgradePower.Location = new System.Drawing.Point(19, 132); + this.lblUpgradePower.Name = "lblUpgradePower"; + this.lblUpgradePower.Size = new System.Drawing.Size(165, 20); + this.lblUpgradePower.TabIndex = 2; + this.lblUpgradePower.Text = "Upgrade Power"; + // + // btnUpgradeSecurity + // + this.btnUpgradeSecurity.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btnUpgradeSecurity.Location = new System.Drawing.Point(226, 88); + this.btnUpgradeSecurity.Name = "btnUpgradeSecurity"; + this.btnUpgradeSecurity.Size = new System.Drawing.Size(75, 29); + this.btnUpgradeSecurity.TabIndex = 3; + this.btnUpgradeSecurity.Text = "Upgrade"; + this.btnUpgradeSecurity.UseVisualStyleBackColor = true; + // + // btnUpgradePower + // + this.btnUpgradePower.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btnUpgradePower.Location = new System.Drawing.Point(190, 127); + this.btnUpgradePower.Name = "btnUpgradePower"; + this.btnUpgradePower.Size = new System.Drawing.Size(75, 29); + this.btnUpgradePower.TabIndex = 4; + this.btnUpgradePower.Text = "Upgrade"; + this.btnUpgradePower.UseVisualStyleBackColor = true; + // + // lblBalance + // + this.lblBalance.AutoSize = true; + this.lblBalance.Font = new System.Drawing.Font("Lucida Console", 10F); + this.lblBalance.Location = new System.Drawing.Point(8, 8); + this.lblBalance.Name = "lblBalance"; + this.lblBalance.Size = new System.Drawing.Size(111, 14); + this.lblBalance.TabIndex = 5; + this.lblBalance.Text = "Balance: !VAR"; + // + // tmrUpdateBal + // + this.tmrUpdateBal.Enabled = true; + this.tmrUpdateBal.Tick += new System.EventHandler(this.tmrUpdateBal_Tick); + // + // Malwarebits + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.Controls.Add(this.lblBalance); + this.Controls.Add(this.btnUpgradePower); + this.Controls.Add(this.btnUpgradeSecurity); + this.Controls.Add(this.lblUpgradePower); + this.Controls.Add(this.lblUpgradeSecurity); + this.Controls.Add(this.lblMalwarebitsTitle); + this.Name = "Malwarebits"; + this.Size = new System.Drawing.Size(842, 452); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.Label lblMalwarebitsTitle; + private System.Windows.Forms.Label lblUpgradeSecurity; + private System.Windows.Forms.Label lblUpgradePower; + private System.Windows.Forms.Button btnUpgradeSecurity; + private System.Windows.Forms.Button btnUpgradePower; + private System.Windows.Forms.Label lblBalance; + private System.Windows.Forms.Timer tmrUpdateBal; + } +} diff --git a/PortEngine/QuantumAPI/Sites/Malwarebits.cs b/PortEngine/QuantumAPI/Sites/Malwarebits.cs new file mode 100644 index 0000000..039e196 --- /dev/null +++ b/PortEngine/QuantumAPI/Sites/Malwarebits.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 +{ + public partial class Malwarebits : UserControl + { + public Malwarebits() + { + InitializeComponent(); + } + + private void tmrUpdateBal_Tick(object sender, EventArgs e) + { + lblBalance.Text = "Balance: " + Properties.Settings.Default.userBalance; + } + } +} diff --git a/PortEngine/QuantumAPI/Sites/Malwarebits.resx b/PortEngine/QuantumAPI/Sites/Malwarebits.resx new file mode 100644 index 0000000..5aed46a --- /dev/null +++ b/PortEngine/QuantumAPI/Sites/Malwarebits.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + 17, 17 + + \ No newline at end of file diff --git a/PortEngine/QuantumAPI/Sites/QuantumISP.Designer.cs b/PortEngine/QuantumAPI/Sites/QuantumISP.Designer.cs index 391f202..c1ceb18 100644 --- a/PortEngine/QuantumAPI/Sites/QuantumISP.Designer.cs +++ b/PortEngine/QuantumAPI/Sites/QuantumISP.Designer.cs @@ -32,6 +32,8 @@ this.lblQuantumISPSubtitle = new System.Windows.Forms.Label(); this.lblYourPlan = new System.Windows.Forms.Label(); this.btnUnsub = new System.Windows.Forms.Button(); + this.lblBookmarks = new System.Windows.Forms.Label(); + this.lblMalwarebitsHyperlink = new System.Windows.Forms.Label(); this.SuspendLayout(); // // lblQuantumISPTitle @@ -74,10 +76,34 @@ this.btnUnsub.Text = "Unsubscribe"; this.btnUnsub.UseVisualStyleBackColor = true; // + // lblBookmarks + // + this.lblBookmarks.AutoSize = true; + this.lblBookmarks.Font = new System.Drawing.Font("Candara", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.lblBookmarks.Location = new System.Drawing.Point(27, 224); + this.lblBookmarks.Name = "lblBookmarks"; + this.lblBookmarks.Size = new System.Drawing.Size(101, 23); + this.lblBookmarks.TabIndex = 4; + this.lblBookmarks.Text = "Bookmarks"; + // + // lblMalwarebitsHyperlink + // + this.lblMalwarebitsHyperlink.AutoSize = true; + this.lblMalwarebitsHyperlink.Font = new System.Drawing.Font("Lucida Console", 12F); + this.lblMalwarebitsHyperlink.ForeColor = System.Drawing.SystemColors.HotTrack; + this.lblMalwarebitsHyperlink.Location = new System.Drawing.Point(27, 250); + this.lblMalwarebitsHyperlink.Name = "lblMalwarebitsHyperlink"; + this.lblMalwarebitsHyperlink.Size = new System.Drawing.Size(148, 16); + this.lblMalwarebitsHyperlink.TabIndex = 5; + this.lblMalwarebitsHyperlink.Text = "malwarebits.qt"; + this.lblMalwarebitsHyperlink.Click += new System.EventHandler(this.lblMalwarebitsHyperlink_Click); + // // QuantumISP // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.Controls.Add(this.lblMalwarebitsHyperlink); + this.Controls.Add(this.lblBookmarks); this.Controls.Add(this.btnUnsub); this.Controls.Add(this.lblYourPlan); this.Controls.Add(this.lblQuantumISPSubtitle); @@ -95,5 +121,7 @@ private System.Windows.Forms.Label lblQuantumISPSubtitle; private System.Windows.Forms.Label lblYourPlan; private System.Windows.Forms.Button btnUnsub; + private System.Windows.Forms.Label lblBookmarks; + private System.Windows.Forms.Label lblMalwarebitsHyperlink; } } diff --git a/PortEngine/QuantumAPI/Sites/QuantumISP.cs b/PortEngine/QuantumAPI/Sites/QuantumISP.cs index 5456c6c..2d23b1c 100644 --- a/PortEngine/QuantumAPI/Sites/QuantumISP.cs +++ b/PortEngine/QuantumAPI/Sites/QuantumISP.cs @@ -16,5 +16,10 @@ namespace PortEngine.QuantumAPI.Sites { InitializeComponent(); } + + private void lblMalwarebitsHyperlink_Click(object sender, EventArgs e) + { + + } } } diff --git a/PortEngine/app.config b/PortEngine/app.config index cb6d547..9140c42 100644 --- a/PortEngine/app.config +++ b/PortEngine/app.config @@ -4,15 +4,31 @@
+ +
+ - - False - Player + + 0 + + + 1 + + + 1 + + + + + False + + + \ No newline at end of file -- cgit v1.2.3