Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.ComponentModel;
- using System.Drawing;
- using System.Resources;
- using System.Windows.Forms;
- namespace SteamCrack
- {
- public class Help : Form
- {
- private int mouseX = 0;
- private int mouseY = 0;
- private bool mouseDown;
- private IContainer components = null;
- private Label label4;
- private Panel panel1;
- private Label label3;
- private Button button1;
- private Label label1;
- private Label label2;
- private LinkLabel linkLabel1;
- private ErrorProvider errorProvider1;
- private PictureBox pictureBox1;
- private Label label5;
- public Help(string message)
- {
- this.InitializeComponent();
- this.label2.Text = message;
- this.pictureBox1.Hide();
- this.label5.Hide();
- if (message == "about")
- {
- this.pictureBox1.Show();
- this.label5.Show();
- this.label4.Text = "About";
- }
- }
- private void button1_Click(object sender, EventArgs e)
- {
- base.Close();
- }
- protected override void Dispose(bool disposing)
- {
- if ((!disposing ? false : this.components != null))
- {
- this.components.Dispose();
- }
- base.Dispose(disposing);
- }
- private void InitializeComponent()
- {
- this.components = new Container();
- ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(Help));
- this.label4 = new Label();
- this.panel1 = new Panel();
- this.label3 = new Label();
- this.button1 = new Button();
- this.label1 = new Label();
- this.label2 = new Label();
- this.linkLabel1 = new LinkLabel();
- this.errorProvider1 = new ErrorProvider(this.components);
- this.label5 = new Label();
- this.pictureBox1 = new PictureBox();
- this.panel1.SuspendLayout();
- ((ISupportInitialize)this.errorProvider1).BeginInit();
- ((ISupportInitialize)this.pictureBox1).BeginInit();
- base.SuspendLayout();
- this.label4.AutoSize = true;
- this.label4.Font = new Font("Century Gothic", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0);
- this.label4.ForeColor = Color.White;
- this.label4.Location = new Point(6, 3);
- this.label4.Name = "label4";
- this.label4.Size = new Size(38, 16);
- this.label4.TabIndex = 0;
- this.label4.Text = "Help";
- this.panel1.BackColor = Color.Transparent;
- this.panel1.Controls.Add(this.label3);
- this.panel1.Controls.Add(this.label4);
- this.panel1.Location = new Point(0, 0);
- this.panel1.Name = "panel1";
- this.panel1.Size = new Size(322, 22);
- this.panel1.TabIndex = 13;
- this.panel1.MouseDown += new MouseEventHandler(this.panel1_MouseDown);
- this.panel1.MouseMove += new MouseEventHandler(this.panel1_MouseMove);
- this.panel1.MouseUp += new MouseEventHandler(this.panel1_MouseUp);
- this.label3.AutoSize = true;
- this.label3.BackColor = Color.Transparent;
- this.label3.Font = new Font("Calibri", 12f, FontStyle.Bold, GraphicsUnit.Point, 0);
- this.label3.ForeColor = Color.LightGray;
- this.label3.Location = new Point(293, 1);
- this.label3.Name = "label3";
- this.label3.Size = new Size(18, 19);
- this.label3.TabIndex = 11;
- this.label3.Text = "X";
- this.label3.Click += new EventHandler(this.label3_Click);
- this.label3.MouseLeave += new EventHandler(this.label3_MouseLeave);
- this.label3.MouseHover += new EventHandler(this.label3_MouseHover);
- this.button1.BackgroundImage = (Image)componentResourceManager.GetObject("button1.BackgroundImage");
- this.button1.BackgroundImageLayout = ImageLayout.Stretch;
- this.button1.FlatStyle = FlatStyle.Popup;
- this.button1.ForeColor = Color.White;
- this.button1.Location = new Point(120, 189);
- this.button1.Name = "button1";
- this.button1.Size = new Size(75, 23);
- this.button1.TabIndex = 14;
- this.button1.Text = "OK";
- this.button1.UseVisualStyleBackColor = true;
- this.button1.Click += new EventHandler(this.button1_Click);
- this.label1.BackColor = Color.Transparent;
- this.label1.Font = new Font("Microsoft Sans Serif", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0);
- this.label1.ForeColor = Color.White;
- this.label1.Location = new Point(12, 145);
- this.label1.Name = "label1";
- this.label1.Size = new Size(299, 41);
- this.label1.TabIndex = 15;
- this.label1.Text = "Visit this online tutorial for a full summary on how to use this crack:";
- this.label2.BackColor = Color.Transparent;
- this.label2.Font = new Font("Microsoft Sans Serif", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0);
- this.label2.ForeColor = Color.White;
- this.label2.Location = new Point(12, 41);
- this.label2.Name = "label2";
- this.label2.Size = new Size(299, 95);
- this.label2.TabIndex = 15;
- this.label2.Text = "Label";
- this.linkLabel1.ActiveLinkColor = Color.Gray;
- this.linkLabel1.AutoSize = true;
- this.linkLabel1.BackColor = Color.Transparent;
- this.linkLabel1.Font = new Font("Microsoft Sans Serif", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0);
- this.linkLabel1.ForeColor = Color.White;
- this.linkLabel1.LinkColor = Color.White;
- this.linkLabel1.Location = new Point(193, 161);
- this.linkLabel1.Name = "linkLabel1";
- this.linkLabel1.Size = new Size(80, 16);
- this.linkLabel1.TabIndex = 16;
- this.linkLabel1.TabStop = true;
- this.linkLabel1.Text = "Click Here";
- this.errorProvider1.ContainerControl = this;
- this.label5.BackColor = Color.Transparent;
- this.label5.Font = new Font("Microsoft Sans Serif", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0);
- this.label5.ForeColor = Color.White;
- this.label5.Location = new Point(120, 48);
- this.label5.Name = "label5";
- this.label5.Size = new Size(191, 95);
- this.label5.TabIndex = 15;
- this.label5.Text = "This is a Steam Crack made by iHow. It adds any Steam game to your library. Please show your suppoet by Subscribing. © iHow 2016";
- this.pictureBox1.BackColor = Color.Transparent;
- this.pictureBox1.Image = (Image)componentResourceManager.GetObject("pictureBox1.Image");
- this.pictureBox1.Location = new Point(15, 41);
- this.pictureBox1.Name = "pictureBox1";
- this.pictureBox1.Size = new Size(95, 95);
- this.pictureBox1.SizeMode = PictureBoxSizeMode.Zoom;
- this.pictureBox1.TabIndex = 17;
- this.pictureBox1.TabStop = false;
- base.AutoScaleDimensions = new SizeF(6f, 13f);
- base.AutoScaleMode = AutoScaleMode.Font;
- this.BackgroundImage = (Image)componentResourceManager.GetObject("$this.BackgroundImage");
- this.BackgroundImageLayout = ImageLayout.Stretch;
- base.ClientSize = new Size(323, 224);
- base.Controls.Add(this.pictureBox1);
- base.Controls.Add(this.linkLabel1);
- base.Controls.Add(this.label5);
- base.Controls.Add(this.label2);
- base.Controls.Add(this.label1);
- base.Controls.Add(this.button1);
- base.Controls.Add(this.panel1);
- base.FormBorderStyle = FormBorderStyle.None;
- base.Icon = (Icon)componentResourceManager.GetObject("$this.Icon");
- base.Name = "Help";
- base.StartPosition = FormStartPosition.CenterScreen;
- this.Text = "Help";
- this.panel1.ResumeLayout(false);
- this.panel1.PerformLayout();
- ((ISupportInitialize)this.errorProvider1).EndInit();
- ((ISupportInitialize)this.pictureBox1).EndInit();
- base.ResumeLayout(false);
- base.PerformLayout();
- }
- private void label3_Click(object sender, EventArgs e)
- {
- base.Close();
- }
- private void label3_MouseHover(object sender, EventArgs e)
- {
- this.label3.ForeColor = Color.FromArgb(254, 254, 254);
- }
- private void label3_MouseLeave(object sender, EventArgs e)
- {
- this.label3.ForeColor = Color.FromArgb(169, 170, 174);
- }
- private void panel1_MouseDown(object sender, MouseEventArgs e)
- {
- this.mouseDown = true;
- }
- private void panel1_MouseMove(object sender, MouseEventArgs e)
- {
- if (this.mouseDown)
- {
- Point mousePosition = Control.MousePosition;
- this.mouseX = mousePosition.X - 160;
- mousePosition = Control.MousePosition;
- this.mouseY = mousePosition.Y - 10;
- base.SetDesktopLocation(this.mouseX, this.mouseY);
- }
- }
- private void panel1_MouseUp(object sender, MouseEventArgs e)
- {
- this.mouseDown = false;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement