From fcf3018d0d24ef6be8f185cef0eff7a0cb4b9165 Mon Sep 17 00:00:00 2001
From: miku-666 <74728189+NessieHax@users.noreply.github.com>
Date: Sat, 27 Aug 2022 12:54:36 +0200
Subject: [PATCH] Remove Promo.cs
---
.../Forms/Additional-Popups/Promo.Designer.cs | 84 ------------
PCK-Studio/Forms/Additional-Popups/Promo.cs | 56 --------
PCK-Studio/Forms/Additional-Popups/Promo.resx | 120 ------------------
PCK-Studio/PckStudio.csproj | 9 --
4 files changed, 269 deletions(-)
delete mode 100644 PCK-Studio/Forms/Additional-Popups/Promo.Designer.cs
delete mode 100644 PCK-Studio/Forms/Additional-Popups/Promo.cs
delete mode 100644 PCK-Studio/Forms/Additional-Popups/Promo.resx
diff --git a/PCK-Studio/Forms/Additional-Popups/Promo.Designer.cs b/PCK-Studio/Forms/Additional-Popups/Promo.Designer.cs
deleted file mode 100644
index 1cee9160..00000000
--- a/PCK-Studio/Forms/Additional-Popups/Promo.Designer.cs
+++ /dev/null
@@ -1,84 +0,0 @@
-namespace PckStudio.Forms
-{
- partial class Promo
- {
- ///
- /// 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 Windows Form Designer generated code
-
- ///
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- ///
- private void InitializeComponent()
- {
- this.webBrowser1 = new System.Windows.Forms.WebBrowser();
- this.buttonOpenInBrowser = new System.Windows.Forms.Button();
- this.SuspendLayout();
- //
- // webBrowser1
- //
- this.webBrowser1.AllowWebBrowserDrop = false;
- this.webBrowser1.Dock = System.Windows.Forms.DockStyle.Fill;
- this.webBrowser1.Location = new System.Drawing.Point(20, 60);
- this.webBrowser1.Margin = new System.Windows.Forms.Padding(0);
- this.webBrowser1.MinimumSize = new System.Drawing.Size(20, 20);
- this.webBrowser1.Name = "webBrowser1";
- this.webBrowser1.ScrollBarsEnabled = false;
- this.webBrowser1.Size = new System.Drawing.Size(741, 462);
- this.webBrowser1.TabIndex = 0;
- //
- // buttonOpenInBrowser
- //
- this.buttonOpenInBrowser.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
- this.buttonOpenInBrowser.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
- this.buttonOpenInBrowser.ForeColor = System.Drawing.Color.White;
- this.buttonOpenInBrowser.Location = new System.Drawing.Point(670, 499);
- this.buttonOpenInBrowser.Name = "buttonOpenInBrowser";
- this.buttonOpenInBrowser.Size = new System.Drawing.Size(98, 29);
- this.buttonOpenInBrowser.TabIndex = 1;
- this.buttonOpenInBrowser.Text = "Open in Browser";
- this.buttonOpenInBrowser.UseVisualStyleBackColor = false;
- this.buttonOpenInBrowser.Click += new System.EventHandler(this.buttonOpenInBrowser_Click);
- //
- // Promo
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(781, 542);
- this.Controls.Add(this.buttonOpenInBrowser);
- this.Controls.Add(this.webBrowser1);
- this.Font = new System.Drawing.Font("Segoe UI Semibold", 8.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.MaximizeBox = false;
- this.Name = "Promo";
- this.Resizable = false;
- this.ShadowType = MetroFramework.Forms.MetroFormShadowType.DropShadow;
- this.Text = "Download Freecraft for the PS3!";
- this.Theme = MetroFramework.MetroThemeStyle.Dark;
- this.Load += new System.EventHandler(this.Promo_Load);
- this.ResumeLayout(false);
-
- }
-
- #endregion
-
- private System.Windows.Forms.WebBrowser webBrowser1;
- private System.Windows.Forms.Button buttonOpenInBrowser;
- }
-}
\ No newline at end of file
diff --git a/PCK-Studio/Forms/Additional-Popups/Promo.cs b/PCK-Studio/Forms/Additional-Popups/Promo.cs
deleted file mode 100644
index ba663b2b..00000000
--- a/PCK-Studio/Forms/Additional-Popups/Promo.cs
+++ /dev/null
@@ -1,56 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Data;
-using System.Drawing;
-using System.Linq;
-using System.Net;
-using System.Text;
-using System.Threading.Tasks;
-using System.Windows.Forms;
-
-namespace PckStudio.Forms
-{
- public partial class Promo : MetroFramework.Forms.MetroForm
- {
- string data;
- public Promo()
- {
- InitializeComponent();
- }
-
- private void Promo_Load(object sender, EventArgs e)
- {
-
- try
- {
- using (WebClient getData = new WebClient())
- {
- data = getData.DownloadString(PckStudio.Program.baseurl + "Promo/PromoFC");
- //data = "k_EPynYjxmc";
-
- webBrowser1.ScrollBarsEnabled = false;
-
- var embed = "
" +
- "" +
- "" +
- "" +
- "";
- var url = "https://www.youtube.com/embed/" + data;
- this.webBrowser1.DocumentText = string.Format(embed, url);
- }
- }
- catch
- {
- this.Close();
- }
- }
-
- private void buttonOpenInBrowser_Click(object sender, EventArgs e)
- {
- System.Diagnostics.Process.Start("https://www.youtube.com/watch?v=" + data );
- //MessageBox.Show("https://www.youtube.com/watch?v=" + data);
- }
- }
-}
diff --git a/PCK-Studio/Forms/Additional-Popups/Promo.resx b/PCK-Studio/Forms/Additional-Popups/Promo.resx
deleted file mode 100644
index 1af7de15..00000000
--- a/PCK-Studio/Forms/Additional-Popups/Promo.resx
+++ /dev/null
@@ -1,120 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 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/PCK-Studio/PckStudio.csproj b/PCK-Studio/PckStudio.csproj
index af7b392b..af9d4372 100644
--- a/PCK-Studio/PckStudio.csproj
+++ b/PCK-Studio/PckStudio.csproj
@@ -400,12 +400,6 @@
Pref.cs
-
- Form
-
-
- Promo.cs
-
Form
@@ -588,9 +582,6 @@
Pref.cs
-
- Promo.cs
-
TextureConverterUtility.cs