namespace VaioxOnline
{
    using Microsoft.VisualBasic;
    using Microsoft.VisualBasic.CompilerServices;
    using System;
    using System.ComponentModel;
    using System.Diagnostics;
    using System.Drawing;
    using System.IO;
    using System.Net;
    using System.Runtime.CompilerServices;
    using System.Text;
    using System.Windows.Forms;

    [DesignerGenerated]
    public class Register : Form
    {
        [CompilerGenerated, DebuggerBrowsable(DebuggerBrowsableState.Never), AccessedThroughProperty("FlatClose1")]
        private FlatClose _FlatClose1;
        [CompilerGenerated, DebuggerBrowsable(DebuggerBrowsableState.Never), AccessedThroughProperty("FlatMini1")]
        private FlatMini _FlatMini1;
        [CompilerGenerated, DebuggerBrowsable(DebuggerBrowsableState.Never), AccessedThroughProperty("FlatStatusBar1")]
        private FlatStatusBar _FlatStatusBar1;
        [CompilerGenerated, DebuggerBrowsable(DebuggerBrowsableState.Never), AccessedThroughProperty("PictureBox1")]
        private PictureBox _PictureBox1;
        [CompilerGenerated, DebuggerBrowsable(DebuggerBrowsableState.Never), AccessedThroughProperty("textbox1")]
        private TextBox _textbox1;
        [CompilerGenerated, DebuggerBrowsable(DebuggerBrowsableState.Never), AccessedThroughProperty("textbox2")]
        private TextBox _textbox2;
        [CompilerGenerated, DebuggerBrowsable(DebuggerBrowsableState.Never), AccessedThroughProperty("textbox3")]
        private TextBox _textbox3;
        private IContainer components;

        public Register()
        {
            base.Load += new EventHandler(this.Register_Load);
            base.MouseDown += new MouseEventHandler(this.Register_MouseDown);
            this.InitializeComponent();
        }

        private void Button1_Click(object sender, EventArgs e)
        {
        }

        [DebuggerNonUserCode]
        protected override void Dispose(bool disposing)
        {
            try
            {
                if (disposing && (this.components > null))
                {
                    this.components.Dispose();
                }
            }
            finally
            {
                base.Dispose(disposing);
            }
        }

        private void FlatClose1_Click(object sender, EventArgs e)
        {
            Environment.Exit(1);
        }

        private void FlatMini1_Click(object sender, EventArgs e)
        {
            base.WindowState = FormWindowState.Minimized;
        }

        [DebuggerStepThrough]
        private void InitializeComponent()
        {
            ComponentResourceManager manager = new ComponentResourceManager(typeof(Register));
            this.textbox1 = new TextBox();
            this.textbox2 = new TextBox();
            this.textbox3 = new TextBox();
            this.PictureBox1 = new PictureBox();
            this.FlatClose1 = new FlatClose();
            this.FlatStatusBar1 = new FlatStatusBar();
            this.FlatMini1 = new FlatMini();
            ((ISupportInitialize) this.PictureBox1).BeginInit();
            base.SuspendLayout();
            this.textbox1.BackColor = Color.Maroon;
            this.textbox1.Font = new Font("Microsoft Sans Serif", 14.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
            this.textbox1.Location = new Point(12, 0x70);
            this.textbox1.Multiline = true;
            this.textbox1.Name = "textbox1";
            this.textbox1.Size = new Size(0x112, 30);
            this.textbox1.TabIndex = 1;
            this.textbox2.BackColor = Color.Maroon;
            this.textbox2.Font = new Font("Microsoft Sans Serif", 14.25f);
            this.textbox2.Location = new Point(12, 0xb5);
            this.textbox2.Multiline = true;
            this.textbox2.Name = "textbox2";
            this.textbox2.Size = new Size(0x112, 30);
            this.textbox2.TabIndex = 2;
            this.textbox3.BackColor = Color.Maroon;
            this.textbox3.Font = new Font("Microsoft Sans Serif", 14.25f);
            this.textbox3.Location = new Point(12, 250);
            this.textbox3.Multiline = true;
            this.textbox3.Name = "textbox3";
            this.textbox3.Size = new Size(0x112, 30);
            this.textbox3.TabIndex = 3;
            this.PictureBox1.BackColor = Color.Transparent;
            this.PictureBox1.Location = new Point(12, 0x12b);
            this.PictureBox1.Name = "PictureBox1";
            this.PictureBox1.Size = new Size(0x117, 0x3b);
            this.PictureBox1.TabIndex = 4;
            this.PictureBox1.TabStop = false;
            this.FlatClose1.Anchor = AnchorStyles.Right | AnchorStyles.Top;
            this.FlatClose1.BackColor = Color.White;
            this.FlatClose1.BaseColor = Color.FromArgb(0xa8, 0x23, 0x23);
            this.FlatClose1.Font = new Font("Marlett", 10f);
            this.FlatClose1.Location = new Point(0x111, 9);
            this.FlatClose1.Name = "FlatClose1";
            this.FlatClose1.Size = new Size(0x12, 0x12);
            this.FlatClose1.TabIndex = 11;
            this.FlatClose1.Text = "FlatClose1";
            this.FlatClose1.TextColor = Color.FromArgb(0xf3, 0xf3, 0xf3);
            this.FlatStatusBar1.BaseColor = Color.FromArgb(0x1d, 0x1d, 0x1d);
            this.FlatStatusBar1.Dock = DockStyle.Bottom;
            this.FlatStatusBar1.Font = new Font("Segoe UI", 8f);
            this.FlatStatusBar1.ForeColor = Color.White;
            this.FlatStatusBar1.Location = new Point(0, 0x171);
            this.FlatStatusBar1.Name = "FlatStatusBar1";
            this.FlatStatusBar1.RectColor = Color.Maroon;
            this.FlatStatusBar1.ShowTimeDate = false;
            this.FlatStatusBar1.Size = new Size(300, 0x18);
            this.FlatStatusBar1.TabIndex = 12;
            this.FlatStatusBar1.Text = "Idle...";
            this.FlatStatusBar1.TextColor = Color.White;
            this.FlatMini1.Anchor = AnchorStyles.Right | AnchorStyles.Top;
            this.FlatMini1.BackColor = Color.White;
            this.FlatMini1.BaseColor = Color.FromArgb(0x2d, 0x2f, 0x31);
            this.FlatMini1.Font = new Font("Marlett", 12f);
            this.FlatMini1.Location = new Point(0xfd, 9);
            this.FlatMini1.Name = "FlatMini1";
            this.FlatMini1.Size = new Size(0x12, 0x12);
            this.FlatMini1.TabIndex = 13;
            this.FlatMini1.Text = "FlatMini1";
            this.FlatMini1.TextColor = Color.FromArgb(0xf3, 0xf3, 0xf3);
            base.AutoScaleDimensions = new SizeF(6f, 13f);
            base.AutoScaleMode = AutoScaleMode.Font;
            this.BackgroundImage = (Image) manager.GetObject("$this.BackgroundImage");
            base.ClientSize = new Size(300, 0x189);
            base.Controls.Add(this.FlatMini1);
            base.Controls.Add(this.FlatStatusBar1);
            base.Controls.Add(this.FlatClose1);
            base.Controls.Add(this.PictureBox1);
            base.Controls.Add(this.textbox3);
            base.Controls.Add(this.textbox2);
            base.Controls.Add(this.textbox1);
            base.FormBorderStyle = FormBorderStyle.None;
            base.Icon = (Icon) manager.GetObject("$this.Icon");
            base.Name = "Register";
            base.StartPosition = FormStartPosition.CenterScreen;
            this.Text = "Vaiox Online | Register";
            ((ISupportInitialize) this.PictureBox1).EndInit();
            base.ResumeLayout(false);
            base.PerformLayout();
        }

        protected override void OnPaint(PaintEventArgs e)
        {
        }

        private void Panel1_Paint(object sender, PaintEventArgs e)
        {
        }

        private void PictureBox1_Click(object sender, EventArgs e)
        {
            string text = this.textbox1.Text;
            string str2 = this.textbox2.Text;
            string str3 = this.textbox3.Text;
            HttpWebRequest request = (HttpWebRequest) WebRequest.Create(".");
            request.Method = "POST";
            request.ContentType = "application/x-www-form-urlencoded";
            string[] textArray1 = new string[] { "username=", text, "&email=", str2, "&password=", str3, "&action=signup" };
            string s = string.Concat(textArray1);
            byte[] bytes = Encoding.UTF8.GetBytes(s);
            request.ContentLength = bytes.Length;
            Stream requestStream = request.GetRequestStream();
            requestStream.Write(bytes, 0, bytes.Length);
            requestStream.Close();
            HttpWebResponse response = (HttpWebResponse) request.GetResponse();
            requestStream = response.GetResponseStream();
            StreamReader reader = new StreamReader(requestStream);
            string str5 = reader.ReadToEnd();
            reader.Close();
            requestStream.Close();
            response.Close();
            if (Strings.InStr(str5, "OK", CompareMethod.Binary) > 0)
            {
                this.FlatStatusBar1.Text = "Account has been registered!";
                this.FlatStatusBar1.RectColor = Color.Green;
            }
            else
            {
                this.FlatStatusBar1.Text = "ID already in use! Also check your ID for illegal characters.";
                this.FlatStatusBar1.RectColor = Color.Red;
            }
            if (string.Compare(this.textbox2.Text, "@") <= 0)
            {
                this.FlatStatusBar1.Text = "Please enter a valid Email Address!";
                this.FlatStatusBar1.RectColor = Color.GreenYellow;
            }
        }

        private void PictureBox3_Click(object sender, EventArgs e)
        {
            base.Close();
        }

        private void PictureBox4_Click(object sender, EventArgs e)
        {
            base.WindowState = FormWindowState.Minimized;
        }

        private void Register_Load(object sender, EventArgs e)
        {
        }

        private void Register_MouseDown(object sender, MouseEventArgs e)
        {
        }

        private void RichTextBox1_TextChanged(object sender, EventArgs e)
        {
        }

        private void textbox1_TextChanged(object sender, EventArgs e)
        {
        }

        private void textbox2_TextChanged(object sender, EventArgs e)
        {
        }

        internal virtual FlatClose FlatClose1
        {
            [CompilerGenerated]
            get => 
                this._FlatClose1
            [MethodImpl(MethodImplOptions.Synchronized), CompilerGenerated]
            set
            {
                EventHandler handler = new EventHandler(this.FlatClose1_Click);
                FlatClose close = this._FlatClose1;
                if (close != null)
                {
                    close.Click -= handler;
                }
                this._FlatClose1 = value;
                close = this._FlatClose1;
                if (close != null)
                {
                    close.Click += handler;
                }
            }
        }

        internal virtual FlatMini FlatMini1
        {
            [CompilerGenerated]
            get => 
                this._FlatMini1
            [MethodImpl(MethodImplOptions.Synchronized), CompilerGenerated]
            set
            {
                EventHandler handler = new EventHandler(this.FlatMini1_Click);
                FlatMini mini = this._FlatMini1;
                if (mini != null)
                {
                    mini.Click -= handler;
                }
                this._FlatMini1 = value;
                mini = this._FlatMini1;
                if (mini != null)
                {
                    mini.Click += handler;
                }
            }
        }

        internal virtual FlatStatusBar FlatStatusBar1
        {
            [CompilerGenerated]
            get => 
                this._FlatStatusBar1
            [MethodImpl(MethodImplOptions.Synchronized), CompilerGenerated]
            set
            {
                this._FlatStatusBar1 = value;
            }
        }

        internal virtual PictureBox PictureBox1
        {
            [CompilerGenerated]
            get => 
                this._PictureBox1
            [MethodImpl(MethodImplOptions.Synchronized), CompilerGenerated]
            set
            {
                EventHandler handler = new EventHandler(this.PictureBox1_Click);
                PictureBox box = this._PictureBox1;
                if (box != null)
                {
                    box.Click -= handler;
                }
                this._PictureBox1 = value;
                box = this._PictureBox1;
                if (box != null)
                {
                    box.Click += handler;
                }
            }
        }

        internal virtual TextBox textbox1
        {
            [CompilerGenerated]
            get => 
                this._textbox1
            [MethodImpl(MethodImplOptions.Synchronized), CompilerGenerated]
            set
            {
                EventHandler handler = new EventHandler(this.textbox1_TextChanged);
                TextBox box = this._textbox1;
                if (box != null)
                {
                    box.TextChanged -= handler;
                }
                this._textbox1 = value;
                box = this._textbox1;
                if (box != null)
                {
                    box.TextChanged += handler;
                }
            }
        }

        internal virtual TextBox textbox2
        {
            [CompilerGenerated]
            get => 
                this._textbox2
            [MethodImpl(MethodImplOptions.Synchronized), CompilerGenerated]
            set
            {
                EventHandler handler = new EventHandler(this.textbox2_TextChanged);
                TextBox box = this._textbox2;
                if (box != null)
                {
                    box.TextChanged -= handler;
                }
                this._textbox2 = value;
                box = this._textbox2;
                if (box != null)
                {
                    box.TextChanged += handler;
                }
            }
        }

        internal virtual TextBox textbox3
        {
            [CompilerGenerated]
            get => 
                this._textbox3
            [MethodImpl(MethodImplOptions.Synchronized), CompilerGenerated]
            set
            {
                this._textbox3 = value;
            }
        }
    }
}

