Advertisement
Guest User

Help

a guest
Apr 27th, 2017
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2. using System.ComponentModel;
  3. using System.Drawing;
  4. using System.Resources;
  5. using System.Windows.Forms;
  6.  
  7. namespace SteamCrack
  8. {
  9.     public class Help : Form
  10.     {
  11.         private int mouseX = 0;
  12.  
  13.         private int mouseY = 0;
  14.  
  15.         private bool mouseDown;
  16.  
  17.         private IContainer components = null;
  18.  
  19.         private Label label4;
  20.  
  21.         private Panel panel1;
  22.  
  23.         private Label label3;
  24.  
  25.         private Button button1;
  26.  
  27.         private Label label1;
  28.  
  29.         private Label label2;
  30.  
  31.         private LinkLabel linkLabel1;
  32.  
  33.         private ErrorProvider errorProvider1;
  34.  
  35.         private PictureBox pictureBox1;
  36.  
  37.         private Label label5;
  38.  
  39.         public Help(string message)
  40.         {
  41.             this.InitializeComponent();
  42.             this.label2.Text = message;
  43.             this.pictureBox1.Hide();
  44.             this.label5.Hide();
  45.             if (message == "about")
  46.             {
  47.                 this.pictureBox1.Show();
  48.                 this.label5.Show();
  49.                 this.label4.Text = "About";
  50.             }
  51.         }
  52.  
  53.         private void button1_Click(object sender, EventArgs e)
  54.         {
  55.             base.Close();
  56.         }
  57.  
  58.         protected override void Dispose(bool disposing)
  59.         {
  60.             if ((!disposing ? false : this.components != null))
  61.             {
  62.                 this.components.Dispose();
  63.             }
  64.             base.Dispose(disposing);
  65.         }
  66.  
  67.         private void InitializeComponent()
  68.         {
  69.             this.components = new Container();
  70.             ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(Help));
  71.             this.label4 = new Label();
  72.             this.panel1 = new Panel();
  73.             this.label3 = new Label();
  74.             this.button1 = new Button();
  75.             this.label1 = new Label();
  76.             this.label2 = new Label();
  77.             this.linkLabel1 = new LinkLabel();
  78.             this.errorProvider1 = new ErrorProvider(this.components);
  79.             this.label5 = new Label();
  80.             this.pictureBox1 = new PictureBox();
  81.             this.panel1.SuspendLayout();
  82.             ((ISupportInitialize)this.errorProvider1).BeginInit();
  83.             ((ISupportInitialize)this.pictureBox1).BeginInit();
  84.             base.SuspendLayout();
  85.             this.label4.AutoSize = true;
  86.             this.label4.Font = new Font("Century Gothic", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0);
  87.             this.label4.ForeColor = Color.White;
  88.             this.label4.Location = new Point(6, 3);
  89.             this.label4.Name = "label4";
  90.             this.label4.Size = new Size(38, 16);
  91.             this.label4.TabIndex = 0;
  92.             this.label4.Text = "Help";
  93.             this.panel1.BackColor = Color.Transparent;
  94.             this.panel1.Controls.Add(this.label3);
  95.             this.panel1.Controls.Add(this.label4);
  96.             this.panel1.Location = new Point(0, 0);
  97.             this.panel1.Name = "panel1";
  98.             this.panel1.Size = new Size(322, 22);
  99.             this.panel1.TabIndex = 13;
  100.             this.panel1.MouseDown += new MouseEventHandler(this.panel1_MouseDown);
  101.             this.panel1.MouseMove += new MouseEventHandler(this.panel1_MouseMove);
  102.             this.panel1.MouseUp += new MouseEventHandler(this.panel1_MouseUp);
  103.             this.label3.AutoSize = true;
  104.             this.label3.BackColor = Color.Transparent;
  105.             this.label3.Font = new Font("Calibri", 12f, FontStyle.Bold, GraphicsUnit.Point, 0);
  106.             this.label3.ForeColor = Color.LightGray;
  107.             this.label3.Location = new Point(293, 1);
  108.             this.label3.Name = "label3";
  109.             this.label3.Size = new Size(18, 19);
  110.             this.label3.TabIndex = 11;
  111.             this.label3.Text = "X";
  112.             this.label3.Click += new EventHandler(this.label3_Click);
  113.             this.label3.MouseLeave += new EventHandler(this.label3_MouseLeave);
  114.             this.label3.MouseHover += new EventHandler(this.label3_MouseHover);
  115.             this.button1.BackgroundImage = (Image)componentResourceManager.GetObject("button1.BackgroundImage");
  116.             this.button1.BackgroundImageLayout = ImageLayout.Stretch;
  117.             this.button1.FlatStyle = FlatStyle.Popup;
  118.             this.button1.ForeColor = Color.White;
  119.             this.button1.Location = new Point(120, 189);
  120.             this.button1.Name = "button1";
  121.             this.button1.Size = new Size(75, 23);
  122.             this.button1.TabIndex = 14;
  123.             this.button1.Text = "OK";
  124.             this.button1.UseVisualStyleBackColor = true;
  125.             this.button1.Click += new EventHandler(this.button1_Click);
  126.             this.label1.BackColor = Color.Transparent;
  127.             this.label1.Font = new Font("Microsoft Sans Serif", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0);
  128.             this.label1.ForeColor = Color.White;
  129.             this.label1.Location = new Point(12, 145);
  130.             this.label1.Name = "label1";
  131.             this.label1.Size = new Size(299, 41);
  132.             this.label1.TabIndex = 15;
  133.             this.label1.Text = "Visit this online tutorial for a full summary on how to use this crack:";
  134.             this.label2.BackColor = Color.Transparent;
  135.             this.label2.Font = new Font("Microsoft Sans Serif", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0);
  136.             this.label2.ForeColor = Color.White;
  137.             this.label2.Location = new Point(12, 41);
  138.             this.label2.Name = "label2";
  139.             this.label2.Size = new Size(299, 95);
  140.             this.label2.TabIndex = 15;
  141.             this.label2.Text = "Label";
  142.             this.linkLabel1.ActiveLinkColor = Color.Gray;
  143.             this.linkLabel1.AutoSize = true;
  144.             this.linkLabel1.BackColor = Color.Transparent;
  145.             this.linkLabel1.Font = new Font("Microsoft Sans Serif", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0);
  146.             this.linkLabel1.ForeColor = Color.White;
  147.             this.linkLabel1.LinkColor = Color.White;
  148.             this.linkLabel1.Location = new Point(193, 161);
  149.             this.linkLabel1.Name = "linkLabel1";
  150.             this.linkLabel1.Size = new Size(80, 16);
  151.             this.linkLabel1.TabIndex = 16;
  152.             this.linkLabel1.TabStop = true;
  153.             this.linkLabel1.Text = "Click Here";
  154.             this.errorProvider1.ContainerControl = this;
  155.             this.label5.BackColor = Color.Transparent;
  156.             this.label5.Font = new Font("Microsoft Sans Serif", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0);
  157.             this.label5.ForeColor = Color.White;
  158.             this.label5.Location = new Point(120, 48);
  159.             this.label5.Name = "label5";
  160.             this.label5.Size = new Size(191, 95);
  161.             this.label5.TabIndex = 15;
  162.             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";
  163.             this.pictureBox1.BackColor = Color.Transparent;
  164.             this.pictureBox1.Image = (Image)componentResourceManager.GetObject("pictureBox1.Image");
  165.             this.pictureBox1.Location = new Point(15, 41);
  166.             this.pictureBox1.Name = "pictureBox1";
  167.             this.pictureBox1.Size = new Size(95, 95);
  168.             this.pictureBox1.SizeMode = PictureBoxSizeMode.Zoom;
  169.             this.pictureBox1.TabIndex = 17;
  170.             this.pictureBox1.TabStop = false;
  171.             base.AutoScaleDimensions = new SizeF(6f, 13f);
  172.             base.AutoScaleMode = AutoScaleMode.Font;
  173.             this.BackgroundImage = (Image)componentResourceManager.GetObject("$this.BackgroundImage");
  174.             this.BackgroundImageLayout = ImageLayout.Stretch;
  175.             base.ClientSize = new Size(323, 224);
  176.             base.Controls.Add(this.pictureBox1);
  177.             base.Controls.Add(this.linkLabel1);
  178.             base.Controls.Add(this.label5);
  179.             base.Controls.Add(this.label2);
  180.             base.Controls.Add(this.label1);
  181.             base.Controls.Add(this.button1);
  182.             base.Controls.Add(this.panel1);
  183.             base.FormBorderStyle = FormBorderStyle.None;
  184.             base.Icon = (Icon)componentResourceManager.GetObject("$this.Icon");
  185.             base.Name = "Help";
  186.             base.StartPosition = FormStartPosition.CenterScreen;
  187.             this.Text = "Help";
  188.             this.panel1.ResumeLayout(false);
  189.             this.panel1.PerformLayout();
  190.             ((ISupportInitialize)this.errorProvider1).EndInit();
  191.             ((ISupportInitialize)this.pictureBox1).EndInit();
  192.             base.ResumeLayout(false);
  193.             base.PerformLayout();
  194.         }
  195.  
  196.         private void label3_Click(object sender, EventArgs e)
  197.         {
  198.             base.Close();
  199.         }
  200.  
  201.         private void label3_MouseHover(object sender, EventArgs e)
  202.         {
  203.             this.label3.ForeColor = Color.FromArgb(254, 254, 254);
  204.         }
  205.  
  206.         private void label3_MouseLeave(object sender, EventArgs e)
  207.         {
  208.             this.label3.ForeColor = Color.FromArgb(169, 170, 174);
  209.         }
  210.  
  211.         private void panel1_MouseDown(object sender, MouseEventArgs e)
  212.         {
  213.             this.mouseDown = true;
  214.         }
  215.  
  216.         private void panel1_MouseMove(object sender, MouseEventArgs e)
  217.         {
  218.             if (this.mouseDown)
  219.             {
  220.                 Point mousePosition = Control.MousePosition;
  221.                 this.mouseX = mousePosition.X - 160;
  222.                 mousePosition = Control.MousePosition;
  223.                 this.mouseY = mousePosition.Y - 10;
  224.                 base.SetDesktopLocation(this.mouseX, this.mouseY);
  225.             }
  226.         }
  227.  
  228.         private void panel1_MouseUp(object sender, MouseEventArgs e)
  229.         {
  230.             this.mouseDown = false;
  231.         }
  232.     }
  233. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement