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.Net.Sockets; using System.Runtime.CompilerServices; using System.Timers; using System.Windows.Forms; using VaioxOnline.My; using VaioxOnline.My.Resources; [DesignerGenerated] public class Form1 : Form { [CompilerGenerated, DebuggerBrowsable(DebuggerBrowsableState.Never), AccessedThroughProperty("aTimer")] private System.Timers.Timer _aTimer; [CompilerGenerated, DebuggerBrowsable(DebuggerBrowsableState.Never), AccessedThroughProperty("ClientVersionLabel")] private Label _ClientVersionLabel; [CompilerGenerated, DebuggerBrowsable(DebuggerBrowsableState.Never), AccessedThroughProperty("downloader")] private WebClient _downloader; [CompilerGenerated, DebuggerBrowsable(DebuggerBrowsableState.Never), AccessedThroughProperty("FlatClose1")] private FlatClose _FlatClose1; [CompilerGenerated, DebuggerBrowsable(DebuggerBrowsableState.Never), AccessedThroughProperty("FlatMini1")] private FlatMini _FlatMini1; [CompilerGenerated, DebuggerBrowsable(DebuggerBrowsableState.Never), AccessedThroughProperty("Gam_Srv_St")] private PictureBox _Gam_Srv_St; [CompilerGenerated, DebuggerBrowsable(DebuggerBrowsableState.Never), AccessedThroughProperty("Label1")] private Label _Label1; [CompilerGenerated, DebuggerBrowsable(DebuggerBrowsableState.Never), AccessedThroughProperty("Label11")] private Label _Label11; [CompilerGenerated, DebuggerBrowsable(DebuggerBrowsableState.Never), AccessedThroughProperty("Label2")] private Label _Label2; [CompilerGenerated, DebuggerBrowsable(DebuggerBrowsableState.Never), AccessedThroughProperty("Label9")] private Label _Label9; [CompilerGenerated, DebuggerBrowsable(DebuggerBrowsableState.Never), AccessedThroughProperty("LaunchBtn")] private PictureBox _LaunchBtn; [CompilerGenerated, DebuggerBrowsable(DebuggerBrowsableState.Never), AccessedThroughProperty("Lgn_Srv_St")] private PictureBox _Lgn_Srv_St; [CompilerGenerated, DebuggerBrowsable(DebuggerBrowsableState.Never), AccessedThroughProperty("LoggedIn")] private FlatLabel _LoggedIn; [CompilerGenerated, DebuggerBrowsable(DebuggerBrowsableState.Never), AccessedThroughProperty("Panel1")] private Panel _Panel1; [CompilerGenerated, DebuggerBrowsable(DebuggerBrowsableState.Never), AccessedThroughProperty("PatchProgressLabel")] private FlatLabel _PatchProgressLabel; [CompilerGenerated, DebuggerBrowsable(DebuggerBrowsableState.Never), AccessedThroughProperty("PictureBox5")] private PictureBox _PictureBox5; [CompilerGenerated, DebuggerBrowsable(DebuggerBrowsableState.Never), AccessedThroughProperty("PictureBox6")] private PictureBox _PictureBox6; [CompilerGenerated, DebuggerBrowsable(DebuggerBrowsableState.Never), AccessedThroughProperty("PictureBox7")] private PictureBox _PictureBox7; [CompilerGenerated, DebuggerBrowsable(DebuggerBrowsableState.Never), AccessedThroughProperty("PictureBox8")] private PictureBox _PictureBox8; [CompilerGenerated, DebuggerBrowsable(DebuggerBrowsableState.Never), AccessedThroughProperty("ServerVersionlabel")] private Label _ServerVersionlabel; [CompilerGenerated, DebuggerBrowsable(DebuggerBrowsableState.Never), AccessedThroughProperty("WebBrowser1")] private WebBrowser _WebBrowser1; [CompilerGenerated, DebuggerBrowsable(DebuggerBrowsableState.Never), AccessedThroughProperty("WebBrowser2")] private WebBrowser _WebBrowser2; private string CashShopAddress; private string[] ClientConfigFile; private string ClientExe; private IContainer components; private int cpx; private int cpy; private string ForumAddress; private string Guide; private string LoggedInName; private string LoginAddress; private VaioxOnline.MyFunction MyFunction; private string News; private string passwordtxtbx; private string[] PatchList; private string Register; private string ServerIP; private string usernametxtbx; private WebClient wc; private string WebsiteAddress; public Form1() { base.Load += new EventHandler(this.Form1_Load); base.MouseDown += new MouseEventHandler(this.Form1_MouseDown); base.MouseMove += new MouseEventHandler(this.Form1_MouseMove); this.ServerIP = "91.121.222.174"; this.ClientExe = "Vaiox.exe"; this.LoginAddress = "http://91.121.222.174:81/"; this.WebsiteAddress = "http://91.121.222.174:81/"; this.CashShopAddress = "http://91.121.222.174/mall/"; this.Guide = "http://91.121.222.174/guide/"; this.ForumAddress = "http://91.121.222.174/forum/"; this.Register = "http://91.121.222.174/signup/"; this.News = "http://91.121.222.174/"; this.usernametxtbx = MyProject.Forms.Login.usernametxtbx.Text; this.passwordtxtbx = MyProject.Forms.Login.passwordtxtbx.Text; this.LoggedInName = MyProject.Forms.Login.usernametxtbx.Text; this.downloader = new WebClient(); this.wc = new WebClient(); this.MyFunction = new VaioxOnline.MyFunction(); this.ClientConfigFile = null; this.PatchList = null; this.aTimer = new System.Timers.Timer(); this.InitializeComponent(); } private void ClientVersionLabel_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 downloader_DownloadFileCompleted(object sender, AsyncCompletedEventArgs e) { Process.Start("UnRAR.exe", "x -y -ac patch.rar").WaitForExit(); System.IO.File.Delete("patch.rar"); this.Label9.Text = Conversions.ToString((double) (Conversion.Val(this.Label9.Text) + Conversion.Val("1"))); this.ClientVersionLabel.Text = Conversions.ToString((double) (Conversion.Val(this.ClientVersionLabel.Text) + Conversion.Val("1"))); System.IO.File.WriteAllText("Launcher/config.lul", this.MyFunction.Encrypt("LauncherVersion=" + this.ClientVersionLabel.Text)); if (this.ServerVersionlabel.Text == this.ClientVersionLabel.Text) { this.LaunchBtn.Enabled = true; this.Label11.Text = "Game is up to date."; this.Label9.Visible = false; this.Label11.Visible = false; this.Label1.Visible = false; this.Label2.Visible = false; this.ClientVersionLabel.Visible = false; this.ServerVersionlabel.Visible = false; this.PatchProgressLabel.Hide(); this.Panel1.Hide(); } else { this.PictureBox6.Width = 800; char[] separator = new char[] { '\t' }; this.downloader.DownloadFileAsync(new Uri(this.PatchList[Conversions.ToInteger(this.Label9.Text)].Split(separator)[1]), "patch.rar"); } } private void downloader_DownloadProgressChanged(object sender, DownloadProgressChangedEventArgs e) { this.PatchProgressLabel.Text = Conversions.ToString(e.ProgressPercentage) + "%"; this.PictureBox6.Width = e.ProgressPercentage * 8; if (this.PatchProgressLabel.Text == "100%") { this.PictureBox6.Width = 800; } } private void Form1_Load(object sender, EventArgs e) { this.LoggedIn.Text = "Welcome, " + this.LoggedInName; if (!System.IO.File.Exists("UnRAR.exe")) { MyProject.Computer.Network.DownloadFile(this.WebsiteAddress + "UnRAR.exe", "UnRAR.exe"); } if (!System.IO.File.Exists("Launcher/config.lul")) { Directory.CreateDirectory("Launcher"); System.IO.File.WriteAllText("Launcher/config.lul", this.MyFunction.Encrypt("Version=0")); } this.ClientConfigFile = System.IO.File.ReadAllLines("Launcher/config.lul"); this.ClientConfigFile[0] = this.MyFunction.Decrypt(this.ClientConfigFile[0]); char[] separator = new char[] { '\r' }; this.PatchList = this.wc.DownloadString(this.WebsiteAddress + "list.txt").Split(separator); char[] chArray2 = new char[] { '=' }; this.ClientVersionLabel.Text = this.ClientConfigFile[0].Split(chArray2)[1]; this.ServerVersionlabel.Text = Conversions.ToString(this.MyFunction.CountPatches(this.WebsiteAddress + "list.txt")); if (this.ClientVersionLabel.Text == this.ServerVersionlabel.Text) { this.LaunchBtn.Enabled = true; this.Label11.Text = "No new Updates avaiable!"; this.Label9.Visible = false; this.Label11.Visible = false; this.Label1.Visible = false; this.Label2.Visible = false; this.ClientVersionLabel.Visible = false; this.ServerVersionlabel.Visible = false; this.PictureBox6.Hide(); this.PictureBox5.Hide(); this.PictureBox7.Hide(); this.PictureBox8.Hide(); this.PatchProgressLabel.Hide(); this.Panel1.Hide(); } else { this.PictureBox6.Width = (int) -((this.PictureBox6.Width == 0) > false); this.Label9.Text = Conversions.ToString((double) (Conversions.ToDouble(this.ClientVersionLabel.Text) + 1.0)); char[] chArray3 = new char[] { '\t' }; this.downloader.DownloadFileAsync(new Uri(this.PatchList[Conversions.ToInteger(this.Label9.Text)].Split(chArray3)[1]), "patch.rar"); } IPEndPoint remoteEP = new IPEndPoint(IPAddress.Parse("91.121.222.174"), 0x2332); TcpClient client = new TcpClient(); try { client.Connect(remoteEP); } catch (Exception exception1) { ProjectData.SetProjectError(exception1); Exception exception = exception1; this.Lgn_Srv_St.Image = VaioxOnline.My.Resources.Resources.Offline; ProjectData.ClearProjectError(); } client.Close(); IPEndPoint point2 = new IPEndPoint(IPAddress.Parse("91.121.222.174"), 0x2396); TcpClient client2 = new TcpClient(); try { client2.Connect(point2); } catch (Exception exception3) { ProjectData.SetProjectError(exception3); Exception exception2 = exception3; this.Lgn_Srv_St.Image = VaioxOnline.My.Resources.Resources.Offline; ProjectData.ClearProjectError(); } client2.Close(); } private void Form1_MouseDown(object sender, MouseEventArgs e) { this.cpx = e.X; this.cpy = e.Y; } private void Form1_MouseMove(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Left) { base.Top = Cursor.Position.Y - this.cpy; base.Left = Cursor.Position.X - this.cpx; } } [DebuggerStepThrough] private void InitializeComponent() { ComponentResourceManager manager = new ComponentResourceManager(typeof(Form1)); this.PictureBox8 = new PictureBox(); this.PictureBox7 = new PictureBox(); this.PictureBox6 = new PictureBox(); this.PictureBox5 = new PictureBox(); this.LaunchBtn = new PictureBox(); this.Label9 = new Label(); this.Label11 = new Label(); this.ServerVersionlabel = new Label(); this.Label1 = new Label(); this.Label2 = new Label(); this.ClientVersionLabel = new Label(); this.Lgn_Srv_St = new PictureBox(); this.Gam_Srv_St = new PictureBox(); this.WebBrowser1 = new WebBrowser(); this.WebBrowser2 = new WebBrowser(); this.PatchProgressLabel = new FlatLabel(); this.LoggedIn = new FlatLabel(); this.Panel1 = new Panel(); this.FlatMini1 = new FlatMini(); this.FlatClose1 = new FlatClose(); ((ISupportInitialize) this.PictureBox8).BeginInit(); ((ISupportInitialize) this.PictureBox7).BeginInit(); ((ISupportInitialize) this.PictureBox6).BeginInit(); ((ISupportInitialize) this.PictureBox5).BeginInit(); ((ISupportInitialize) this.LaunchBtn).BeginInit(); ((ISupportInitialize) this.Lgn_Srv_St).BeginInit(); ((ISupportInitialize) this.Gam_Srv_St).BeginInit(); base.SuspendLayout(); this.PictureBox8.BackColor = Color.Transparent; this.PictureBox8.BackgroundImage = VaioxOnline.My.Resources.Resources.pbar1nblue; this.PictureBox8.BackgroundImageLayout = ImageLayout.None; this.PictureBox8.Location = new Point(0x375, 0x22f); this.PictureBox8.Name = "PictureBox8"; this.PictureBox8.Size = new Size(2, 0x1f); this.PictureBox8.TabIndex = 0x73; this.PictureBox8.TabStop = false; this.PictureBox7.BackColor = Color.Transparent; this.PictureBox7.BackgroundImage = VaioxOnline.My.Resources.Resources.pbar1; this.PictureBox7.BackgroundImageLayout = ImageLayout.None; this.PictureBox7.Location = new Point(0x57, 0x22f); this.PictureBox7.Name = "PictureBox7"; this.PictureBox7.Size = new Size(2, 0x1f); this.PictureBox7.TabIndex = 0x72; this.PictureBox7.TabStop = false; this.PictureBox6.BackColor = Color.FromArgb(0xc0, 0x52, 0x52); this.PictureBox6.BackgroundImage = VaioxOnline.My.Resources.Resources.pbar2; this.PictureBox6.Location = new Point(0x57, 0x22f); this.PictureBox6.Name = "PictureBox6"; this.PictureBox6.Size = new Size(15, 0x1f); this.PictureBox6.TabIndex = 0x71; this.PictureBox6.TabStop = false; this.PictureBox5.BackColor = Color.FromArgb(0x1b, 0x1b, 0x1b); this.PictureBox5.BackgroundImage = VaioxOnline.My.Resources.Resources.pb4; this.PictureBox5.Location = new Point(0x57, 0x22f); this.PictureBox5.Name = "PictureBox5"; this.PictureBox5.Size = new Size(800, 0x1f); this.PictureBox5.TabIndex = 0x70; this.PictureBox5.TabStop = false; this.LaunchBtn.BackColor = Color.Transparent; this.LaunchBtn.Cursor = Cursors.Hand; this.LaunchBtn.Image = VaioxOnline.My.Resources.Resources.Download_Button_Hover; this.LaunchBtn.Location = new Point(360, 0x1b1); this.LaunchBtn.Name = "LaunchBtn"; this.LaunchBtn.Size = new Size(0x113, 0x6c); this.LaunchBtn.SizeMode = PictureBoxSizeMode.StretchImage; this.LaunchBtn.TabIndex = 0x63; this.LaunchBtn.TabStop = false; this.Label9.AutoSize = true; this.Label9.BackColor = Color.Transparent; this.Label9.Font = new Font("Microsoft Sans Serif", 9f, FontStyle.Bold); this.Label9.ForeColor = Color.White; this.Label9.Location = new Point(0xbd, 0x21d); this.Label9.Name = "Label9"; this.Label9.Size = new Size(12, 15); this.Label9.TabIndex = 0x54; this.Label9.Text = "-"; this.Label11.AutoSize = true; this.Label11.BackColor = Color.Transparent; this.Label11.Font = new Font("Microsoft Sans Serif", 9f, FontStyle.Bold); this.Label11.ForeColor = Color.White; this.Label11.Location = new Point(0x56, 0x21d); this.Label11.Name = "Label11"; this.Label11.Size = new Size(0x61, 15); this.Label11.TabIndex = 0x55; this.Label11.Text = "Getting Patch:"; this.ServerVersionlabel.AutoSize = true; this.ServerVersionlabel.BackColor = Color.Transparent; this.ServerVersionlabel.Font = new Font("Arial", 14.25f, FontStyle.Regular, GraphicsUnit.Point, 0); this.ServerVersionlabel.ForeColor = Color.White; this.ServerVersionlabel.Location = new Point(0x34a, 0x217); this.ServerVersionlabel.Name = "ServerVersionlabel"; this.ServerVersionlabel.Size = new Size(0x2b, 0x16); this.ServerVersionlabel.TabIndex = 0x52; this.ServerVersionlabel.Text = "100"; this.Label1.AutoSize = true; this.Label1.BackColor = Color.Transparent; this.Label1.Font = new Font("Arial", 14.25f, FontStyle.Regular, GraphicsUnit.Point, 0); this.Label1.ForeColor = Color.White; this.Label1.Location = new Point(0x32d, 0x217); this.Label1.Name = "Label1"; this.Label1.Size = new Size(0x1b, 0x16); this.Label1.TabIndex = 0x75; this.Label1.Text = "of"; this.Label2.AutoSize = true; this.Label2.BackColor = Color.Transparent; this.Label2.Font = new Font("Arial", 14.25f, FontStyle.Regular, GraphicsUnit.Point, 0); this.Label2.ForeColor = Color.White; this.Label2.Location = new Point(0x2c0, 0x217); this.Label2.Name = "Label2"; this.Label2.Size = new Size(0x3a, 0x16); this.Label2.TabIndex = 0x77; this.Label2.Text = "Patch"; this.ClientVersionLabel.AutoSize = true; this.ClientVersionLabel.BackColor = Color.Transparent; this.ClientVersionLabel.Font = new Font("Arial", 14.25f, FontStyle.Regular, GraphicsUnit.Point, 0); this.ClientVersionLabel.ForeColor = Color.White; this.ClientVersionLabel.Location = new Point(0x304, 0x217); this.ClientVersionLabel.Name = "ClientVersionLabel"; this.ClientVersionLabel.Size = new Size(0x2b, 0x16); this.ClientVersionLabel.TabIndex = 0x53; this.ClientVersionLabel.Text = "100"; this.Lgn_Srv_St.BackColor = Color.Transparent; this.Lgn_Srv_St.Image = VaioxOnline.My.Resources.Resources.Online; this.Lgn_Srv_St.Location = new Point(360, 0x267); this.Lgn_Srv_St.Name = "Lgn_Srv_St"; this.Lgn_Srv_St.Size = new Size(0x29, 30); this.Lgn_Srv_St.SizeMode = PictureBoxSizeMode.AutoSize; this.Lgn_Srv_St.TabIndex = 0x7a; this.Lgn_Srv_St.TabStop = false; this.Gam_Srv_St.BackColor = Color.Transparent; this.Gam_Srv_St.Image = VaioxOnline.My.Resources.Resources.Online; this.Gam_Srv_St.Location = new Point(0x318, 0x267); this.Gam_Srv_St.Name = "Gam_Srv_St"; this.Gam_Srv_St.Size = new Size(0x29, 30); this.Gam_Srv_St.SizeMode = PictureBoxSizeMode.AutoSize; this.Gam_Srv_St.TabIndex = 0x7b; this.Gam_Srv_St.TabStop = false; this.WebBrowser1.Location = new Point(0x58, 0xae); this.WebBrowser1.MinimumSize = new Size(20, 20); this.WebBrowser1.Name = "WebBrowser1"; this.WebBrowser1.ScrollBarsEnabled = false; this.WebBrowser1.Size = new Size(0x193, 0xcb); this.WebBrowser1.TabIndex = 0x7c; this.WebBrowser1.Url = new Uri("http://91.121.222.174:81/Patchlog.html", UriKind.Absolute); this.WebBrowser2.Location = new Point(0x1fd, 0xae); this.WebBrowser2.MinimumSize = new Size(20, 20); this.WebBrowser2.Name = "WebBrowser2"; this.WebBrowser2.ScrollBarsEnabled = false; this.WebBrowser2.Size = new Size(0x193, 0xcb); this.WebBrowser2.TabIndex = 0x7d; this.WebBrowser2.Url = new Uri("http://91.121.222.174:81/news.html", UriKind.Absolute); this.PatchProgressLabel.AutoSize = true; this.PatchProgressLabel.BackColor = Color.Transparent; this.PatchProgressLabel.Font = new Font("Segoe UI", 15.75f, FontStyle.Regular, GraphicsUnit.Point, 0); this.PatchProgressLabel.ForeColor = Color.White; this.PatchProgressLabel.Location = new Point(0x382, 0x22e); this.PatchProgressLabel.Name = "PatchProgressLabel"; this.PatchProgressLabel.Size = new Size(0x3f, 30); this.PatchProgressLabel.TabIndex = 0x7f; this.PatchProgressLabel.Text = "100%"; this.LoggedIn.AutoSize = true; this.LoggedIn.BackColor = Color.Transparent; this.LoggedIn.Font = new Font("Segoe UI", 15.75f, FontStyle.Regular, GraphicsUnit.Point, 0); this.LoggedIn.ForeColor = Color.White; this.LoggedIn.Location = new Point(750, 0x2e); this.LoggedIn.Name = "LoggedIn"; this.LoggedIn.Size = new Size(110, 30); this.LoggedIn.TabIndex = 0x7e; this.LoggedIn.Text = "Welcome, "; this.Panel1.BackColor = Color.Transparent; this.Panel1.Location = new Point(0x15d, 0x1a6); this.Panel1.Name = "Panel1"; this.Panel1.Size = new Size(0x12a, 0x83); this.Panel1.TabIndex = 0x80; 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(0x3b1, 12); this.FlatMini1.Name = "FlatMini1"; this.FlatMini1.Size = new Size(0x12, 0x12); this.FlatMini1.TabIndex = 0; this.FlatMini1.Text = "FlatMini1"; this.FlatMini1.TextColor = Color.FromArgb(0xf3, 0xf3, 0xf3); 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(970, 12); this.FlatClose1.Name = "FlatClose1"; this.FlatClose1.Size = new Size(0x12, 0x12); this.FlatClose1.TabIndex = 1; this.FlatClose1.Text = "FlatClose1"; this.FlatClose1.TextColor = Color.FromArgb(0xf3, 0xf3, 0xf3); base.AutoScaleMode = AutoScaleMode.Inherit; this.BackColor = Color.Lime; this.BackgroundImage = VaioxOnline.My.Resources.Resources.Patcher_BG; base.ClientSize = new Size(0x3e8, 0x28d); base.Controls.Add(this.FlatMini1); base.Controls.Add(this.FlatClose1); base.Controls.Add(this.Panel1); base.Controls.Add(this.PatchProgressLabel); base.Controls.Add(this.LoggedIn); base.Controls.Add(this.WebBrowser2); base.Controls.Add(this.WebBrowser1); base.Controls.Add(this.Gam_Srv_St); base.Controls.Add(this.Lgn_Srv_St); base.Controls.Add(this.Label2); base.Controls.Add(this.Label1); base.Controls.Add(this.PictureBox8); base.Controls.Add(this.PictureBox7); base.Controls.Add(this.PictureBox6); base.Controls.Add(this.PictureBox5); base.Controls.Add(this.LaunchBtn); base.Controls.Add(this.Label11); base.Controls.Add(this.Label9); base.Controls.Add(this.ClientVersionLabel); base.Controls.Add(this.ServerVersionlabel); this.ForeColor = Color.White; base.FormBorderStyle = FormBorderStyle.None; base.Icon = (Icon) manager.GetObject("$this.Icon"); base.MaximizeBox = false; base.MinimizeBox = false; base.Name = "Form1"; base.StartPosition = FormStartPosition.CenterScreen; this.Text = "Vaiox Online | Launcher"; base.TransparencyKey = Color.Fuchsia; ((ISupportInitialize) this.PictureBox8).EndInit(); ((ISupportInitialize) this.PictureBox7).EndInit(); ((ISupportInitialize) this.PictureBox6).EndInit(); ((ISupportInitialize) this.PictureBox5).EndInit(); ((ISupportInitialize) this.LaunchBtn).EndInit(); ((ISupportInitialize) this.Lgn_Srv_St).EndInit(); ((ISupportInitialize) this.Gam_Srv_St).EndInit(); base.ResumeLayout(false); base.PerformLayout(); } private void Label1_Click(object sender, EventArgs e) { } private void Label1_Click_1(object sender, EventArgs e) { } private void LaunchBtn_MouseHover(object sender, EventArgs e) { this.LaunchBtn.Image = VaioxOnline.My.Resources.Resources.Download_Button; } private void LaunchBtn_MouseLeave(object sender, EventArgs e) { this.LaunchBtn.Image = VaioxOnline.My.Resources.Resources.Download_Button_Hover; } private void PictureBox1_Click(object sender, EventArgs e) { } private void PictureBox1_Click_1(object sender, EventArgs e) { Process.Start(this.News); } private void PictureBox2_Click(object sender, EventArgs e) { } private void PictureBox2_Click_2(object sender, EventArgs e) { Process.Start(this.ForumAddress); } private void PictureBox3_Click(object sender, EventArgs e) { base.WindowState = FormWindowState.Minimized; } private void PictureBox3_Click_1(object sender, EventArgs e) { string str = this.MyFunction.MD5StringHash(this.passwordtxtbx); string str2 = new WebClient().DownloadString(this.LoginAddress + "Login.php?Username=" + this.usernametxtbx + "&Password=" + str.ToLower()); string[] textArray2 = new string[6]; textArray2[0] = "-osk_server "; textArray2[1] = this.ServerIP; textArray2[2] = " -osk_token "; char[] separator = new char[] { '#' }; textArray2[3] = str2.Split(separator)[1]; textArray2[4] = " -osk_store "; textArray2[5] = this.CashShopAddress; Process.Start(this.ClientExe, string.Concat(textArray2)); Environment.Exit(0); } private void PictureBox3_Click_2(object sender, EventArgs e) { Environment.Exit(0); } private void PictureBox3_MouseHover_2(object sender, EventArgs e) { } private void PictureBox3_MouseLeave_2(object sender, EventArgs e) { } private void PictureBox4_Click(object sender, EventArgs e) { MyProject.Forms.Login.Close(); base.Close(); } private void PictureBox4_Click_1(object sender, EventArgs e) { base.WindowState = FormWindowState.Minimized; } private void PictureBox4_MouseHover_2(object sender, EventArgs e) { } private void PictureBox4_MouseLeave_2(object sender, EventArgs e) { } private void PictureBox5_Click(object sender, EventArgs e) { } private void PictureBox6_Click(object sender, EventArgs e) { Process.Start(this.Guide); } private void PictureBox7_Click_1(object sender, EventArgs e) { Process.Start(this.Register); } private void PictureBox8_Click(object sender, EventArgs e) { Environment.Exit(0); } private void ServerVersionlabel_Click(object sender, EventArgs e) { } private void TextBox1_KeyUp(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { this.PictureBox3_Click_1(RuntimeHelpers.GetObjectValue(sender), e); } } private void Timer1_Tick(object sender, EventArgs e) { } private System.Timers.Timer aTimer { [CompilerGenerated] get => this._aTimer [MethodImpl(MethodImplOptions.Synchronized), CompilerGenerated] set { this._aTimer = value; } } internal virtual Label ClientVersionLabel { [CompilerGenerated] get => this._ClientVersionLabel [MethodImpl(MethodImplOptions.Synchronized), CompilerGenerated] set { EventHandler handler = new EventHandler(this.ClientVersionLabel_Click); Label label = this._ClientVersionLabel; if (label != null) { label.Click -= handler; } this._ClientVersionLabel = value; label = this._ClientVersionLabel; if (label != null) { label.Click += handler; } } } internal virtual WebClient downloader { [CompilerGenerated] get => this._downloader [MethodImpl(MethodImplOptions.Synchronized), CompilerGenerated] set { AsyncCompletedEventHandler handler = new AsyncCompletedEventHandler(this.downloader_DownloadFileCompleted); DownloadProgressChangedEventHandler handler2 = new DownloadProgressChangedEventHandler(this.downloader_DownloadProgressChanged); WebClient client = this._downloader; if (client != null) { client.DownloadFileCompleted -= handler; client.DownloadProgressChanged -= handler2; } this._downloader = value; client = this._downloader; if (client != null) { client.DownloadFileCompleted += handler; client.DownloadProgressChanged += handler2; } } } internal virtual FlatClose FlatClose1 { [CompilerGenerated] get => this._FlatClose1 [MethodImpl(MethodImplOptions.Synchronized), CompilerGenerated] set { this._FlatClose1 = value; } } internal virtual FlatMini FlatMini1 { [CompilerGenerated] get => this._FlatMini1 [MethodImpl(MethodImplOptions.Synchronized), CompilerGenerated] set { this._FlatMini1 = value; } } internal virtual PictureBox Gam_Srv_St { [CompilerGenerated] get => this._Gam_Srv_St [MethodImpl(MethodImplOptions.Synchronized), CompilerGenerated] set { this._Gam_Srv_St = value; } } internal virtual Label Label1 { [CompilerGenerated] get => this._Label1 [MethodImpl(MethodImplOptions.Synchronized), CompilerGenerated] set { this._Label1 = value; } } internal virtual Label Label11 { [CompilerGenerated] get => this._Label11 [MethodImpl(MethodImplOptions.Synchronized), CompilerGenerated] set { this._Label11 = value; } } internal virtual Label Label2 { [CompilerGenerated] get => this._Label2 [MethodImpl(MethodImplOptions.Synchronized), CompilerGenerated] set { this._Label2 = value; } } internal virtual Label Label9 { [CompilerGenerated] get => this._Label9 [MethodImpl(MethodImplOptions.Synchronized), CompilerGenerated] set { this._Label9 = value; } } internal virtual PictureBox LaunchBtn { [CompilerGenerated] get => this._LaunchBtn [MethodImpl(MethodImplOptions.Synchronized), CompilerGenerated] set { EventHandler handler = new EventHandler(this.PictureBox3_Click_1); EventHandler handler2 = new EventHandler(this.LaunchBtn_MouseHover); EventHandler handler3 = new EventHandler(this.LaunchBtn_MouseLeave); PictureBox box = this._LaunchBtn; if (box != null) { box.Click -= handler; box.MouseHover -= handler2; box.MouseLeave -= handler3; } this._LaunchBtn = value; box = this._LaunchBtn; if (box != null) { box.Click += handler; box.MouseHover += handler2; box.MouseLeave += handler3; } } } internal virtual PictureBox Lgn_Srv_St { [CompilerGenerated] get => this._Lgn_Srv_St [MethodImpl(MethodImplOptions.Synchronized), CompilerGenerated] set { this._Lgn_Srv_St = value; } } internal virtual FlatLabel LoggedIn { [CompilerGenerated] get => this._LoggedIn [MethodImpl(MethodImplOptions.Synchronized), CompilerGenerated] set { this._LoggedIn = value; } } internal virtual Panel Panel1 { [CompilerGenerated] get => this._Panel1 [MethodImpl(MethodImplOptions.Synchronized), CompilerGenerated] set { this._Panel1 = value; } } internal virtual FlatLabel PatchProgressLabel { [CompilerGenerated] get => this._PatchProgressLabel [MethodImpl(MethodImplOptions.Synchronized), CompilerGenerated] set { this._PatchProgressLabel = value; } } internal virtual PictureBox PictureBox5 { [CompilerGenerated] get => this._PictureBox5 [MethodImpl(MethodImplOptions.Synchronized), CompilerGenerated] set { this._PictureBox5 = value; } } internal virtual PictureBox PictureBox6 { [CompilerGenerated] get => this._PictureBox6 [MethodImpl(MethodImplOptions.Synchronized), CompilerGenerated] set { this._PictureBox6 = value; } } internal virtual PictureBox PictureBox7 { [CompilerGenerated] get => this._PictureBox7 [MethodImpl(MethodImplOptions.Synchronized), CompilerGenerated] set { this._PictureBox7 = value; } } internal virtual PictureBox PictureBox8 { [CompilerGenerated] get => this._PictureBox8 [MethodImpl(MethodImplOptions.Synchronized), CompilerGenerated] set { this._PictureBox8 = value; } } internal virtual Label ServerVersionlabel { [CompilerGenerated] get => this._ServerVersionlabel [MethodImpl(MethodImplOptions.Synchronized), CompilerGenerated] set { EventHandler handler = new EventHandler(this.ServerVersionlabel_Click); Label label = this._ServerVersionlabel; if (label != null) { label.Click -= handler; } this._ServerVersionlabel = value; label = this._ServerVersionlabel; if (label != null) { label.Click += handler; } } } internal virtual WebBrowser WebBrowser1 { [CompilerGenerated] get => this._WebBrowser1 [MethodImpl(MethodImplOptions.Synchronized), CompilerGenerated] set { this._WebBrowser1 = value; } } internal virtual WebBrowser WebBrowser2 { [CompilerGenerated] get => this._WebBrowser2 [MethodImpl(MethodImplOptions.Synchronized), CompilerGenerated] set { this._WebBrowser2 = value; } } } }