Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Flag.Form1
- using Flag;
- using System;
- using System.ComponentModel;
- using System.Drawing;
- using System.Windows.Forms;
- public class Form1 : Form
- {
- private IContainer components = null;
- private TextBox textBox1;
- private Button button1;
- public Form1()
- {
- InitializeComponent();
- }
- private void button1_Click(object sender, EventArgs e)
- {
- string text = "";
- string[] array = new string[122]
- {
- "3",
- "X",
- "N",
- "a",
- "y",
- "3",
- "L",
- "K",
- "a",
- "i",
- "r",
- "f",
- "p",
- "0",
- "n",
- "s",
- "2",
- "X",
- "p",
- "m",
- "3",
- "0",
- "l",
- "3",
- "a",
- "}",
- "_",
- "_",
- "w",
- "}",
- "d",
- "f",
- "s",
- "a",
- "v",
- "_",
- "t",
- "7",
- "r",
- "r",
- "M",
- "0",
- "W",
- "s",
- "g",
- "b",
- "h",
- "z",
- "_",
- "h",
- "n",
- "!",
- "3",
- "1",
- "2",
- "{",
- "4",
- "W",
- "l",
- "k",
- "i",
- "{",
- "3",
- "T",
- "3",
- "v",
- "n",
- "a",
- "s",
- "a",
- "t",
- "5",
- "n",
- "W",
- "a",
- "r",
- "k",
- "E",
- "@",
- "l",
- "R",
- "4",
- "0",
- "1",
- "}",
- "0",
- "t",
- " ",
- "v",
- "Y",
- "k",
- "h",
- "E",
- "m",
- "0",
- "E",
- "R",
- "e",
- "b",
- "3",
- "4",
- "J",
- "2",
- "z",
- "F",
- "2",
- "W",
- "I",
- "5",
- "s",
- "R",
- "7",
- "3",
- "1",
- "y",
- "0",
- "#",
- "{",
- "$",
- "p",
- "d",
- "_"
- };
- for (int i = 0; i <= 121; i += 11)
- {
- if (i != 0)
- {
- text += array[i];
- }
- }
- for (int j = 0; j <= 75; j += 7)
- {
- if (j != 0 && j != 13)
- {
- text += array[j];
- }
- }
- for (int k = 0; k <= 80; k += 13)
- {
- if (k != 0 && k != 46 && k != 79 && k != 78)
- {
- text += array[k];
- }
- }
- for (int l = 0; l <= 29; l += 5)
- {
- if (l != 0 && l != 31 && l != 28)
- {
- text += array[l];
- }
- }
- if (text.Equals(textBox1.Text))
- {
- Form2 form = new Form2();
- form.Show();
- }
- else
- {
- Form3 form2 = new Form3();
- form2.Show();
- }
- }
- protected override void Dispose(bool disposing)
- {
- if (disposing && components != null)
- {
- components.Dispose();
- }
- base.Dispose(disposing);
- }
- private void InitializeComponent()
- {
- System.ComponentModel.ComponentResourceManager componentResourceManager = new System.ComponentModel.ComponentResourceManager(typeof(Flag.Form1));
- textBox1 = new System.Windows.Forms.TextBox();
- button1 = new System.Windows.Forms.Button();
- SuspendLayout();
- textBox1.Location = new System.Drawing.Point(63, 34);
- textBox1.Name = "textBox1";
- textBox1.Size = new System.Drawing.Size(370, 22);
- textBox1.TabIndex = 0;
- button1.Location = new System.Drawing.Point(63, 137);
- button1.Name = "button1";
- button1.Size = new System.Drawing.Size(370, 23);
- button1.TabIndex = 1;
- button1.Text = "CHECK PASSWORD";
- button1.UseVisualStyleBackColor = true;
- button1.Click += new System.EventHandler(button1_Click);
- base.AutoScaleDimensions = new System.Drawing.SizeF(8f, 16f);
- base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- BackgroundImage = (System.Drawing.Image)componentResourceManager.GetObject("$this.BackgroundImage");
- base.ClientSize = new System.Drawing.Size(503, 227);
- base.Controls.Add(button1);
- base.Controls.Add(textBox1);
- base.Icon = (System.Drawing.Icon)componentResourceManager.GetObject("$this.Icon");
- base.Name = "Form1";
- base.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
- Text = "VALIDATION";
- ResumeLayout(performLayout: false);
- PerformLayout();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement