Advertisement
Guest User

AboutBox2

a guest
Nov 18th, 2013
9
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 17.23 KB | None | 0 0
  1. using adflyhlp.My;
  2. using Microsoft.VisualBasic.CompilerServices;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.ComponentModel;
  6. using System.Diagnostics;
  7. using System.Drawing;
  8. using System.IO;
  9. using System.Runtime.CompilerServices;
  10. using System.Threading;
  11. using System.Windows.Forms;
  12.  
  13. namespace adflyhlp
  14. {
  15.   [DesignerGenerated]
  16.   public sealed class AboutBox2 : Form
  17.   {
  18.     private static List<WeakReference> __ENCList = new List<WeakReference>();
  19.     [AccessedThroughProperty("TableLayoutPanel")]
  20.     private TableLayoutPanel _TableLayoutPanel;
  21.     [AccessedThroughProperty("LogoPictureBox")]
  22.     private PictureBox _LogoPictureBox;
  23.     [AccessedThroughProperty("LabelProductName")]
  24.     private Label _LabelProductName;
  25.     [AccessedThroughProperty("LabelVersion")]
  26.     private Label _LabelVersion;
  27.     [AccessedThroughProperty("LabelCompanyName")]
  28.     private Label _LabelCompanyName;
  29.     [AccessedThroughProperty("TextBoxDescription")]
  30.     private TextBox _TextBoxDescription;
  31.     [AccessedThroughProperty("OKButton")]
  32.     private Button _OKButton;
  33.     [AccessedThroughProperty("LabelCopyright")]
  34.     private Label _LabelCopyright;
  35.     private IContainer components;
  36.  
  37.     internal virtual TableLayoutPanel TableLayoutPanel
  38.     {
  39.       [DebuggerNonUserCode] get
  40.       {
  41.         return this._TableLayoutPanel;
  42.       }
  43.       [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
  44.       {
  45.         this._TableLayoutPanel = value;
  46.       }
  47.     }
  48.  
  49.     internal virtual PictureBox LogoPictureBox
  50.     {
  51.       [DebuggerNonUserCode] get
  52.       {
  53.         return this._LogoPictureBox;
  54.       }
  55.       [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
  56.       {
  57.         EventHandler eventHandler = new EventHandler(this.LogoPictureBox_Click);
  58.         if (this._LogoPictureBox != null)
  59.           this._LogoPictureBox.Click -= eventHandler;
  60.         this._LogoPictureBox = value;
  61.         if (this._LogoPictureBox == null)
  62.           return;
  63.         this._LogoPictureBox.Click += eventHandler;
  64.       }
  65.     }
  66.  
  67.     internal virtual Label LabelProductName
  68.     {
  69.       [DebuggerNonUserCode] get
  70.       {
  71.         return this._LabelProductName;
  72.       }
  73.       [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
  74.       {
  75.         EventHandler eventHandler = new EventHandler(this.LabelProductName_Click);
  76.         if (this._LabelProductName != null)
  77.           this._LabelProductName.Click -= eventHandler;
  78.         this._LabelProductName = value;
  79.         if (this._LabelProductName == null)
  80.           return;
  81.         this._LabelProductName.Click += eventHandler;
  82.       }
  83.     }
  84.  
  85.     internal virtual Label LabelVersion
  86.     {
  87.       [DebuggerNonUserCode] get
  88.       {
  89.         return this._LabelVersion;
  90.       }
  91.       [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
  92.       {
  93.         this._LabelVersion = value;
  94.       }
  95.     }
  96.  
  97.     internal virtual Label LabelCompanyName
  98.     {
  99.       [DebuggerNonUserCode] get
  100.       {
  101.         return this._LabelCompanyName;
  102.       }
  103.       [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
  104.       {
  105.         this._LabelCompanyName = value;
  106.       }
  107.     }
  108.  
  109.     internal virtual TextBox TextBoxDescription
  110.     {
  111.       [DebuggerNonUserCode] get
  112.       {
  113.         return this._TextBoxDescription;
  114.       }
  115.       [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
  116.       {
  117.         EventHandler eventHandler = new EventHandler(this.TextBoxDescription_TextChanged);
  118.         if (this._TextBoxDescription != null)
  119.           this._TextBoxDescription.TextChanged -= eventHandler;
  120.         this._TextBoxDescription = value;
  121.         if (this._TextBoxDescription == null)
  122.           return;
  123.         this._TextBoxDescription.TextChanged += eventHandler;
  124.       }
  125.     }
  126.  
  127.     internal virtual Button OKButton
  128.     {
  129.       [DebuggerNonUserCode] get
  130.       {
  131.         return this._OKButton;
  132.       }
  133.       [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
  134.       {
  135.         EventHandler eventHandler = new EventHandler(this.OKButton_Click);
  136.         if (this._OKButton != null)
  137.           this._OKButton.Click -= eventHandler;
  138.         this._OKButton = value;
  139.         if (this._OKButton == null)
  140.           return;
  141.         this._OKButton.Click += eventHandler;
  142.       }
  143.     }
  144.  
  145.     internal virtual Label LabelCopyright
  146.     {
  147.       [DebuggerNonUserCode] get
  148.       {
  149.         return this._LabelCopyright;
  150.       }
  151.       [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
  152.       {
  153.         EventHandler eventHandler = new EventHandler(this.LabelCopyright_Click);
  154.         if (this._LabelCopyright != null)
  155.           this._LabelCopyright.Click -= eventHandler;
  156.         this._LabelCopyright = value;
  157.         if (this._LabelCopyright == null)
  158.           return;
  159.         this._LabelCopyright.Click += eventHandler;
  160.       }
  161.     }
  162.  
  163.     [DebuggerNonUserCode]
  164.     static AboutBox2()
  165.     {
  166.     }
  167.  
  168.     [DebuggerNonUserCode]
  169.     public AboutBox2()
  170.     {
  171.       this.Load += new EventHandler(this.AboutBox2_Load);
  172.       AboutBox2.__ENCAddToList((object) this);
  173.       this.InitializeComponent();
  174.     }
  175.  
  176.     [DebuggerNonUserCode]
  177.     private static void __ENCAddToList(object value)
  178.     {
  179.       List<WeakReference> list = AboutBox2.__ENCList;
  180.       Monitor.Enter((object) list);
  181.       try
  182.       {
  183.         if (AboutBox2.__ENCList.Count == AboutBox2.__ENCList.Capacity)
  184.         {
  185.           int index1 = 0;
  186.           int num1 = 0;
  187.           int num2 = checked (AboutBox2.__ENCList.Count - 1);
  188.           int index2 = num1;
  189.           while (index2 <= num2)
  190.           {
  191.             if (AboutBox2.__ENCList[index2].IsAlive)
  192.             {
  193.               if (index2 != index1)
  194.                 AboutBox2.__ENCList[index1] = AboutBox2.__ENCList[index2];
  195.               checked { ++index1; }
  196.             }
  197.             checked { ++index2; }
  198.           }
  199.           AboutBox2.__ENCList.RemoveRange(index1, checked (AboutBox2.__ENCList.Count - index1));
  200.           AboutBox2.__ENCList.Capacity = AboutBox2.__ENCList.Count;
  201.         }
  202.         AboutBox2.__ENCList.Add(new WeakReference(RuntimeHelpers.GetObjectValue(value)));
  203.       }
  204.       finally
  205.       {
  206.         Monitor.Exit((object) list);
  207.       }
  208.     }
  209.  
  210.     [DebuggerNonUserCode]
  211.     protected override void Dispose(bool disposing)
  212.     {
  213.       try
  214.       {
  215.         if ((!disposing || this.components == null) && !false)
  216.           return;
  217.         this.components.Dispose();
  218.       }
  219.       finally
  220.       {
  221.         base.Dispose(disposing);
  222.       }
  223.     }
  224.  
  225.     [DebuggerStepThrough]
  226.     private void InitializeComponent()
  227.     {
  228.       ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof (AboutBox2));
  229.       this.TableLayoutPanel = new TableLayoutPanel();
  230.       this.LogoPictureBox = new PictureBox();
  231.       this.LabelProductName = new Label();
  232.       this.LabelVersion = new Label();
  233.       this.LabelCopyright = new Label();
  234.       this.LabelCompanyName = new Label();
  235.       this.TextBoxDescription = new TextBox();
  236.       this.OKButton = new Button();
  237.       this.TableLayoutPanel.SuspendLayout();
  238.       this.LogoPictureBox.BeginInit();
  239.       this.SuspendLayout();
  240.       this.TableLayoutPanel.ColumnCount = 2;
  241.       this.TableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 33f));
  242.       this.TableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 67f));
  243.       this.TableLayoutPanel.Controls.Add((Control) this.LogoPictureBox, 0, 0);
  244.       this.TableLayoutPanel.Controls.Add((Control) this.LabelProductName, 1, 0);
  245.       this.TableLayoutPanel.Controls.Add((Control) this.LabelVersion, 1, 1);
  246.       this.TableLayoutPanel.Controls.Add((Control) this.LabelCopyright, 1, 2);
  247.       this.TableLayoutPanel.Controls.Add((Control) this.LabelCompanyName, 1, 3);
  248.       this.TableLayoutPanel.Controls.Add((Control) this.TextBoxDescription, 1, 4);
  249.       this.TableLayoutPanel.Controls.Add((Control) this.OKButton, 1, 5);
  250.       this.TableLayoutPanel.Dock = DockStyle.Fill;
  251.       TableLayoutPanel tableLayoutPanel1 = this.TableLayoutPanel;
  252.       Point point1 = new Point(9, 9);
  253.       Point point2 = point1;
  254.       tableLayoutPanel1.Location = point2;
  255.       this.TableLayoutPanel.Name = "TableLayoutPanel";
  256.       this.TableLayoutPanel.RowCount = 6;
  257.       this.TableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 10f));
  258.       this.TableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 10f));
  259.       this.TableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 9.748427f));
  260.       this.TableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 6.918239f));
  261.       this.TableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 52.83019f));
  262.       this.TableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 10f));
  263.       TableLayoutPanel tableLayoutPanel2 = this.TableLayoutPanel;
  264.       Size size1 = new Size(566, 250);
  265.       Size size2 = size1;
  266.       tableLayoutPanel2.Size = size2;
  267.       this.TableLayoutPanel.TabIndex = 0;
  268.       this.LogoPictureBox.Cursor = Cursors.Hand;
  269.       this.LogoPictureBox.Dock = DockStyle.Fill;
  270.       this.LogoPictureBox.Image = (Image) componentResourceManager.GetObject("LogoPictureBox.Image");
  271.       PictureBox logoPictureBox1 = this.LogoPictureBox;
  272.       point1 = new Point(3, 3);
  273.       Point point3 = point1;
  274.       logoPictureBox1.Location = point3;
  275.       this.LogoPictureBox.Name = "LogoPictureBox";
  276.       this.TableLayoutPanel.SetRowSpan((Control) this.LogoPictureBox, 6);
  277.       PictureBox logoPictureBox2 = this.LogoPictureBox;
  278.       size1 = new Size(180, 244);
  279.       Size size3 = size1;
  280.       logoPictureBox2.Size = size3;
  281.       this.LogoPictureBox.SizeMode = PictureBoxSizeMode.StretchImage;
  282.       this.LogoPictureBox.TabIndex = 0;
  283.       this.LogoPictureBox.TabStop = false;
  284.       this.LabelProductName.Dock = DockStyle.Fill;
  285.       Label labelProductName1 = this.LabelProductName;
  286.       point1 = new Point(192, 0);
  287.       Point point4 = point1;
  288.       labelProductName1.Location = point4;
  289.       Label labelProductName2 = this.LabelProductName;
  290.       Padding padding1 = new Padding(6, 0, 3, 0);
  291.       Padding padding2 = padding1;
  292.       labelProductName2.Margin = padding2;
  293.       Label labelProductName3 = this.LabelProductName;
  294.       size1 = new Size(0, 17);
  295.       Size size4 = size1;
  296.       labelProductName3.MaximumSize = size4;
  297.       this.LabelProductName.Name = "LabelProductName";
  298.       Label labelProductName4 = this.LabelProductName;
  299.       size1 = new Size(371, 17);
  300.       Size size5 = size1;
  301.       labelProductName4.Size = size5;
  302.       this.LabelProductName.TabIndex = 0;
  303.       this.LabelProductName.Text = "adfly link helper";
  304.       this.LabelProductName.TextAlign = ContentAlignment.MiddleLeft;
  305.       this.LabelVersion.Dock = DockStyle.Fill;
  306.       Label labelVersion1 = this.LabelVersion;
  307.       point1 = new Point(192, 25);
  308.       Point point5 = point1;
  309.       labelVersion1.Location = point5;
  310.       Label labelVersion2 = this.LabelVersion;
  311.       padding1 = new Padding(6, 0, 3, 0);
  312.       Padding padding3 = padding1;
  313.       labelVersion2.Margin = padding3;
  314.       Label labelVersion3 = this.LabelVersion;
  315.       size1 = new Size(0, 17);
  316.       Size size6 = size1;
  317.       labelVersion3.MaximumSize = size6;
  318.       this.LabelVersion.Name = "LabelVersion";
  319.       Label labelVersion4 = this.LabelVersion;
  320.       size1 = new Size(371, 17);
  321.       Size size7 = size1;
  322.       labelVersion4.Size = size7;
  323.       this.LabelVersion.TabIndex = 0;
  324.       this.LabelVersion.Text = "ver 1.02";
  325.       this.LabelVersion.TextAlign = ContentAlignment.MiddleLeft;
  326.       this.LabelCopyright.Dock = DockStyle.Fill;
  327.       Label labelCopyright1 = this.LabelCopyright;
  328.       point1 = new Point(192, 50);
  329.       Point point6 = point1;
  330.       labelCopyright1.Location = point6;
  331.       Label labelCopyright2 = this.LabelCopyright;
  332.       padding1 = new Padding(6, 0, 3, 0);
  333.       Padding padding4 = padding1;
  334.       labelCopyright2.Margin = padding4;
  335.       Label labelCopyright3 = this.LabelCopyright;
  336.       size1 = new Size(0, 17);
  337.       Size size8 = size1;
  338.       labelCopyright3.MaximumSize = size8;
  339.       this.LabelCopyright.Name = "LabelCopyright";
  340.       Label labelCopyright4 = this.LabelCopyright;
  341.       size1 = new Size(371, 17);
  342.       Size size9 = size1;
  343.       labelCopyright4.Size = size9;
  344.       this.LabelCopyright.TabIndex = 0;
  345.       this.LabelCopyright.Text = " © Crazy52, 2011 do not modify or re-upload this software";
  346.       this.LabelCopyright.TextAlign = ContentAlignment.MiddleLeft;
  347.       this.LabelCompanyName.Dock = DockStyle.Fill;
  348.       Label labelCompanyName1 = this.LabelCompanyName;
  349.       point1 = new Point(192, 74);
  350.       Point point7 = point1;
  351.       labelCompanyName1.Location = point7;
  352.       Label labelCompanyName2 = this.LabelCompanyName;
  353.       padding1 = new Padding(6, 0, 3, 0);
  354.       Padding padding5 = padding1;
  355.       labelCompanyName2.Margin = padding5;
  356.       Label labelCompanyName3 = this.LabelCompanyName;
  357.       size1 = new Size(0, 17);
  358.       Size size10 = size1;
  359.       labelCompanyName3.MaximumSize = size10;
  360.       this.LabelCompanyName.Name = "LabelCompanyName";
  361.       Label labelCompanyName4 = this.LabelCompanyName;
  362.       size1 = new Size(371, 17);
  363.       Size size11 = size1;
  364.       labelCompanyName4.Size = size11;
  365.       this.LabelCompanyName.TabIndex = 0;
  366.       this.LabelCompanyName.TextAlign = ContentAlignment.MiddleLeft;
  367.       this.TextBoxDescription.Dock = DockStyle.Fill;
  368.       TextBox textBoxDescription1 = this.TextBoxDescription;
  369.       point1 = new Point(192, 94);
  370.       Point point8 = point1;
  371.       textBoxDescription1.Location = point8;
  372.       TextBox textBoxDescription2 = this.TextBoxDescription;
  373.       padding1 = new Padding(6, 3, 3, 3);
  374.       Padding padding6 = padding1;
  375.       textBoxDescription2.Margin = padding6;
  376.       this.TextBoxDescription.Multiline = true;
  377.       this.TextBoxDescription.Name = "TextBoxDescription";
  378.       this.TextBoxDescription.ReadOnly = true;
  379.       this.TextBoxDescription.ScrollBars = ScrollBars.Both;
  380.       TextBox textBoxDescription3 = this.TextBoxDescription;
  381.       size1 = new Size(371, 126);
  382.       Size size12 = size1;
  383.       textBoxDescription3.Size = size12;
  384.       this.TextBoxDescription.TabIndex = 0;
  385.       this.TextBoxDescription.TabStop = false;
  386.       this.TextBoxDescription.Text = "quick program to help people make links with adfly.\r\n\r\nadded: Twitter support.\r\nadded: Pastebin support\r\n\r\nCredit: \r\nmain program - Crazy52\r\npastebin addon - DNS\r\nprogram tester - Cojoe";
  387.       this.OKButton.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
  388.       this.OKButton.DialogResult = DialogResult.Cancel;
  389.       Button okButton1 = this.OKButton;
  390.       point1 = new Point(488, 226);
  391.       Point point9 = point1;
  392.       okButton1.Location = point9;
  393.       this.OKButton.Name = "OKButton";
  394.       Button okButton2 = this.OKButton;
  395.       size1 = new Size(75, 21);
  396.       Size size13 = size1;
  397.       okButton2.Size = size13;
  398.       this.OKButton.TabIndex = 0;
  399.       this.OKButton.Text = "&OK";
  400.       this.AutoScaleDimensions = new SizeF(6f, 13f);
  401.       this.AutoScaleMode = AutoScaleMode.Font;
  402.       this.CancelButton = (IButtonControl) this.OKButton;
  403.       AboutBox2 aboutBox2_1 = this;
  404.       size1 = new Size(584, 268);
  405.       Size size14 = size1;
  406.       aboutBox2_1.ClientSize = size14;
  407.       this.Controls.Add((Control) this.TableLayoutPanel);
  408.       this.FormBorderStyle = FormBorderStyle.FixedDialog;
  409.       this.Icon = (Icon) componentResourceManager.GetObject("$this.Icon");
  410.       this.MaximizeBox = false;
  411.       this.MinimizeBox = false;
  412.       this.Name = "AboutBox2";
  413.       AboutBox2 aboutBox2_2 = this;
  414.       padding1 = new Padding(9);
  415.       Padding padding7 = padding1;
  416.       aboutBox2_2.Padding = padding7;
  417.       this.ShowInTaskbar = false;
  418.       this.StartPosition = FormStartPosition.CenterParent;
  419.       this.Text = "About";
  420.       this.TableLayoutPanel.ResumeLayout(false);
  421.       this.TableLayoutPanel.PerformLayout();
  422.       this.LogoPictureBox.EndInit();
  423.       this.ResumeLayout(false);
  424.     }
  425.  
  426.     [MethodImpl(MethodImplOptions.NoInlining | MethodImplOptions.NoOptimization)]
  427.     private void AboutBox2_Load(object sender, EventArgs e)
  428.     {
  429.       this.Text = string.Format("About {0}", Operators.CompareString(MyProject.Application.Info.Title, "", false) == 0 ? (object) Path.GetFileNameWithoutExtension(MyProject.Application.Info.AssemblyName) : (object) MyProject.Application.Info.Title);
  430.       this.LabelProductName.Text = MyProject.Application.Info.ProductName;
  431.       this.LabelVersion.Text = string.Format("Version {0}", (object) MyProject.Application.Info.Version.ToString());
  432.       this.LabelCopyright.Text = MyProject.Application.Info.Copyright;
  433.       this.LabelCompanyName.Text = MyProject.Application.Info.CompanyName;
  434.       this.TextBoxDescription.Text = MyProject.Application.Info.Description;
  435.     }
  436.  
  437.     private void OKButton_Click(object sender, EventArgs e)
  438.     {
  439.       this.Close();
  440.     }
  441.  
  442.     private void LabelProductName_Click(object sender, EventArgs e)
  443.     {
  444.     }
  445.  
  446.     private void LabelCopyright_Click(object sender, EventArgs e)
  447.     {
  448.     }
  449.  
  450.     private void LogoPictureBox_Click(object sender, EventArgs e)
  451.     {
  452.       Process.Start("http://adf.ly/?id=806423");
  453.     }
  454.  
  455.     private void TextBoxDescription_TextChanged(object sender, EventArgs e)
  456.     {
  457.     }
  458.   }
  459. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement