using Library.Common;
using MuEditor.Properties;
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Data.OleDb;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Net;
using System.Resources;
using System.Text;
using System.Windows.Forms;

namespace MuEditor
{
    public class frmMain : frmBase
    {
        private IContainer components;

        private MenuStrip menuStrip1;

        private ToolStripMenuItem SYSTEM_MenuItem;

        private ToolStripMenuItem CharacterManager;

        private ToolStripSeparator toolStripSeparator1;

        private ToolStripMenuItem ExitEditor;

        private CheckBox cbAll;

        private TabPage tabPage4;

        private CheckedListBox clbCharacter;

        private Label label10;

        private TextBox txtLeaderShip;

        private Label laName;

        private TextBox txtChar;

        private ComboBox cboClass;

        private TextBox txtLevel;

        private TextBox txtPoint;

        private TextBox txtExp;

        private TextBox txtStrength;

        private TextBox txtEnergy;

        private TextBox txtVitality;

        private ComboBox cboPK;

        private ComboBox cboCode;

        private TextBox txtPosY;

        private TextBox txtPosX;

        private ComboBox cboMap;

        private Button btnUpdateChar;

        private Label label24;

        private Label label23;

        private Label label22;

        private Label label21;

        private Label label20;

        private Label label19;

        private Label label18;

        private Label label17;

        private Label label16;

        private Label label15;

        private Label label14;

        private GroupBox groupBox2;

        private TextBox txtJF;

        private Label label13;

        private Button btnAccount;

        private CheckBox chkState;

        private Label label9;

        private TextBox txtSNO;

        private Label label8;

        private TextBox txtAnswer;

        private Label label7;

        private TextBox txtQuestion;

        private TextBox txtPassword;

        private TextBox txtAcc;

        private Label label6;

        private Label label5;

        private Label label4;

        private Label label3;

        private TabPage tabPage3;

        private EquipEditor equipEditor;

        private TabPage tabPage5;

        private TabControl tabcInfo;

        private GroupBox groupBox1;

        private Button btnChar;

        private Button btnWarehouse;

        private ComboBox txtAccount;

        private ComboBox cmbChar;

        private Label label2;

        private Label label1;

        private Button button2;

        private TextBox txtNick;

        private Label label32;

        private GroupBox groupBox3;

        private Label lblServer;

        private Label lblDisConnectTime;

        private Label lblConnectTime;

        private Label label36;

        private Label lblState;

        private Label lblIP;

        private Label lblOnlineHours;

        private Label label35;

        private Label label34;

        private ToolStripMenuItem OnlineStat;

        private ToolStripMenuItem GuildManager;

        private ToolStripSeparator toolStripSeparator3;

        private Button btnExp;

        private ToolStripMenuItem HELP_MenuItem;

        private ToolStripMenuItem Help;

        private ToolStripMenuItem About;

        private ToolStripSeparator toolStripSeparator5;

        private CheckBox cbSaveJN;

        private ToolStripMenuItem AddAccountID;

        private Panel pnlPackage;

        private GroupBox packageExp;

        private RadioButton PackageExpLv2;

        private RadioButton PackageExpLv1;

        private CheckBox chkPackageExp;

        private Button btnUpdatePackage;

        private Button btnClearPackage;

        private Button btnClearChar;

        private Panel panel5;

        private EquipPanel shopPanel;

        private Panel panel4;

        private EquipPanel packagePanelLv4;

        private Panel panel3;

        private EquipPanel packagePanelLv3;

        private PentagramPanel sPentagramPanel;

        private Button btnMaxMoney;

        private CharPanel charPanel;

        private Panel panel0;

        private TextBox txtMoney;

        private TextBox txtRuud;

        private EquipPanel packagePanel;

        private Panel panel1;

        private EquipPanel packagePanelLv1;

        private Panel panel2;

        private EquipPanel packagePanelLv2;

        private Panel pnlWarehouse;

        private CheckBox WarehouseExp;

        private EquipPanel warehousePanelLv1;

        private Button btnClean;

        private Button btnWare1YMoney;

        private Button btnWareMaxMoney;

        private Label label33;

        private TextBox txtWareHousePwd;

        private Button btnClearWarehouse;

        private Label label26;

        private TextBox txtWareHouseMoney;

        private EquipPanel warehousePanel;

        private Label label11;

        private Button btnUpdateWarehouse;

        private ToolStripSeparator toolStripSeparator2;

        private ToolStripMenuItem CashShopPoint;

        private bool accountLogin;

        private bool charLogin;

        public static string ME_SERVER;

        public static string ME_DB;

        public static string MU_SERVER;

        public static string MU_DB;

        private string lastAccount = "";

        private string lastCharName = "";

        private string wareHouseCode = "";

        private string wareHouseLv1Code = "";

        private string charPanelCode = "";

        private string packagePanelCode = "";

        private string packagePanelLv1Code = "";

        private string packagePanelLv2Code = "";

        private string packagePanelLv3Code = "";

        private string packagePanelLv4Code = "";

        private string shopPanelCode = "";

        private string sPentagramPanelCode = "";

        private string ExtendedInvenCount = "";

        private bool MD5 = true;

        private frmUser FrmUser;

        private frmGuild FrmGuild;

        private frmInitEquip FrmInitEquip;

        private frmInitEquip FrmEquip;

        private T_CashShop_Point T_CashShop;

        public static CMagicDamage[] xMagic;
        private Label lblDisconnectResult;
        private Label lblConnectResult;
        private Label lblServerNameResult;
        private GroupBox groupBox4;
        private TextBox txtDexterity;
        private GroupBox groupBox5;
        private Label label12;
        private ToolStripMenuItem testeToolStripMenuItem;
        private Button btnMaxRuud;
        private Button button1;
        private TextBox txtFruitAddPoint;
        private Label label25;
        private TextBox txtFruitSubPoint;
        private Label label27;
        private ToolStripMenuItem toolStripMenuItem1;
        private ToolStripMenuItem toolStripMenuItem2;
        private ToolStripMenuItem toolStripMenuItem3;
        private ToolStripMenuItem toolStripMenuItem4;
        private ToolStripMenuItem toolStripMenuItem5;
        private TextBox textBox1;
        private Button button3;
        private int rightPanelFlag;

        public bool LoadedPackage
        {
            get
            {
                return (this.rightPanelFlag & 8) != 0;
            }
            set
            {
                if (value)
                {
                    this.rightPanelFlag = this.rightPanelFlag | 8;
                    return;
                }
                this.rightPanelFlag = this.rightPanelFlag & 247;
            }
        }

        public bool LoadedWarehouse
        {
            get
            {
                return (this.rightPanelFlag & 128) != 0;
            }
            set
            {
                if (value)
                {
                    this.rightPanelFlag = this.rightPanelFlag | 128;
                    return;
                }
                this.rightPanelFlag = this.rightPanelFlag & 127;
            }
        }

        public bool PackageReset
        {
            set
            {
                if (value)
                {
                    this.rightPanelFlag = this.rightPanelFlag & 240;
                }
            }
        }

        public bool ShownPackage
        {
            get
            {
                return (this.rightPanelFlag & 2) != 0;
            }
            set
            {
                if (value)
                {
                    this.rightPanelFlag = this.rightPanelFlag | 2;
                    return;
                }
                this.rightPanelFlag = this.rightPanelFlag & 253;
            }
        }

        public bool ShownWarehouse
        {
            get
            {
                return (this.rightPanelFlag & 32) != 0;
            }
            set
            {
                if (value)
                {
                    this.rightPanelFlag = this.rightPanelFlag | 32;
                    return;
                }
                this.rightPanelFlag = this.rightPanelFlag & 223;
            }
        }

        public bool WarehouseReset
        {
            set
            {
                if (value)
                {
                    this.rightPanelFlag = this.rightPanelFlag & 15;
                }
            }
        }

        static frmMain()
        {
            frmMain.ME_SERVER = "(local)";
            frmMain.ME_DB = "Me_MuOnline";
            frmMain.MU_SERVER = "(local)";
            frmMain.MU_DB = "MuOnline";
            frmMain.xMagic = null;
        }

        public frmMain()
        {
            this.InitializeComponent();
            string str = "Data\\Skill.bmd";
            if (!File.Exists(str))
            {
                str = string.Concat("bin\\Release\\", str);
            }
            frmMain.xMagic = (new SkillClass(str)).cMagic;
        }
        
        private void btnAccount_Click(object sender, EventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;
            string str = this.txtAcc.Text.Trim();
            this.saveAccount(str);
            this.Cursor = Cursors.Default;
        }

        private void btnChar_Click(object sender, EventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;
            this.showPackage(!this.ShownPackage);
            this.Cursor = Cursors.Default;
        }

        private void btnClean_Click(object sender, EventArgs e)
        {
            this.warehousePanel.DownItem();
            EquipItem[] equipItems = this.warehousePanel.getEquipItems();
            this.warehousePanel.clearData();
            this.warehousePanel.putItems(equipItems, true);
            this.warehousePanel.Invalidate();
        }

        private void btnCleanPackage_Click(object sender, EventArgs e)
        {
            this.packagePanel.DownItem();
            this.shopPanel.DownItem();
            EquipItem[] equipItems = this.packagePanel.getEquipItems();
            this.packagePanel.clearData();
            this.packagePanel.putItems(equipItems, true);
            this.packagePanel.Invalidate();
        }

        private void btnClearChar_Click(object sender, EventArgs e)
        {
            this.charPanel.clearData();
            this.charPanel.Invalidate();
        }

        private void btnClearPackage_Click(object sender, EventArgs e)
        {
            this.packagePanel.clearData();
            this.packagePanel.Invalidate();
            this.packagePanelLv1.clearData();
            this.packagePanelLv1.Invalidate();
            this.packagePanelLv2.clearData();
            this.packagePanelLv2.Invalidate();
            this.packagePanelLv3.clearData();
            this.packagePanelLv3.Invalidate();
            this.packagePanelLv4.clearData();
            this.packagePanelLv4.Invalidate();
        }

        private void btnClearWarehouse_Click(object sender, EventArgs e)
        {
            this.warehousePanel.clearData();
            this.warehousePanel.Invalidate();
            this.warehousePanelLv1.clearData();
            this.warehousePanelLv1.Invalidate();
        }

        private void btnExp_Click(object sender, EventArgs e)
        {
            Int64 num = Convert.ToInt64(this.txtLevel.Text.Trim());
            if (num <= 255)
            {
                this.txtExp.Text = string.Concat((num + 9) * num * num * 10);
                return;
            }
            if (num <= 255)
            {
                if (num > 400)
                {
                    this.txtExp.Text = "0";
                }
                return;
            }
            this.txtExp.Text = string.Concat((num - 255 + 9) * (num - 255) * (num - 255) * 1000 + (num + 9) * num * num * 10);
        }
        
        private void btnMaster_Click(object sender, EventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;
            if (this.isCharOnline())
            {
                this.Cursor = Cursors.Default;
                Utils.WarningMessage(string.Format("This character is currently online and cannot be modified.", this.txtChar.Text.Trim()));
            }
            frmMasterLevel _frmMasterLevel = new frmMasterLevel(this.txtChar.Text.Trim());
            _frmMasterLevel.ShowDialog();
            this.Cursor = Cursors.Default;
        }

        private void btnMaxMoney_Click(object sender, EventArgs e)
        {
            this.txtMoney.Text = "2000000000";
        }

        private void btnMaxRuud_Click(object sender, EventArgs e)
        {
            this.txtRuud.Text = "2000000000";
        }

        private void btnSearchIP_Click(object sender, EventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;
            this.FrmUser = frmUser.GetInstance(this, this.lblIP.Text);
            this.FrmUser.Visible = false;
            this.FrmUser.Show(this);
            this.setManagerFrm();
            this.Cursor = Cursors.Default;
        }

        private void btnUpdateChar_Click(object sender, EventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;
            string str = this.txtChar.Text.Trim();
            this.saveCharacter(str);
            this.cmbChar_SelectedIndexChanged(sender, e);
            this.Cursor = Cursors.Default;
        }

        private void btnUpdatePackage_Click(object sender, EventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;
            string str = this.txtChar.Text.Trim();
            if (!this.saveInventory(str))
            {
                Utils.WarningMessage("Error: Inventory failed to save.");
            }
            else
            {
                Utils.InfoMessage("Inventory successfully updated！");
                this.charPanelCode = this.charPanel.getEquipCodes();
                this.packagePanelCode = this.packagePanel.getEquipCodes();
                this.packagePanelLv1Code = this.packagePanelLv1.getEquipCodes();
                this.packagePanelLv2Code = this.packagePanelLv2.getEquipCodes();
                this.packagePanelLv3Code = this.packagePanelLv3.getEquipCodes();
                this.packagePanelLv4Code = this.packagePanelLv4.getEquipCodes();
                this.shopPanelCode = this.shopPanel.getEquipCodes();
                this.sPentagramPanelCode = this.sPentagramPanel.getEquipCodes();
            }
            this.Cursor = Cursors.Default;
        }

        private void btnUpdateWarehouse_Click(object sender, EventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;
            if (!this.saveWarehouse(this.txtAcc.Text.Trim()))
            {
                Utils.WarningMessage("Error: Warehouse update failed.");
            }
            else
            {
                Utils.InfoMessage("Warehouse successfully updated！");
                this.wareHouseCode = this.warehousePanel.getEquipCodes();
                this.wareHouseLv1Code = this.warehousePanelLv1.getEquipCodes();
            }
            this.Cursor = Cursors.Default;
        }

        private void btnWare1YMoney_Click(object sender, EventArgs e)
        {
            this.txtWareHouseMoney.Text = "100000000";
        }

        private void btnWarehouse_Click(object sender, EventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;
            this.showWarehouse(!this.ShownWarehouse);
            this.Cursor = Cursors.Default;
        }

        private void btnWareMaxMoney_Click(object sender, EventArgs e)
        {
            this.txtWareHouseMoney.Text = "2000000000";
        }

        public static string ByteToString(byte[] Characters, int cLength)
        {
            return Encoding.GetEncoding("GB2312").GetString(Characters, 0, cLength).Replace("\0", " ").TrimEnd(new char[0]);
        }

        private void CashShopPoint_Click(object sender, EventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;
            this.T_CashShop = new T_CashShop_Point()
            {
                Visible = false
            };
            this.T_CashShop.Show(this);
            this.Cursor = Cursors.Default;
        }

        private void cbAll_CheckedChanged(object sender, EventArgs e)
        {
            for (int i = 0; i < this.clbCharacter.Items.Count; i++)
            {
                this.clbCharacter.SetItemChecked(i, this.cbAll.Checked);
            }
        }

        private void cboClass_SelectedIndexChanged(object sender, EventArgs e)
        {
            this.loadMagic(this.cboClass.SelectedIndex);
        }

        private bool CheckTable(OleDbConnection conn, string tableName)
        {
            if ((int)conn.GetSchema("Tables").Select(string.Format("TABLE_TYPE = 'TABLE' and TABLE_NAME = '{0}'", tableName)).Length > 0)
            {
                return true;
            }
            return false;
        }

        private void chkPackageExp_CheckedChanged(object sender, EventArgs e)
        {
            if (this.chkPackageExp.Checked)
            {
                this.PackageExpLv1.Enabled = true;
                this.PackageExpLv2.Enabled = true;
                return;
            }
            this.ExtendedInvenCount = "0";
            this.PackageExpLv1.Enabled = false;
            this.PackageExpLv2.Enabled = false;
            this.PackageExpLv1.Checked = false;
            this.PackageExpLv2.Checked = false;
        }

        private void clearGDI(bool isChar)
        {
            this.accountLogin = false;
            this.charLogin = false;
            this.btnUpdateChar.Enabled = false;
            this.btnUpdatePackage.Enabled = false;
            this.btnClearPackage.Enabled = false;
            this.charPanel.clearData();
            this.charPanel.Invalidate();
            this.packagePanel.clearData();
            this.packagePanel.Invalidate();
            this.packagePanelLv1.clearData();
            this.packagePanelLv1.Invalidate();
            this.packagePanelLv2.clearData();
            this.packagePanelLv2.Invalidate();
            this.packagePanelLv3.clearData();
            this.packagePanelLv3.Invalidate();
            this.packagePanelLv4.clearData();
            this.packagePanelLv4.Invalidate();
            this.shopPanel.clearData();
            this.shopPanel.Invalidate();
            this.sPentagramPanel.clearData();
            this.sPentagramPanel.Invalidate();
            this.charPanelCode = "";
            this.packagePanelCode = "";
            this.packagePanelLv1Code = "";
            this.packagePanelLv2Code = "";
            this.packagePanelLv3Code = "";
            this.packagePanelLv4Code = "";
            this.shopPanelCode = "";
            this.sPentagramPanelCode = "";
            if (!isChar)
            {
                this.btnUpdateWarehouse.Enabled = false;
                this.btnClearWarehouse.Enabled = false;
                this.warehousePanel.clearData();
                this.warehousePanel.Invalidate();
                this.wareHouseCode = "";
                this.warehousePanelLv1.clearData();
                this.warehousePanelLv1.Invalidate();
                this.wareHouseLv1Code = "";
            }
        }

        private void cmbChar_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (e.KeyChar == '\r')
            {
                this.InputCharacter(this.cmbChar.Text.Trim());
            }
        }

        private void cmbChar_SelectedIndexChanged(object sender, EventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;
            this.saveLast(true);
            this.showCharacter(this.cmbChar.Text);
            this.LoadedPackage = false;
            if (this.ShownPackage)
            {
                this.showPackage(true);
            }
            this.Cursor = Cursors.Default;
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && this.components != null)
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void Form1_FormClosed(object sender, FormClosedEventArgs e)
        {
            try
            {
                frmBase.Mu_Conn.Close();
                frmBase.Me_Conn.Close();
            }
            catch (Exception)
            {
            }
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            Console.WriteLine(ByteToString(xMagic[1].Name, 0x20));
            Console.WriteLine(ByteToString(EquipEditor.xItem[1].Name, 30));
            Console.WriteLine(ByteToString(EquipEditor.xSocket[1].捞抚, 0x40));
            IniClass class2 = new IniClass(@".\Setting.dat");
            string str = "";
            try
            {
                string str2 = class2.IniReadValue("Me_MuOnline", "EnableTrusted", "1");
                ME_SERVER = class2.IniReadValue("Me_MuOnline", "SQLName", "localhost");
                if ((ME_SERVER == "(local)") || (ME_SERVER == "localhost"))
                {
                    ME_SERVER = Dns.GetHostName().ToUpperInvariant();
                }
                else if (ME_SERVER == ".\\SQLEXPRESS")
                {
                    ME_SERVER = Dns.GetHostName();
                }
                string str3 = class2.IniReadValue("Me_MuOnline", "SQLPort", "1433");
                ME_DB = class2.IniReadValue("Me_MuOnline", "MeMuOnlineDB", "Me_MuOnline");
                string str4 = class2.IniReadValue("Me_MuOnline", "SQLUser", "sa");
                string str5 = class2.IniReadValue("Me_MuOnline", "SQLPassw", "tutorials");
                str = "";
                if (str2 == "1")
                {
                    str = string.Format("Provider=SQLOLEDB.1;Data Source={0};Initial Catalog={1};Integrated Security=SSPI;", ME_SERVER, "MuOnline");
                }
                else
                {
                    str = string.Format("Provider=SQLOLEDB.1;Data Source={0},{1};Initial Catalog={2};Uid={3};Pwd={4}", new object[] { "{1}", str3, "MuOnline", str4, str5 });
                }
                frmBase.Me_Conn.ConnectionString = str;
                frmBase.Me_Conn.Open();
                str2 = class2.IniReadValue("MuOnline", "EnableTrusted", "1");
                MU_SERVER = class2.IniReadValue("MuOnline", "SQLName", "localhost");
                if ((MU_SERVER == "(local)") || (MU_SERVER == "localhost"))
                {
                    MU_SERVER = Dns.GetHostName().ToUpperInvariant();
                }
                else if (MU_SERVER == ".\\SQLEXPRESS") 
                {
                    MU_SERVER = Dns.GetHostName();
                }
                str3 = class2.IniReadValue("MuOnline", "SQLPort", "1433");
                MU_DB = class2.IniReadValue("MuOnline", "MuOnlineDB", "MuOnline");
                str4 = class2.IniReadValue("MuOnline", "SQLUser", "sa");
                str5 = class2.IniReadValue("MuOnline", "SQLPassw", "sa");
                str = "";

                if (str2 == "1")
                {
                    str = string.Format("Provider=SQLOLEDB;Data Source={0};Initial Catalog={1};Integrated Security=SSPI;", MU_SERVER, "MuOnline");
                }
                else
                {
                    str = string.Format("Provider=SQLOLEDB;Data Source={0},{1};Initial Catalog={2};Uid={3};Pwd={4}", new object[] { "{1}", str3, "MuOnline", str4, str5 });
                }
                frmBase.Mu_Conn.ConnectionString = str;
                frmBase.Mu_Conn.Open();
                if (!this.CheckTable(frmBase.Mu_Conn, "ItemLog"))
                {
                    string str6 = "CREATE TABLE [dbo].[ItemLog] (\r\n\t[SEQ] [int] IDENTITY (1, 1) NOT NULL,\r\n\t[Acc] [varchar] (10) COLLATE Latin1_General_CI_AS NULL,\r\n\t[Name] [varchar] (10) COLLATE Latin1_General_CI_AS NULL,\r\n\t[ItemCode] [varbinary] (32) NULL,\r\n\t[SN] [int] NULL,\r\n\t[iName] [varchar] (50) COLLATE Latin1_General_CI_AS NULL,\r\n\t[iLvl] [varchar] (50) COLLATE Latin1_General_CI_AS NULL,\r\n\t[iSkill] [smallint] NULL,\r\n\t[iLuck] [smallint] NULL,\r\n\t[iExt] [varchar] (500) COLLATE Latin1_General_CI_AS NULL,\r\n\t[iSet] [smallint] NULL,\r\n\t[i380] [smallint] NULL,\r\n\t[iJh] [smallint] NULL,\r\n\t[SentDate] [smalldatetime] NULL \r\n) ON [PRIMARY]\r\nALTER TABLE [dbo].[ItemLog] ADD  DEFAULT (getdate()) FOR [SentDate]\r\n";
                    new OleDbCommand(str6, frmBase.Mu_Conn).ExecuteNonQuery();
                }
                if (!this.CheckTable(frmBase.Mu_Conn, "CashLog"))
                {
                    string str7 = "CREATE TABLE [dbo].[CashLog] (\r\n\t[ID] [int] IDENTITY (1, 1) NOT NULL,\r\n\t[UserID] [varchar] (16) COLLATE Latin1_General_CI_AS NULL,\r\n\t[Amount] [money] NULL,\r\n\t[SentDate] [smalldatetime] NULL \r\n) ON [PRIMARY]\r\nALTER TABLE [dbo].[CashLog] ADD  DEFAULT (getdate()) FOR [SentDate]\r\n";
                    new OleDbCommand(str7, frmBase.Mu_Conn).ExecuteNonQuery();
                }

                object obj = (new OleDbCommand("SELECT MIN(SN) AS SN FROM ItemLog", frmBase.Mu_Conn)).ExecuteScalar();
                Utils.SN = (obj == DBNull.Value ? 0 : Convert.ToInt32(obj));
            }
            catch (Exception exception1)
            {
                Exception exception = exception1;
                Utils.WarningMessage(string.Concat("Database connection error，Error message：", exception.Message, "\n using database connection：", str));
            }
            this.charPanel.Editor = this.equipEditor;
            this.packagePanel.setSize(8, 8);
            this.packagePanel.Editor = this.equipEditor;
            this.packagePanelLv1.setSize(8, 4);
            this.packagePanelLv1.Editor = this.equipEditor;
            this.packagePanelLv2.setSize(8, 4);
            this.packagePanelLv2.Editor = this.equipEditor;
            this.packagePanelLv3.setSize(8, 4);
            this.packagePanelLv3.Editor = this.equipEditor;
            this.packagePanelLv4.setSize(8, 4);
            this.packagePanelLv4.Editor = this.equipEditor;
            this.shopPanel.setSize(8, 4);
            this.shopPanel.Editor = this.equipEditor;
            this.sPentagramPanel.Editor = this.equipEditor;
            this.warehousePanel.setSize(8, 15);
            this.warehousePanel.Editor = this.equipEditor;
            this.warehousePanelLv1.setSize(8, 15);
            this.warehousePanelLv1.Editor = this.equipEditor;
            this.equipEditor.LoadData();
            this.updateUI();
        }

        private void frmMain_FormClosing(object sender, FormClosingEventArgs e)
        {
            this.saveLast(false);
        }

        private void InitializeComponent()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmMain));
            this.CharacterManager = new System.Windows.Forms.ToolStripMenuItem();
            this.menuStrip1 = new System.Windows.Forms.MenuStrip();
            this.SYSTEM_MenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.AddAccountID = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
            this.CashShopPoint = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
            this.GuildManager = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator();
            this.OnlineStat = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripSeparator5 = new System.Windows.Forms.ToolStripSeparator();
            this.ExitEditor = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripMenuItem3 = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripMenuItem4 = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripMenuItem5 = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripMenuItem();
            this.HELP_MenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.Help = new System.Windows.Forms.ToolStripMenuItem();
            this.About = new System.Windows.Forms.ToolStripMenuItem();
            this.testeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.cbAll = new System.Windows.Forms.CheckBox();
            this.tabPage4 = new System.Windows.Forms.TabPage();
            this.groupBox5 = new System.Windows.Forms.GroupBox();
            this.txtFruitSubPoint = new MuEditor.TextBox();
            this.btnUpdateChar = new System.Windows.Forms.Button();
            this.groupBox4 = new System.Windows.Forms.GroupBox();
            this.clbCharacter = new System.Windows.Forms.CheckedListBox();
            this.cbSaveJN = new System.Windows.Forms.CheckBox();
            this.label27 = new System.Windows.Forms.Label();
            this.txtFruitAddPoint = new MuEditor.TextBox();
            this.label25 = new System.Windows.Forms.Label();
            this.label15 = new System.Windows.Forms.Label();
            this.label18 = new System.Windows.Forms.Label();
            this.laName = new System.Windows.Forms.Label();
            this.btnExp = new System.Windows.Forms.Button();
            this.txtChar = new MuEditor.TextBox();
            this.label20 = new System.Windows.Forms.Label();
            this.cboClass = new System.Windows.Forms.ComboBox();
            this.label10 = new System.Windows.Forms.Label();
            this.txtExp = new MuEditor.TextBox();
            this.label21 = new System.Windows.Forms.Label();
            this.txtStrength = new MuEditor.TextBox();
            this.txtVitality = new MuEditor.TextBox();
            this.txtLeaderShip = new MuEditor.TextBox();
            this.cboCode = new System.Windows.Forms.ComboBox();
            this.label22 = new System.Windows.Forms.Label();
            this.cboMap = new System.Windows.Forms.ComboBox();
            this.txtPosX = new MuEditor.TextBox();
            this.txtPosY = new MuEditor.TextBox();
            this.label24 = new System.Windows.Forms.Label();
            this.cboPK = new System.Windows.Forms.ComboBox();
            this.label23 = new System.Windows.Forms.Label();
            this.txtLevel = new MuEditor.TextBox();
            this.label19 = new System.Windows.Forms.Label();
            this.txtEnergy = new MuEditor.TextBox();
            this.label17 = new System.Windows.Forms.Label();
            this.txtPoint = new MuEditor.TextBox();
            this.label16 = new System.Windows.Forms.Label();
            this.txtDexterity = new MuEditor.TextBox();
            this.label14 = new System.Windows.Forms.Label();
            this.groupBox2 = new System.Windows.Forms.GroupBox();
            this.textBox1 = new MuEditor.TextBox();
            this.label12 = new System.Windows.Forms.Label();
            this.txtJF = new MuEditor.TextBox();
            this.txtNick = new MuEditor.TextBox();
            this.label32 = new System.Windows.Forms.Label();
            this.label13 = new System.Windows.Forms.Label();
            this.btnAccount = new System.Windows.Forms.Button();
            this.chkState = new System.Windows.Forms.CheckBox();
            this.label9 = new System.Windows.Forms.Label();
            this.txtSNO = new MuEditor.TextBox();
            this.label8 = new System.Windows.Forms.Label();
            this.txtAnswer = new MuEditor.TextBox();
            this.label7 = new System.Windows.Forms.Label();
            this.txtQuestion = new MuEditor.TextBox();
            this.txtPassword = new MuEditor.TextBox();
            this.txtAcc = new MuEditor.TextBox();
            this.label6 = new System.Windows.Forms.Label();
            this.label5 = new System.Windows.Forms.Label();
            this.label4 = new System.Windows.Forms.Label();
            this.label3 = new System.Windows.Forms.Label();
            this.tabPage3 = new System.Windows.Forms.TabPage();
            this.groupBox3 = new System.Windows.Forms.GroupBox();
            this.lblServerNameResult = new System.Windows.Forms.Label();
            this.lblDisconnectResult = new System.Windows.Forms.Label();
            this.lblConnectResult = new System.Windows.Forms.Label();
            this.label35 = new System.Windows.Forms.Label();
            this.label34 = new System.Windows.Forms.Label();
            this.lblIP = new System.Windows.Forms.Label();
            this.lblOnlineHours = new System.Windows.Forms.Label();
            this.lblDisConnectTime = new System.Windows.Forms.Label();
            this.lblConnectTime = new System.Windows.Forms.Label();
            this.label36 = new System.Windows.Forms.Label();
            this.lblState = new System.Windows.Forms.Label();
            this.lblServer = new System.Windows.Forms.Label();
            this.tabPage5 = new System.Windows.Forms.TabPage();
            this.equipEditor = new MuEditor.EquipEditor();
            this.tabcInfo = new System.Windows.Forms.TabControl();
            this.groupBox1 = new System.Windows.Forms.GroupBox();
            this.btnChar = new System.Windows.Forms.Button();
            this.btnWarehouse = new System.Windows.Forms.Button();
            this.txtAccount = new System.Windows.Forms.ComboBox();
            this.cmbChar = new System.Windows.Forms.ComboBox();
            this.label2 = new System.Windows.Forms.Label();
            this.label1 = new System.Windows.Forms.Label();
            this.button2 = new System.Windows.Forms.Button();
            this.pnlPackage = new System.Windows.Forms.Panel();
            this.btnMaxRuud = new System.Windows.Forms.Button();
            this.packageExp = new System.Windows.Forms.GroupBox();
            this.PackageExpLv2 = new System.Windows.Forms.RadioButton();
            this.PackageExpLv1 = new System.Windows.Forms.RadioButton();
            this.chkPackageExp = new System.Windows.Forms.CheckBox();
            this.btnUpdatePackage = new System.Windows.Forms.Button();
            this.btnClearPackage = new System.Windows.Forms.Button();
            this.btnClearChar = new System.Windows.Forms.Button();
            this.panel5 = new System.Windows.Forms.Panel();
            this.shopPanel = new MuEditor.EquipPanel();
            this.panel4 = new System.Windows.Forms.Panel();
            this.packagePanelLv4 = new MuEditor.EquipPanel();
            this.panel3 = new System.Windows.Forms.Panel();
            this.packagePanelLv3 = new MuEditor.EquipPanel();
            this.btnMaxMoney = new System.Windows.Forms.Button();
            this.sPentagramPanel = new MuEditor.PentagramPanel();
            this.charPanel = new MuEditor.CharPanel();
            this.panel0 = new System.Windows.Forms.Panel();
            this.button1 = new System.Windows.Forms.Button();
            this.txtRuud = new MuEditor.TextBox();
            this.txtMoney = new MuEditor.TextBox();
            this.packagePanel = new MuEditor.EquipPanel();
            this.panel1 = new System.Windows.Forms.Panel();
            this.packagePanelLv1 = new MuEditor.EquipPanel();
            this.panel2 = new System.Windows.Forms.Panel();
            this.packagePanelLv2 = new MuEditor.EquipPanel();
            this.pnlWarehouse = new System.Windows.Forms.Panel();
            this.WarehouseExp = new System.Windows.Forms.CheckBox();
            this.warehousePanelLv1 = new MuEditor.EquipPanel();
            this.btnClean = new System.Windows.Forms.Button();
            this.btnWare1YMoney = new System.Windows.Forms.Button();
            this.btnWareMaxMoney = new System.Windows.Forms.Button();
            this.label33 = new System.Windows.Forms.Label();
            this.txtWareHousePwd = new MuEditor.TextBox();
            this.btnClearWarehouse = new System.Windows.Forms.Button();
            this.label26 = new System.Windows.Forms.Label();
            this.txtWareHouseMoney = new MuEditor.TextBox();
            this.label11 = new System.Windows.Forms.Label();
            this.btnUpdateWarehouse = new System.Windows.Forms.Button();
            this.warehousePanel = new MuEditor.EquipPanel();
            this.button3 = new System.Windows.Forms.Button();
            this.menuStrip1.SuspendLayout();
            this.tabPage4.SuspendLayout();
            this.groupBox5.SuspendLayout();
            this.groupBox4.SuspendLayout();
            this.groupBox2.SuspendLayout();
            this.tabPage3.SuspendLayout();
            this.groupBox3.SuspendLayout();
            this.tabPage5.SuspendLayout();
            this.tabcInfo.SuspendLayout();
            this.groupBox1.SuspendLayout();
            this.pnlPackage.SuspendLayout();
            this.packageExp.SuspendLayout();
            this.panel5.SuspendLayout();
            this.panel4.SuspendLayout();
            this.panel3.SuspendLayout();
            this.panel0.SuspendLayout();
            this.panel1.SuspendLayout();
            this.panel2.SuspendLayout();
            this.pnlWarehouse.SuspendLayout();
            this.SuspendLayout();
            // 
            // CharacterManager
            // 
            this.CharacterManager.Name = "CharacterManager";
            this.CharacterManager.Size = new System.Drawing.Size(175, 22);
            this.CharacterManager.Text = "Character Manager";
            this.CharacterManager.Visible = false;
            this.CharacterManager.Click += new System.EventHandler(this.UserstoolStripMenuItem1_Click);
            // 
            // menuStrip1
            // 
            this.menuStrip1.BackColor = System.Drawing.SystemColors.ActiveBorder;
            this.menuStrip1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
            this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.SYSTEM_MenuItem,
            this.toolStripMenuItem1,
            this.toolStripMenuItem3,
            this.toolStripMenuItem4,
            this.toolStripMenuItem5,
            this.toolStripMenuItem2,
            this.HELP_MenuItem,
            this.testeToolStripMenuItem});
            this.menuStrip1.Location = new System.Drawing.Point(0, 0);
            this.menuStrip1.Name = "menuStrip1";
            this.menuStrip1.Size = new System.Drawing.Size(1437, 24);
            this.menuStrip1.TabIndex = 14;
            this.menuStrip1.Text = "menuStrip1";
            // 
            // SYSTEM_MenuItem
            // 
            this.SYSTEM_MenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.AddAccountID,
            this.CharacterManager,
            this.toolStripSeparator2,
            this.CashShopPoint,
            this.toolStripSeparator1,
            this.GuildManager,
            this.toolStripSeparator3,
            this.OnlineStat,
            this.toolStripSeparator5,
            this.ExitEditor});
            this.SYSTEM_MenuItem.Name = "SYSTEM_MenuItem";
            this.SYSTEM_MenuItem.Size = new System.Drawing.Size(50, 20);
            this.SYSTEM_MenuItem.Text = "Menu";
            // 
            // AddAccountID
            // 
            this.AddAccountID.Name = "AddAccountID";
            this.AddAccountID.Size = new System.Drawing.Size(175, 22);
            this.AddAccountID.Text = "Add New Account";
            this.AddAccountID.Visible = false;
            this.AddAccountID.Click += new System.EventHandler(this.AddAcountNToolStripMenuItem_Click);
            // 
            // toolStripSeparator2
            // 
            this.toolStripSeparator2.Name = "toolStripSeparator2";
            this.toolStripSeparator2.Size = new System.Drawing.Size(172, 6);
            // 
            // CashShopPoint
            // 
            this.CashShopPoint.Name = "CashShopPoint";
            this.CashShopPoint.Size = new System.Drawing.Size(175, 22);
            this.CashShopPoint.Text = "CashShop Points";
            this.CashShopPoint.Visible = false;
            this.CashShopPoint.Click += new System.EventHandler(this.CashShopPoint_Click);
            // 
            // toolStripSeparator1
            // 
            this.toolStripSeparator1.Name = "toolStripSeparator1";
            this.toolStripSeparator1.Size = new System.Drawing.Size(172, 6);
            // 
            // GuildManager
            // 
            this.GuildManager.Name = "GuildManager";
            this.GuildManager.Size = new System.Drawing.Size(175, 22);
            this.GuildManager.Text = "Guild Manager(&G)";
            this.GuildManager.Visible = false;
            this.GuildManager.Click += new System.EventHandler(this.GuildGToolStripMenuItem_Click);
            // 
            // toolStripSeparator3
            // 
            this.toolStripSeparator3.Name = "toolStripSeparator3";
            this.toolStripSeparator3.Size = new System.Drawing.Size(172, 6);
            // 
            // OnlineStat
            // 
            this.OnlineStat.Name = "OnlineStat";
            this.OnlineStat.Size = new System.Drawing.Size(175, 22);
            this.OnlineStat.Text = "Server Status";
            this.OnlineStat.Visible = false;
            this.OnlineStat.Click += new System.EventHandler(this.StatusUToolStripMenuItem_Click);
            // 
            // toolStripSeparator5
            // 
            this.toolStripSeparator5.Name = "toolStripSeparator5";
            this.toolStripSeparator5.Size = new System.Drawing.Size(172, 6);
            // 
            // ExitEditor
            // 
            this.ExitEditor.Name = "ExitEditor";
            this.ExitEditor.Size = new System.Drawing.Size(175, 22);
            this.ExitEditor.Text = "Exit";
            this.ExitEditor.Click += new System.EventHandler(this.CloseToolStripMenuItem_Click);
            // 
            // toolStripMenuItem1
            // 
            this.toolStripMenuItem1.Name = "toolStripMenuItem1";
            this.toolStripMenuItem1.Size = new System.Drawing.Size(101, 20);
            this.toolStripMenuItem1.Text = "Create Account";
            this.toolStripMenuItem1.Click += new System.EventHandler(this.AddAcountNToolStripMenuItem_Click);
            // 
            // toolStripMenuItem3
            // 
            this.toolStripMenuItem3.Name = "toolStripMenuItem3";
            this.toolStripMenuItem3.Size = new System.Drawing.Size(108, 20);
            this.toolStripMenuItem3.Text = "CashShop Points";
            this.toolStripMenuItem3.Click += new System.EventHandler(this.CashShopPoint_Click);
            // 
            // toolStripMenuItem4
            // 
            this.toolStripMenuItem4.Name = "toolStripMenuItem4";
            this.toolStripMenuItem4.Size = new System.Drawing.Size(47, 20);
            this.toolStripMenuItem4.Text = "Guild";
            this.toolStripMenuItem4.Click += new System.EventHandler(this.GuildGToolStripMenuItem_Click);
            // 
            // toolStripMenuItem5
            // 
            this.toolStripMenuItem5.Name = "toolStripMenuItem5";
            this.toolStripMenuItem5.Size = new System.Drawing.Size(86, 20);
            this.toolStripMenuItem5.Text = "Server Status";
            this.toolStripMenuItem5.Click += new System.EventHandler(this.StatusUToolStripMenuItem_Click);
            // 
            // toolStripMenuItem2
            // 
            this.toolStripMenuItem2.Name = "toolStripMenuItem2";
            this.toolStripMenuItem2.Size = new System.Drawing.Size(120, 20);
            this.toolStripMenuItem2.Text = "Character Manager";
            this.toolStripMenuItem2.Visible = false;
            this.toolStripMenuItem2.Click += new System.EventHandler(this.UserstoolStripMenuItem1_Click);
            // 
            // HELP_MenuItem
            // 
            this.HELP_MenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.Help,
            this.About});
            this.HELP_MenuItem.Enabled = false;
            this.HELP_MenuItem.Name = "HELP_MenuItem";
            this.HELP_MenuItem.Size = new System.Drawing.Size(61, 20);
            this.HELP_MenuItem.Text = "Help(&H)";
            this.HELP_MenuItem.Visible = false;
            // 
            // Help
            // 
            this.Help.Name = "Help";
            this.Help.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.F1)));
            this.Help.Size = new System.Drawing.Size(162, 22);
            this.Help.Text = "Help(&H)";
            this.Help.Click += new System.EventHandler(this.HelpHToolStripMenuItem_Click);
            // 
            // About
            // 
            this.About.Name = "About";
            this.About.Size = new System.Drawing.Size(162, 22);
            this.About.Text = "About(&A)";
            this.About.Click += new System.EventHandler(this.AbautAToolStripMenuItem_Click);
            // 
            // testeToolStripMenuItem
            // 
            this.testeToolStripMenuItem.Enabled = false;
            this.testeToolStripMenuItem.Name = "testeToolStripMenuItem";
            this.testeToolStripMenuItem.Size = new System.Drawing.Size(74, 20);
            this.testeToolStripMenuItem.Text = "ItemEditor";
            this.testeToolStripMenuItem.Visible = false;
            this.testeToolStripMenuItem.Click += new System.EventHandler(this.testeToolStripMenuItem_Click);
            // 
            // cbAll
            // 
            this.cbAll.AutoSize = true;
            this.cbAll.Location = new System.Drawing.Point(6, 251);
            this.cbAll.Name = "cbAll";
            this.cbAll.Size = new System.Drawing.Size(70, 17);
            this.cbAll.TabIndex = 55;
            this.cbAll.Text = "Select All";
            this.cbAll.UseVisualStyleBackColor = true;
            this.cbAll.CheckedChanged += new System.EventHandler(this.cbAll_CheckedChanged);
            // 
            // tabPage4
            // 
            this.tabPage4.BackColor = System.Drawing.Color.Silver;
            this.tabPage4.Controls.Add(this.groupBox5);
            this.tabPage4.Location = new System.Drawing.Point(4, 22);
            this.tabPage4.Name = "tabPage4";
            this.tabPage4.Padding = new System.Windows.Forms.Padding(3);
            this.tabPage4.Size = new System.Drawing.Size(408, 458);
            this.tabPage4.TabIndex = 1;
            this.tabPage4.Text = "Character";
            // 
            // groupBox5
            // 
            this.groupBox5.BackColor = System.Drawing.Color.Silver;
            this.groupBox5.Controls.Add(this.button3);
            this.groupBox5.Controls.Add(this.txtFruitSubPoint);
            this.groupBox5.Controls.Add(this.btnUpdateChar);
            this.groupBox5.Controls.Add(this.groupBox4);
            this.groupBox5.Controls.Add(this.label27);
            this.groupBox5.Controls.Add(this.txtFruitAddPoint);
            this.groupBox5.Controls.Add(this.label25);
            this.groupBox5.Controls.Add(this.label15);
            this.groupBox5.Controls.Add(this.label18);
            this.groupBox5.Controls.Add(this.laName);
            this.groupBox5.Controls.Add(this.btnExp);
            this.groupBox5.Controls.Add(this.txtChar);
            this.groupBox5.Controls.Add(this.label20);
            this.groupBox5.Controls.Add(this.cboClass);
            this.groupBox5.Controls.Add(this.label10);
            this.groupBox5.Controls.Add(this.txtExp);
            this.groupBox5.Controls.Add(this.label21);
            this.groupBox5.Controls.Add(this.txtStrength);
            this.groupBox5.Controls.Add(this.txtVitality);
            this.groupBox5.Controls.Add(this.txtLeaderShip);
            this.groupBox5.Controls.Add(this.cboCode);
            this.groupBox5.Controls.Add(this.label22);
            this.groupBox5.Controls.Add(this.cboMap);
            this.groupBox5.Controls.Add(this.txtPosX);
            this.groupBox5.Controls.Add(this.txtPosY);
            this.groupBox5.Controls.Add(this.label24);
            this.groupBox5.Controls.Add(this.cboPK);
            this.groupBox5.Controls.Add(this.label23);
            this.groupBox5.Controls.Add(this.txtLevel);
            this.groupBox5.Controls.Add(this.label19);
            this.groupBox5.Controls.Add(this.txtEnergy);
            this.groupBox5.Controls.Add(this.label17);
            this.groupBox5.Controls.Add(this.txtPoint);
            this.groupBox5.Controls.Add(this.label16);
            this.groupBox5.Controls.Add(this.txtDexterity);
            this.groupBox5.Controls.Add(this.label14);
            this.groupBox5.Location = new System.Drawing.Point(3, 5);
            this.groupBox5.Name = "groupBox5";
            this.groupBox5.Size = new System.Drawing.Size(399, 450);
            this.groupBox5.TabIndex = 64;
            this.groupBox5.TabStop = false;
            this.groupBox5.Text = "Character Info";
            // 
            // txtFruitSubPoint
            // 
            this.txtFruitSubPoint.IsOnlyNumber = true;
            this.txtFruitSubPoint.Location = new System.Drawing.Point(85, 287);
            this.txtFruitSubPoint.Name = "txtFruitSubPoint";
            this.txtFruitSubPoint.Size = new System.Drawing.Size(106, 20);
            this.txtFruitSubPoint.TabIndex = 64;
            // 
            // btnUpdateChar
            // 
            this.btnUpdateChar.Location = new System.Drawing.Point(243, 402);
            this.btnUpdateChar.Name = "btnUpdateChar";
            this.btnUpdateChar.RightToLeft = System.Windows.Forms.RightToLeft.No;
            this.btnUpdateChar.Size = new System.Drawing.Size(159, 47);
            this.btnUpdateChar.TabIndex = 25;
            this.btnUpdateChar.Text = "Update Character";
            this.btnUpdateChar.UseVisualStyleBackColor = true;
            this.btnUpdateChar.Click += new System.EventHandler(this.btnUpdateChar_Click);
            // 
            // groupBox4
            // 
            this.groupBox4.BackColor = System.Drawing.Color.Silver;
            this.groupBox4.Controls.Add(this.clbCharacter);
            this.groupBox4.Controls.Add(this.cbSaveJN);
            this.groupBox4.Controls.Add(this.cbAll);
            this.groupBox4.Location = new System.Drawing.Point(210, 71);
            this.groupBox4.Name = "groupBox4";
            this.groupBox4.Size = new System.Drawing.Size(189, 278);
            this.groupBox4.TabIndex = 63;
            this.groupBox4.TabStop = false;
            this.groupBox4.Text = "Skills";
            // 
            // clbCharacter
            // 
            this.clbCharacter.CheckOnClick = true;
            this.clbCharacter.FormattingEnabled = true;
            this.clbCharacter.Location = new System.Drawing.Point(2, 19);
            this.clbCharacter.Name = "clbCharacter";
            this.clbCharacter.Size = new System.Drawing.Size(181, 229);
            this.clbCharacter.TabIndex = 52;
            // 
            // cbSaveJN
            // 
            this.cbSaveJN.AutoSize = true;
            this.cbSaveJN.Location = new System.Drawing.Point(91, 251);
            this.cbSaveJN.Name = "cbSaveJN";
            this.cbSaveJN.Size = new System.Drawing.Size(73, 17);
            this.cbSaveJN.TabIndex = 62;
            this.cbSaveJN.Text = "Save Skill";
            this.cbSaveJN.UseVisualStyleBackColor = true;
            // 
            // label27
            // 
            this.label27.AutoSize = true;
            this.label27.Location = new System.Drawing.Point(3, 290);
            this.label27.Name = "label27";
            this.label27.Size = new System.Drawing.Size(76, 13);
            this.label27.TabIndex = 63;
            this.label27.Text = "FruitSubPoint: ";
            // 
            // txtFruitAddPoint
            // 
            this.txtFruitAddPoint.IsOnlyNumber = true;
            this.txtFruitAddPoint.Location = new System.Drawing.Point(85, 261);
            this.txtFruitAddPoint.Name = "txtFruitAddPoint";
            this.txtFruitAddPoint.Size = new System.Drawing.Size(106, 20);
            this.txtFruitAddPoint.TabIndex = 62;
            // 
            // label25
            // 
            this.label25.AutoSize = true;
            this.label25.Location = new System.Drawing.Point(3, 269);
            this.label25.Name = "label25";
            this.label25.Size = new System.Drawing.Size(76, 13);
            this.label25.TabIndex = 61;
            this.label25.Text = "FruitAddPoint: ";
            // 
            // label15
            // 
            this.label15.AutoSize = true;
            this.label15.Location = new System.Drawing.Point(36, 81);
            this.label15.Name = "label15";
            this.label15.Size = new System.Drawing.Size(39, 13);
            this.label15.TabIndex = 1;
            this.label15.Text = "Level: ";
            // 
            // label18
            // 
            this.label18.AutoSize = true;
            this.label18.Location = new System.Drawing.Point(209, 49);
            this.label18.Name = "label18";
            this.label18.Size = new System.Drawing.Size(39, 13);
            this.label18.TabIndex = 4;
            this.label18.Text = "Points:";
            // 
            // laName
            // 
            this.laName.AutoSize = true;
            this.laName.Location = new System.Drawing.Point(34, 25);
            this.laName.Name = "laName";
            this.laName.Size = new System.Drawing.Size(41, 13);
            this.laName.TabIndex = 32;
            this.laName.Text = "Name: ";
            // 
            // btnExp
            // 
            this.btnExp.Location = new System.Drawing.Point(343, 17);
            this.btnExp.Name = "btnExp";
            this.btnExp.Size = new System.Drawing.Size(50, 23);
            this.btnExp.TabIndex = 60;
            this.btnExp.Text = "Fix Exp";
            this.btnExp.UseVisualStyleBackColor = true;
            this.btnExp.Click += new System.EventHandler(this.btnExp_Click);
            // 
            // txtChar
            // 
            this.txtChar.IsOnlyNumber = false;
            this.txtChar.Location = new System.Drawing.Point(85, 18);
            this.txtChar.Name = "txtChar";
            this.txtChar.ReadOnly = true;
            this.txtChar.Size = new System.Drawing.Size(106, 20);
            this.txtChar.TabIndex = 0;
            // 
            // label20
            // 
            this.label20.AutoSize = true;
            this.label20.Location = new System.Drawing.Point(23, 137);
            this.label20.Name = "label20";
            this.label20.Size = new System.Drawing.Size(51, 13);
            this.label20.TabIndex = 6;
            this.label20.Text = "Dexterity:";
            // 
            // cboClass
            // 
            this.cboClass.DropDownHeight = 306;
            this.cboClass.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cboClass.FormattingEnabled = true;
            this.cboClass.IntegralHeight = false;
            this.cboClass.Items.AddRange(new object[] {
            "Dark Wizard",
            "Soul Master",
            "Grand Master",
            "Dark Knight",
            "Blade Knight",
            "Blade Master",
            "Elf",
            "Muse Elf",
            "High Elf",
            "Magic Gladiator",
            "Duel Master",
            "Dark Lord",
            "Lord Emperor",
            "Summoner",
            "Bloody Summoner",
            "Dimension Master",
            "Rage Fighter",
            "Fist Master",
            "Grow Lancer",
            "Mirage Lancer"});
            this.cboClass.Location = new System.Drawing.Point(85, 46);
            this.cboClass.Name = "cboClass";
            this.cboClass.Size = new System.Drawing.Size(106, 21);
            this.cboClass.TabIndex = 21;
            this.cboClass.SelectedIndexChanged += new System.EventHandler(this.cboClass_SelectedIndexChanged);
            // 
            // label10
            // 
            this.label10.AutoSize = true;
            this.label10.Location = new System.Drawing.Point(11, 215);
            this.label10.Name = "label10";
            this.label10.Size = new System.Drawing.Size(64, 13);
            this.label10.TabIndex = 34;
            this.label10.Text = "LeaderShip:";
            // 
            // txtExp
            // 
            this.txtExp.IsOnlyNumber = true;
            this.txtExp.Location = new System.Drawing.Point(232, 19);
            this.txtExp.Name = "txtExp";
            this.txtExp.Size = new System.Drawing.Size(106, 20);
            this.txtExp.TabIndex = 11;
            // 
            // label21
            // 
            this.label21.AutoSize = true;
            this.label21.Location = new System.Drawing.Point(26, 378);
            this.label21.Name = "label21";
            this.label21.Size = new System.Drawing.Size(53, 13);
            this.label21.TabIndex = 7;
            this.label21.Text = "PKLevel: ";
            // 
            // txtStrength
            // 
            this.txtStrength.IsOnlyNumber = true;
            this.txtStrength.Location = new System.Drawing.Point(85, 100);
            this.txtStrength.Name = "txtStrength";
            this.txtStrength.Size = new System.Drawing.Size(106, 20);
            this.txtStrength.TabIndex = 12;
            // 
            // txtVitality
            // 
            this.txtVitality.IsOnlyNumber = true;
            this.txtVitality.Location = new System.Drawing.Point(85, 156);
            this.txtVitality.Name = "txtVitality";
            this.txtVitality.Size = new System.Drawing.Size(106, 20);
            this.txtVitality.TabIndex = 13;
            // 
            // txtLeaderShip
            // 
            this.txtLeaderShip.IsOnlyNumber = true;
            this.txtLeaderShip.Location = new System.Drawing.Point(85, 208);
            this.txtLeaderShip.Name = "txtLeaderShip";
            this.txtLeaderShip.Size = new System.Drawing.Size(106, 20);
            this.txtLeaderShip.TabIndex = 33;
            // 
            // cboCode
            // 
            this.cboCode.FormattingEnabled = true;
            this.cboCode.Items.AddRange(new object[] {
            "Player",
            "Banned",
            "Moderator",
            "Hidden",
            "GM",
            "Event",
            "All"});
            this.cboCode.Location = new System.Drawing.Point(85, 234);
            this.cboCode.Name = "cboCode";
            this.cboCode.Size = new System.Drawing.Size(106, 21);
            this.cboCode.TabIndex = 23;
            // 
            // label22
            // 
            this.label22.AutoSize = true;
            this.label22.Location = new System.Drawing.Point(31, 189);
            this.label22.Name = "label22";
            this.label22.Size = new System.Drawing.Size(43, 13);
            this.label22.TabIndex = 8;
            this.label22.Text = "Energy:";
            // 
            // cboMap
            // 
            this.cboMap.DropDownHeight = 306;
            this.cboMap.FormattingEnabled = true;
            this.cboMap.IntegralHeight = false;
            this.cboMap.Items.AddRange(new object[] {
            "Lorencia",
            "Dungeon",
            "Devias",
            "Noria",
            "Elveland",
            "Elveland 2",
            "Arena",
            "Atlans",
            "Tarkan",
            "Devil Square 1, 2, 3 and 4",
            "Castle Siege",
            "Blood Castle 1",
            "Blood Castle 2",
            "Blood Castle 3",
            "Blood Castle 4",
            "Blood Castle 5",
            "Blood Castle 6",
            "Blood Castle 7",
            "Lost Tower 1",
            "Lost Tower 2",
            "Lost Tower 3",
            "Lost Tower 4",
            "Lost Tower 5",
            "Lost Tower 6",
            "Kalima 1",
            "Kalima 2",
            "Kalima 3",
            "Kalima 4",
            "Kalima 5",
            "Kalima 6",
            "Valley of Loren",
            "UNKNOWN",
            "Devil Square 5 & 6",
            "Swamp of Calmness",
            "Crywolf Fortress",
            "UNKNOWN - 35",
            "Kalima 7",
            "Kanturu Ruins",
            "Kanturu",
            "Refinery",
            "UNKNOWN - 40",
            "Balgass\' Barracks",
            "卡巴斯休息处",
            "UNKNOWN - 43",
            "UNKNOWN - 44",
            "Illusion Temple 1",
            "Illusion Temple 2",
            "Illusion Temple 3",
            "Illusion Temple 4",
            "Illusion Temple 5",
            "Illusion Temple 6",
            "UNKNOWN",
            "Blood Castle 8",
            "UNKNOWN 7",
            "Character select",
            "Select server",
            "Silent Map",
            "LaCleon",
            "Raklion Hatchery",
            "UNKNOWN - 59",
            "UNKNOWN - 60",
            "UNKNOWN - 61",
            "North Pole"});
            this.cboMap.Location = new System.Drawing.Point(85, 315);
            this.cboMap.Name = "cboMap";
            this.cboMap.Size = new System.Drawing.Size(106, 21);
            this.cboMap.TabIndex = 24;
            // 
            // txtPosX
            // 
            this.txtPosX.IsOnlyNumber = true;
            this.txtPosX.Location = new System.Drawing.Point(85, 346);
            this.txtPosX.Name = "txtPosX";
            this.txtPosX.Size = new System.Drawing.Size(49, 20);
            this.txtPosX.TabIndex = 15;
            // 
            // txtPosY
            // 
            this.txtPosY.IsOnlyNumber = true;
            this.txtPosY.Location = new System.Drawing.Point(140, 346);
            this.txtPosY.Name = "txtPosY";
            this.txtPosY.Size = new System.Drawing.Size(51, 20);
            this.txtPosY.TabIndex = 20;
            // 
            // label24
            // 
            this.label24.AutoSize = true;
            this.label24.Location = new System.Drawing.Point(10, 242);
            this.label24.Name = "label24";
            this.label24.Size = new System.Drawing.Size(69, 13);
            this.label24.TabIndex = 10;
            this.label24.Text = "Player Type: ";
            // 
            // cboPK
            // 
            this.cboPK.FormattingEnabled = true;
            this.cboPK.Items.AddRange(new object[] {
            "Warrior",
            "Hero",
            "2nd Stage Hero",
            "Commoner",
            "1st Stage Outlaw",
            "2nd Stage Outlaw",
            "3rd Stage Outlaw"});
            this.cboPK.Location = new System.Drawing.Point(85, 375);
            this.cboPK.Name = "cboPK";
            this.cboPK.Size = new System.Drawing.Size(106, 21);
            this.cboPK.TabIndex = 22;
            // 
            // label23
            // 
            this.label23.AutoSize = true;
            this.label23.Location = new System.Drawing.Point(23, 319);
            this.label23.Name = "label23";
            this.label23.Size = new System.Drawing.Size(54, 13);
            this.label23.TabIndex = 9;
            this.label23.Text = "Location: ";
            // 
            // txtLevel
            // 
            this.txtLevel.IsOnlyNumber = true;
            this.txtLevel.Location = new System.Drawing.Point(85, 74);
            this.txtLevel.Name = "txtLevel";
            this.txtLevel.Size = new System.Drawing.Size(106, 20);
            this.txtLevel.TabIndex = 14;
            // 
            // label19
            // 
            this.label19.AutoSize = true;
            this.label19.Location = new System.Drawing.Point(34, 163);
            this.label19.Name = "label19";
            this.label19.Size = new System.Drawing.Size(40, 13);
            this.label19.TabIndex = 5;
            this.label19.Text = "Vitality:";
            // 
            // txtEnergy
            // 
            this.txtEnergy.IsOnlyNumber = true;
            this.txtEnergy.Location = new System.Drawing.Point(85, 182);
            this.txtEnergy.Name = "txtEnergy";
            this.txtEnergy.Size = new System.Drawing.Size(106, 20);
            this.txtEnergy.TabIndex = 18;
            // 
            // label17
            // 
            this.label17.AutoSize = true;
            this.label17.Location = new System.Drawing.Point(24, 107);
            this.label17.Name = "label17";
            this.label17.Size = new System.Drawing.Size(50, 13);
            this.label17.TabIndex = 3;
            this.label17.Text = "Strength:";
            // 
            // txtPoint
            // 
            this.txtPoint.IsOnlyNumber = true;
            this.txtPoint.Location = new System.Drawing.Point(254, 45);
            this.txtPoint.Name = "txtPoint";
            this.txtPoint.Size = new System.Drawing.Size(106, 20);
            this.txtPoint.TabIndex = 16;
            // 
            // label16
            // 
            this.label16.AutoSize = true;
            this.label16.Location = new System.Drawing.Point(37, 54);
            this.label16.Name = "label16";
            this.label16.Size = new System.Drawing.Size(38, 13);
            this.label16.TabIndex = 2;
            this.label16.Text = "Class: ";
            // 
            // txtDexterity
            // 
            this.txtDexterity.IsOnlyNumber = true;
            this.txtDexterity.Location = new System.Drawing.Point(85, 130);
            this.txtDexterity.Name = "txtDexterity";
            this.txtDexterity.Size = new System.Drawing.Size(106, 20);
            this.txtDexterity.TabIndex = 17;
            // 
            // label14
            // 
            this.label14.AutoSize = true;
            this.label14.Location = new System.Drawing.Point(207, 25);
            this.label14.Name = "label14";
            this.label14.Size = new System.Drawing.Size(28, 13);
            this.label14.TabIndex = 0;
            this.label14.Text = "Exp:";
            // 
            // groupBox2
            // 
            this.groupBox2.BackColor = System.Drawing.Color.Silver;
            this.groupBox2.Controls.Add(this.textBox1);
            this.groupBox2.Controls.Add(this.label12);
            this.groupBox2.Controls.Add(this.txtJF);
            this.groupBox2.Controls.Add(this.txtNick);
            this.groupBox2.Controls.Add(this.label32);
            this.groupBox2.Controls.Add(this.label13);
            this.groupBox2.Controls.Add(this.btnAccount);
            this.groupBox2.Controls.Add(this.chkState);
            this.groupBox2.Controls.Add(this.label9);
            this.groupBox2.Controls.Add(this.txtSNO);
            this.groupBox2.Controls.Add(this.label8);
            this.groupBox2.Controls.Add(this.txtAnswer);
            this.groupBox2.Controls.Add(this.label7);
            this.groupBox2.Controls.Add(this.txtQuestion);
            this.groupBox2.Controls.Add(this.txtPassword);
            this.groupBox2.Controls.Add(this.txtAcc);
            this.groupBox2.Controls.Add(this.label6);
            this.groupBox2.Controls.Add(this.label5);
            this.groupBox2.Controls.Add(this.label4);
            this.groupBox2.Controls.Add(this.label3);
            this.groupBox2.Location = new System.Drawing.Point(6, 6);
            this.groupBox2.Name = "groupBox2";
            this.groupBox2.Size = new System.Drawing.Size(396, 283);
            this.groupBox2.TabIndex = 3;
            this.groupBox2.TabStop = false;
            this.groupBox2.Text = "Account";
            // 
            // textBox1
            // 
            this.textBox1.IsOnlyNumber = false;
            this.textBox1.Location = new System.Drawing.Point(90, 94);
            this.textBox1.Name = "textBox1";
            this.textBox1.Size = new System.Drawing.Size(128, 20);
            this.textBox1.TabIndex = 25;
            // 
            // label12
            // 
            this.label12.BackColor = System.Drawing.Color.Transparent;
            this.label12.Location = new System.Drawing.Point(0, -3);
            this.label12.Name = "label12";
            this.label12.Size = new System.Drawing.Size(75, 20);
            this.label12.TabIndex = 0;
            // 
            // txtJF
            // 
            this.txtJF.Enabled = false;
            this.txtJF.IsOnlyNumber = true;
            this.txtJF.Location = new System.Drawing.Point(90, 246);
            this.txtJF.Name = "txtJF";
            this.txtJF.Size = new System.Drawing.Size(45, 20);
            this.txtJF.TabIndex = 23;
            this.txtJF.Visible = false;
            // 
            // txtNick
            // 
            this.txtNick.IsOnlyNumber = false;
            this.txtNick.Location = new System.Drawing.Point(90, 68);
            this.txtNick.MaxLength = 10;
            this.txtNick.Name = "txtNick";
            this.txtNick.Size = new System.Drawing.Size(128, 20);
            this.txtNick.TabIndex = 5;
            // 
            // label32
            // 
            this.label32.AutoSize = true;
            this.label32.Location = new System.Drawing.Point(5, 71);
            this.label32.Name = "label32";
            this.label32.Size = new System.Drawing.Size(58, 13);
            this.label32.TabIndex = 24;
            this.label32.Text = "Nickname:";
            // 
            // label13
            // 
            this.label13.AutoSize = true;
            this.label13.Location = new System.Drawing.Point(5, 249);
            this.label13.Name = "label13";
            this.label13.Size = new System.Drawing.Size(68, 13);
            this.label13.TabIndex = 21;
            this.label13.Text = "UNKNOWN:";
            this.label13.Visible = false;
            // 
            // btnAccount
            // 
            this.btnAccount.Location = new System.Drawing.Point(156, 224);
            this.btnAccount.Name = "btnAccount";
            this.btnAccount.Size = new System.Drawing.Size(62, 42);
            this.btnAccount.TabIndex = 15;
            this.btnAccount.Text = "Update";
            this.btnAccount.UseVisualStyleBackColor = true;
            this.btnAccount.Click += new System.EventHandler(this.btnAccount_Click);
            // 
            // chkState
            // 
            this.chkState.AutoSize = true;
            this.chkState.Location = new System.Drawing.Point(90, 204);
            this.chkState.Name = "chkState";
            this.chkState.Size = new System.Drawing.Size(44, 17);
            this.chkState.TabIndex = 14;
            this.chkState.Text = "Yes";
            this.chkState.UseVisualStyleBackColor = true;
            // 
            // label9
            // 
            this.label9.AutoSize = true;
            this.label9.Location = new System.Drawing.Point(6, 204);
            this.label9.Name = "label9";
            this.label9.Size = new System.Drawing.Size(49, 13);
            this.label9.TabIndex = 13;
            this.label9.Text = "Blocked:";
            // 
            // txtSNO
            // 
            this.txtSNO.IsOnlyNumber = false;
            this.txtSNO.Location = new System.Drawing.Point(90, 175);
            this.txtSNO.MaxLength = 18;
            this.txtSNO.Name = "txtSNO";
            this.txtSNO.Size = new System.Drawing.Size(128, 20);
            this.txtSNO.TabIndex = 12;
            // 
            // label8
            // 
            this.label8.AutoSize = true;
            this.label8.Location = new System.Drawing.Point(5, 177);
            this.label8.Name = "label8";
            this.label8.Size = new System.Drawing.Size(58, 13);
            this.label8.TabIndex = 11;
            this.label8.Text = "Unique ID:";
            // 
            // txtAnswer
            // 
            this.txtAnswer.IsOnlyNumber = false;
            this.txtAnswer.Location = new System.Drawing.Point(90, 148);
            this.txtAnswer.MaxLength = 50;
            this.txtAnswer.Name = "txtAnswer";
            this.txtAnswer.Size = new System.Drawing.Size(128, 20);
            this.txtAnswer.TabIndex = 8;
            // 
            // label7
            // 
            this.label7.AutoSize = true;
            this.label7.Location = new System.Drawing.Point(5, 151);
            this.label7.Name = "label7";
            this.label7.Size = new System.Drawing.Size(82, 13);
            this.label7.TabIndex = 9;
            this.label7.Text = "Secret Answer: ";
            // 
            // txtQuestion
            // 
            this.txtQuestion.IsOnlyNumber = false;
            this.txtQuestion.Location = new System.Drawing.Point(90, 121);
            this.txtQuestion.MaxLength = 50;
            this.txtQuestion.Name = "txtQuestion";
            this.txtQuestion.Size = new System.Drawing.Size(128, 20);
            this.txtQuestion.TabIndex = 7;
            // 
            // txtPassword
            // 
            this.txtPassword.IsOnlyNumber = false;
            this.txtPassword.Location = new System.Drawing.Point(90, 41);
            this.txtPassword.Name = "txtPassword";
            this.txtPassword.Size = new System.Drawing.Size(128, 20);
            this.txtPassword.TabIndex = 4;
            // 
            // txtAcc
            // 
            this.txtAcc.IsOnlyNumber = false;
            this.txtAcc.Location = new System.Drawing.Point(90, 14);
            this.txtAcc.Name = "txtAcc";
            this.txtAcc.ReadOnly = true;
            this.txtAcc.Size = new System.Drawing.Size(128, 20);
            this.txtAcc.TabIndex = 3;
            // 
            // label6
            // 
            this.label6.AutoSize = true;
            this.label6.Location = new System.Drawing.Point(5, 124);
            this.label6.Name = "label6";
            this.label6.Size = new System.Drawing.Size(86, 13);
            this.label6.TabIndex = 4;
            this.label6.Text = "Secret Question:";
            // 
            // label5
            // 
            this.label5.AutoSize = true;
            this.label5.Location = new System.Drawing.Point(5, 97);
            this.label5.Name = "label5";
            this.label5.Size = new System.Drawing.Size(79, 13);
            this.label5.TabIndex = 3;
            this.label5.Text = "E-mail Address:";
            // 
            // label4
            // 
            this.label4.AutoSize = true;
            this.label4.Location = new System.Drawing.Point(5, 44);
            this.label4.Name = "label4";
            this.label4.Size = new System.Drawing.Size(56, 13);
            this.label4.TabIndex = 2;
            this.label4.Text = "Password:";
            // 
            // label3
            // 
            this.label3.AutoSize = true;
            this.label3.Location = new System.Drawing.Point(5, 20);
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size(58, 13);
            this.label3.TabIndex = 1;
            this.label3.Text = "Username:";
            // 
            // tabPage3
            // 
            this.tabPage3.BackColor = System.Drawing.Color.Silver;
            this.tabPage3.Controls.Add(this.groupBox3);
            this.tabPage3.Controls.Add(this.groupBox2);
            this.tabPage3.Location = new System.Drawing.Point(4, 22);
            this.tabPage3.Name = "tabPage3";
            this.tabPage3.Padding = new System.Windows.Forms.Padding(3);
            this.tabPage3.Size = new System.Drawing.Size(408, 458);
            this.tabPage3.TabIndex = 0;
            this.tabPage3.Text = "Account";
            // 
            // groupBox3
            // 
            this.groupBox3.BackColor = System.Drawing.Color.Silver;
            this.groupBox3.Controls.Add(this.lblServerNameResult);
            this.groupBox3.Controls.Add(this.lblDisconnectResult);
            this.groupBox3.Controls.Add(this.lblConnectResult);
            this.groupBox3.Controls.Add(this.label35);
            this.groupBox3.Controls.Add(this.label34);
            this.groupBox3.Controls.Add(this.lblIP);
            this.groupBox3.Controls.Add(this.lblOnlineHours);
            this.groupBox3.Controls.Add(this.lblDisConnectTime);
            this.groupBox3.Controls.Add(this.lblConnectTime);
            this.groupBox3.Controls.Add(this.label36);
            this.groupBox3.Controls.Add(this.lblState);
            this.groupBox3.Controls.Add(this.lblServer);
            this.groupBox3.Location = new System.Drawing.Point(6, 295);
            this.groupBox3.Name = "groupBox3";
            this.groupBox3.Size = new System.Drawing.Size(396, 159);
            this.groupBox3.TabIndex = 4;
            this.groupBox3.TabStop = false;
            this.groupBox3.Text = "Server Status";
            // 
            // lblServerNameResult
            // 
            this.lblServerNameResult.AutoSize = true;
            this.lblServerNameResult.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold);
            this.lblServerNameResult.ForeColor = System.Drawing.Color.Black;
            this.lblServerNameResult.Location = new System.Drawing.Point(88, 25);
            this.lblServerNameResult.Name = "lblServerNameResult";
            this.lblServerNameResult.Size = new System.Drawing.Size(19, 13);
            this.lblServerNameResult.TabIndex = 22;
            this.lblServerNameResult.Text = "---";
            // 
            // lblDisconnectResult
            // 
            this.lblDisconnectResult.Location = new System.Drawing.Point(88, 109);
            this.lblDisconnectResult.Name = "lblDisconnectResult";
            this.lblDisconnectResult.RightToLeft = System.Windows.Forms.RightToLeft.No;
            this.lblDisconnectResult.Size = new System.Drawing.Size(289, 19);
            this.lblDisconnectResult.TabIndex = 21;
            this.lblDisconnectResult.Text = "---";
            this.lblDisconnectResult.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            // 
            // lblConnectResult
            // 
            this.lblConnectResult.Location = new System.Drawing.Point(88, 89);
            this.lblConnectResult.Name = "lblConnectResult";
            this.lblConnectResult.RightToLeft = System.Windows.Forms.RightToLeft.No;
            this.lblConnectResult.Size = new System.Drawing.Size(289, 19);
            this.lblConnectResult.TabIndex = 20;
            this.lblConnectResult.Text = "---";
            this.lblConnectResult.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            // 
            // label35
            // 
            this.label35.AutoSize = true;
            this.label35.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
            this.label35.Location = new System.Drawing.Point(3, 47);
            this.label35.Name = "label35";
            this.label35.Size = new System.Drawing.Size(83, 13);
            this.label35.TabIndex = 19;
            this.label35.Text = "Account Status:";
            // 
            // label34
            // 
            this.label34.AutoSize = true;
            this.label34.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
            this.label34.Location = new System.Drawing.Point(3, 138);
            this.label34.Name = "label34";
            this.label34.Size = new System.Drawing.Size(83, 13);
            this.label34.TabIndex = 18;
            this.label34.Text = "Online Duration:";
            // 
            // lblIP
            // 
            this.lblIP.Location = new System.Drawing.Point(88, 66);
            this.lblIP.Name = "lblIP";
            this.lblIP.RightToLeft = System.Windows.Forms.RightToLeft.No;
            this.lblIP.Size = new System.Drawing.Size(187, 19);
            this.lblIP.TabIndex = 16;
            this.lblIP.Text = "0.0.0.0";
            this.lblIP.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            // 
            // lblOnlineHours
            // 
            this.lblOnlineHours.AutoSize = true;
            this.lblOnlineHours.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold);
            this.lblOnlineHours.Location = new System.Drawing.Point(88, 138);
            this.lblOnlineHours.Name = "lblOnlineHours";
            this.lblOnlineHours.Size = new System.Drawing.Size(51, 13);
            this.lblOnlineHours.TabIndex = 15;
            this.lblOnlineHours.Text = "0 Hours";
            // 
            // lblDisConnectTime
            // 
            this.lblDisConnectTime.AutoSize = true;
            this.lblDisConnectTime.Location = new System.Drawing.Point(3, 115);
            this.lblDisConnectTime.Name = "lblDisConnectTime";
            this.lblDisConnectTime.Size = new System.Drawing.Size(66, 13);
            this.lblDisConnectTime.TabIndex = 14;
            this.lblDisConnectTime.Text = "Last Offline: ";
            // 
            // lblConnectTime
            // 
            this.lblConnectTime.AutoSize = true;
            this.lblConnectTime.Location = new System.Drawing.Point(3, 92);
            this.lblConnectTime.Name = "lblConnectTime";
            this.lblConnectTime.Size = new System.Drawing.Size(66, 13);
            this.lblConnectTime.TabIndex = 13;
            this.lblConnectTime.Text = "Last Online: ";
            // 
            // label36
            // 
            this.label36.AutoSize = true;
            this.label36.Location = new System.Drawing.Point(4, 69);
            this.label36.Name = "label36";
            this.label36.Size = new System.Drawing.Size(61, 13);
            this.label36.TabIndex = 12;
            this.label36.Text = "IP Address:";
            // 
            // lblState
            // 
            this.lblState.AutoSize = true;
            this.lblState.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold);
            this.lblState.ForeColor = System.Drawing.Color.Black;
            this.lblState.Location = new System.Drawing.Point(88, 47);
            this.lblState.Name = "lblState";
            this.lblState.Size = new System.Drawing.Size(86, 13);
            this.lblState.TabIndex = 11;
            this.lblState.Text = "Online/Offline";
            // 
            // lblServer
            // 
            this.lblServer.AutoSize = true;
            this.lblServer.Location = new System.Drawing.Point(3, 25);
            this.lblServer.Name = "lblServer";
            this.lblServer.Size = new System.Drawing.Size(75, 13);
            this.lblServer.TabIndex = 10;
            this.lblServer.Text = "Server Name: ";
            // 
            // tabPage5
            // 
            this.tabPage5.Controls.Add(this.equipEditor);
            this.tabPage5.Location = new System.Drawing.Point(4, 22);
            this.tabPage5.Name = "tabPage5";
            this.tabPage5.Size = new System.Drawing.Size(408, 458);
            this.tabPage5.TabIndex = 2;
            this.tabPage5.Text = "Item";
            this.tabPage5.UseVisualStyleBackColor = true;
            // 
            // equipEditor
            // 
            this.equipEditor.AllPart = false;
            this.equipEditor.BackColor = System.Drawing.Color.Silver;
            this.equipEditor.DefaultDurability = ((byte)(255));
            this.equipEditor.Location = new System.Drawing.Point(-1, 4);
            this.equipEditor.Margin = new System.Windows.Forms.Padding(0);
            this.equipEditor.Name = "equipEditor";
            this.equipEditor.Size = new System.Drawing.Size(408, 457);
            this.equipEditor.TabIndex = 0;
            // 
            // tabcInfo
            // 
            this.tabcInfo.Controls.Add(this.tabPage3);
            this.tabcInfo.Controls.Add(this.tabPage4);
            this.tabcInfo.Controls.Add(this.tabPage5);
            this.tabcInfo.Enabled = false;
            this.tabcInfo.Location = new System.Drawing.Point(6, 90);
            this.tabcInfo.Name = "tabcInfo";
            this.tabcInfo.SelectedIndex = 0;
            this.tabcInfo.Size = new System.Drawing.Size(416, 484);
            this.tabcInfo.TabIndex = 18;
            // 
            // groupBox1
            // 
            this.groupBox1.BackColor = System.Drawing.Color.Silver;
            this.groupBox1.Controls.Add(this.btnChar);
            this.groupBox1.Controls.Add(this.btnWarehouse);
            this.groupBox1.Controls.Add(this.txtAccount);
            this.groupBox1.Controls.Add(this.cmbChar);
            this.groupBox1.Controls.Add(this.label2);
            this.groupBox1.Controls.Add(this.label1);
            this.groupBox1.ForeColor = System.Drawing.SystemColors.ControlText;
            this.groupBox1.Location = new System.Drawing.Point(6, 20);
            this.groupBox1.Name = "groupBox1";
            this.groupBox1.Size = new System.Drawing.Size(412, 64);
            this.groupBox1.TabIndex = 15;
            this.groupBox1.TabStop = false;
            // 
            // btnChar
            // 
            this.btnChar.Location = new System.Drawing.Point(304, 14);
            this.btnChar.Name = "btnChar";
            this.btnChar.Size = new System.Drawing.Size(83, 21);
            this.btnChar.TabIndex = 5;
            this.btnChar.Text = "Inventory";
            this.btnChar.UseVisualStyleBackColor = true;
            this.btnChar.Click += new System.EventHandler(this.btnChar_Click);
            // 
            // btnWarehouse
            // 
            this.btnWarehouse.Location = new System.Drawing.Point(304, 37);
            this.btnWarehouse.Name = "btnWarehouse";
            this.btnWarehouse.Size = new System.Drawing.Size(83, 21);
            this.btnWarehouse.TabIndex = 4;
            this.btnWarehouse.Text = "Vault";
            this.btnWarehouse.UseVisualStyleBackColor = true;
            this.btnWarehouse.Click += new System.EventHandler(this.btnWarehouse_Click);
            // 
            // txtAccount
            // 
            this.txtAccount.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
            this.txtAccount.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
            this.txtAccount.FormattingEnabled = true;
            this.txtAccount.Location = new System.Drawing.Point(9, 32);
            this.txtAccount.MaxLength = 10;
            this.txtAccount.Name = "txtAccount";
            this.txtAccount.Size = new System.Drawing.Size(108, 21);
            this.txtAccount.TabIndex = 1;
            this.txtAccount.SelectedIndexChanged += new System.EventHandler(this.txtAccount_SelectedIndexChanged);
            this.txtAccount.TextChanged += new System.EventHandler(this.txtAccount_TextChanged);
            this.txtAccount.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtAccount_KeyPress);
            // 
            // cmbChar
            // 
            this.cmbChar.FormattingEnabled = true;
            this.cmbChar.Location = new System.Drawing.Point(145, 30);
            this.cmbChar.MaxLength = 10;
            this.cmbChar.Name = "cmbChar";
            this.cmbChar.Size = new System.Drawing.Size(123, 21);
            this.cmbChar.TabIndex = 2;
            this.cmbChar.SelectedIndexChanged += new System.EventHandler(this.cmbChar_SelectedIndexChanged);
            this.cmbChar.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.cmbChar_KeyPress);
            // 
            // label2
            // 
            this.label2.AutoSize = true;
            this.label2.BackColor = System.Drawing.Color.Silver;
            this.label2.ForeColor = System.Drawing.Color.Black;
            this.label2.Location = new System.Drawing.Point(162, 14);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(77, 13);
            this.label2.TabIndex = 1;
            this.label2.Text = ".:: Character ::.";
            // 
            // label1
            // 
            this.label1.AutoSize = true;
            this.label1.ForeColor = System.Drawing.Color.Black;
            this.label1.Location = new System.Drawing.Point(23, 14);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(71, 13);
            this.label1.TabIndex = 0;
            this.label1.Text = ".:: Account ::.";
            // 
            // button2
            // 
            this.button2.Location = new System.Drawing.Point(54, 400);
            this.button2.Name = "button2";
            this.button2.Size = new System.Drawing.Size(86, 23);
            this.button2.TabIndex = 16;
            this.button2.Text = "Update Vault";
            this.button2.UseVisualStyleBackColor = true;
            // 
            // pnlPackage
            // 
            this.pnlPackage.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(27)))), ((int)(((byte)(23)))));
            this.pnlPackage.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
            this.pnlPackage.Controls.Add(this.btnMaxRuud);
            this.pnlPackage.Controls.Add(this.packageExp);
            this.pnlPackage.Controls.Add(this.btnUpdatePackage);
            this.pnlPackage.Controls.Add(this.btnClearPackage);
            this.pnlPackage.Controls.Add(this.btnClearChar);
            this.pnlPackage.Controls.Add(this.panel5);
            this.pnlPackage.Controls.Add(this.panel4);
            this.pnlPackage.Controls.Add(this.panel3);
            this.pnlPackage.Controls.Add(this.btnMaxMoney);
            this.pnlPackage.Controls.Add(this.sPentagramPanel);
            this.pnlPackage.Controls.Add(this.charPanel);
            this.pnlPackage.Controls.Add(this.panel0);
            this.pnlPackage.Controls.Add(this.panel1);
            this.pnlPackage.Controls.Add(this.panel2);
            this.pnlPackage.Location = new System.Drawing.Point(844, 26);
            this.pnlPackage.Name = "pnlPackage";
            this.pnlPackage.Size = new System.Drawing.Size(595, 548);
            this.pnlPackage.TabIndex = 23;
            this.pnlPackage.Visible = false;
            // 
            // btnMaxRuud
            // 
            this.btnMaxRuud.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
            | System.Windows.Forms.AnchorStyles.Left) 
            | System.Windows.Forms.AnchorStyles.Right)));
            this.btnMaxRuud.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
            this.btnMaxRuud.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
            this.btnMaxRuud.Font = new System.Drawing.Font("Microsoft YaHei", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.btnMaxRuud.ForeColor = System.Drawing.Color.White;
            this.btnMaxRuud.Location = new System.Drawing.Point(442, 511);
            this.btnMaxRuud.Name = "btnMaxRuud";
            this.btnMaxRuud.Size = new System.Drawing.Size(130, 24);
            this.btnMaxRuud.TabIndex = 90;
            this.btnMaxRuud.Text = "Add Max Ruud";
            this.btnMaxRuud.UseVisualStyleBackColor = false;
            this.btnMaxRuud.Click += new System.EventHandler(this.btnMaxRuud_Click);
            // 
            // packageExp
            // 
            this.packageExp.Controls.Add(this.PackageExpLv2);
            this.packageExp.Controls.Add(this.PackageExpLv1);
            this.packageExp.Controls.Add(this.chkPackageExp);
            this.packageExp.Font = new System.Drawing.Font("Microsoft YaHei", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.packageExp.ForeColor = System.Drawing.Color.Yellow;
            this.packageExp.Location = new System.Drawing.Point(442, 402);
            this.packageExp.Name = "packageExp";
            this.packageExp.Size = new System.Drawing.Size(130, 102);
            this.packageExp.TabIndex = 89;
            this.packageExp.TabStop = false;
            this.packageExp.Text = "Extended Inv.";
            // 
            // PackageExpLv2
            // 
            this.PackageExpLv2.AutoSize = true;
            this.PackageExpLv2.Enabled = false;
            this.PackageExpLv2.Location = new System.Drawing.Point(31, 75);
            this.PackageExpLv2.Name = "PackageExpLv2";
            this.PackageExpLv2.Size = new System.Drawing.Size(69, 21);
            this.PackageExpLv2.TabIndex = 2;
            this.PackageExpLv2.TabStop = true;
            this.PackageExpLv2.Text = "Level 2";
            this.PackageExpLv2.UseVisualStyleBackColor = true;
            this.PackageExpLv2.CheckedChanged += new System.EventHandler(this.PackageExpLv2_CheckedChanged);
            // 
            // PackageExpLv1
            // 
            this.PackageExpLv1.AutoSize = true;
            this.PackageExpLv1.Enabled = false;
            this.PackageExpLv1.Location = new System.Drawing.Point(31, 46);
            this.PackageExpLv1.Name = "PackageExpLv1";
            this.PackageExpLv1.Size = new System.Drawing.Size(69, 21);
            this.PackageExpLv1.TabIndex = 1;
            this.PackageExpLv1.TabStop = true;
            this.PackageExpLv1.Text = "Level 1";
            this.PackageExpLv1.UseVisualStyleBackColor = true;
            this.PackageExpLv1.CheckedChanged += new System.EventHandler(this.PackageExpLv1_CheckedChanged);
            // 
            // chkPackageExp
            // 
            this.chkPackageExp.AutoSize = true;
            this.chkPackageExp.ForeColor = System.Drawing.Color.Red;
            this.chkPackageExp.Location = new System.Drawing.Point(11, 24);
            this.chkPackageExp.Name = "chkPackageExp";
            this.chkPackageExp.Size = new System.Drawing.Size(110, 21);
            this.chkPackageExp.TabIndex = 0;
            this.chkPackageExp.Text = "Extended Inv.";
            this.chkPackageExp.UseVisualStyleBackColor = true;
            this.chkPackageExp.CheckedChanged += new System.EventHandler(this.chkPackageExp_CheckedChanged);
            // 
            // btnUpdatePackage
            // 
            this.btnUpdatePackage.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
            this.btnUpdatePackage.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
            this.btnUpdatePackage.Font = new System.Drawing.Font("Microsoft YaHei", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.btnUpdatePackage.ForeColor = System.Drawing.Color.White;
            this.btnUpdatePackage.Location = new System.Drawing.Point(298, 475);
            this.btnUpdatePackage.Name = "btnUpdatePackage";
            this.btnUpdatePackage.Size = new System.Drawing.Size(138, 29);
            this.btnUpdatePackage.TabIndex = 83;
            this.btnUpdatePackage.Text = "SAVE INVENTORY";
            this.btnUpdatePackage.UseVisualStyleBackColor = false;
            this.btnUpdatePackage.Click += new System.EventHandler(this.btnUpdatePackage_Click);
            // 
            // btnClearPackage
            // 
            this.btnClearPackage.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
            | System.Windows.Forms.AnchorStyles.Left) 
            | System.Windows.Forms.AnchorStyles.Right)));
            this.btnClearPackage.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
            this.btnClearPackage.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
            this.btnClearPackage.Font = new System.Drawing.Font("Microsoft YaHei", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.btnClearPackage.ForeColor = System.Drawing.Color.White;
            this.btnClearPackage.Location = new System.Drawing.Point(298, 442);
            this.btnClearPackage.Name = "btnClearPackage";
            this.btnClearPackage.Size = new System.Drawing.Size(138, 27);
            this.btnClearPackage.TabIndex = 85;
            this.btnClearPackage.Text = "Clear Item Inventory";
            this.btnClearPackage.UseVisualStyleBackColor = false;
            this.btnClearPackage.Click += new System.EventHandler(this.btnClearPackage_Click);
            // 
            // btnClearChar
            // 
            this.btnClearChar.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
            | System.Windows.Forms.AnchorStyles.Left) 
            | System.Windows.Forms.AnchorStyles.Right)));
            this.btnClearChar.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
            this.btnClearChar.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
            this.btnClearChar.Font = new System.Drawing.Font("Microsoft YaHei", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.btnClearChar.ForeColor = System.Drawing.Color.White;
            this.btnClearChar.Location = new System.Drawing.Point(298, 412);
            this.btnClearChar.Name = "btnClearChar";
            this.btnClearChar.Size = new System.Drawing.Size(138, 24);
            this.btnClearChar.TabIndex = 84;
            this.btnClearChar.Text = "Clear Item Equipped";
            this.btnClearChar.UseVisualStyleBackColor = false;
            this.btnClearChar.Click += new System.EventHandler(this.btnClearChar_Click);
            // 
            // panel5
            // 
            this.panel5.BackgroundImage = global::MuEditor.Properties.Resources.shop;
            this.panel5.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
            this.panel5.Controls.Add(this.shopPanel);
            this.panel5.Cursor = System.Windows.Forms.Cursors.Default;
            this.panel5.Location = new System.Drawing.Point(295, 265);
            this.panel5.Margin = new System.Windows.Forms.Padding(0);
            this.panel5.Name = "panel5";
            this.panel5.Size = new System.Drawing.Size(295, 133);
            this.panel5.TabIndex = 80;
            // 
            // shopPanel
            // 
            this.shopPanel.BackgroundImage = global::MuEditor.Properties.Resources.warehouse_2;
            this.shopPanel.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
            this.shopPanel.Cursor = System.Windows.Forms.Cursors.Default;
            this.shopPanel.Location = new System.Drawing.Point(43, 15);
            this.shopPanel.Margin = new System.Windows.Forms.Padding(0);
            this.shopPanel.Name = "shopPanel";
            this.shopPanel.Size = new System.Drawing.Size(209, 105);
            this.shopPanel.TabIndex = 59;
            // 
            // panel4
            // 
            this.panel4.BackgroundImage = global::MuEditor.Properties.Resources.package_exp_2;
            this.panel4.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
            this.panel4.Controls.Add(this.packagePanelLv4);
            this.panel4.Cursor = System.Windows.Forms.Cursors.Default;
            this.panel4.Location = new System.Drawing.Point(295, 265);
            this.panel4.Margin = new System.Windows.Forms.Padding(0);
            this.panel4.Name = "panel4";
            this.panel4.Size = new System.Drawing.Size(295, 133);
            this.panel4.TabIndex = 79;
            this.panel4.Visible = false;
            // 
            // packagePanelLv4
            // 
            this.packagePanelLv4.BackgroundImage = global::MuEditor.Properties.Resources.warehouse_2;
            this.packagePanelLv4.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
            this.packagePanelLv4.Cursor = System.Windows.Forms.Cursors.Default;
            this.packagePanelLv4.Enabled = false;
            this.packagePanelLv4.Location = new System.Drawing.Point(43, 15);
            this.packagePanelLv4.Margin = new System.Windows.Forms.Padding(0);
            this.packagePanelLv4.Name = "packagePanelLv4";
            this.packagePanelLv4.Size = new System.Drawing.Size(209, 105);
            this.packagePanelLv4.TabIndex = 67;
            // 
            // panel3
            // 
            this.panel3.BackgroundImage = global::MuEditor.Properties.Resources.package_exp_2;
            this.panel3.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
            this.panel3.Controls.Add(this.packagePanelLv3);
            this.panel3.Cursor = System.Windows.Forms.Cursors.Default;
            this.panel3.Location = new System.Drawing.Point(295, 266);
            this.panel3.Margin = new System.Windows.Forms.Padding(0);
            this.panel3.Name = "panel3";
            this.panel3.Size = new System.Drawing.Size(295, 133);
            this.panel3.TabIndex = 78;
            this.panel3.Visible = false;
            // 
            // packagePanelLv3
            // 
            this.packagePanelLv3.BackgroundImage = global::MuEditor.Properties.Resources.warehouse_2;
            this.packagePanelLv3.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
            this.packagePanelLv3.Cursor = System.Windows.Forms.Cursors.Default;
            this.packagePanelLv3.Enabled = false;
            this.packagePanelLv3.Location = new System.Drawing.Point(43, 15);
            this.packagePanelLv3.Margin = new System.Windows.Forms.Padding(0);
            this.packagePanelLv3.Name = "packagePanelLv3";
            this.packagePanelLv3.Size = new System.Drawing.Size(209, 105);
            this.packagePanelLv3.TabIndex = 66;
            // 
            // btnMaxMoney
            // 
            this.btnMaxMoney.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
            | System.Windows.Forms.AnchorStyles.Left) 
            | System.Windows.Forms.AnchorStyles.Right)));
            this.btnMaxMoney.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
            this.btnMaxMoney.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
            this.btnMaxMoney.Font = new System.Drawing.Font("Microsoft YaHei", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.btnMaxMoney.ForeColor = System.Drawing.Color.White;
            this.btnMaxMoney.Location = new System.Drawing.Point(298, 511);
            this.btnMaxMoney.Name = "btnMaxMoney";
            this.btnMaxMoney.Size = new System.Drawing.Size(138, 24);
            this.btnMaxMoney.TabIndex = 56;
            this.btnMaxMoney.Text = "Add Max Zen";
            this.btnMaxMoney.UseVisualStyleBackColor = false;
            this.btnMaxMoney.Click += new System.EventHandler(this.btnMaxMoney_Click);
            // 
            // sPentagramPanel
            // 
            this.sPentagramPanel.BackgroundImage = global::MuEditor.Properties.Resources.skillbook;
            this.sPentagramPanel.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
            this.sPentagramPanel.Cursor = System.Windows.Forms.Cursors.Default;
            this.sPentagramPanel.Location = new System.Drawing.Point(228, 218);
            this.sPentagramPanel.Margin = new System.Windows.Forms.Padding(0);
            this.sPentagramPanel.Name = "sPentagramPanel";
            this.sPentagramPanel.Prof = -1;
            this.sPentagramPanel.Size = new System.Drawing.Size(58, 58);
            this.sPentagramPanel.TabIndex = 67;
            // 
            // charPanel
            // 
            this.charPanel.BackgroundImage = global::MuEditor.Properties.Resources.char_2;
            this.charPanel.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
            this.charPanel.Cursor = System.Windows.Forms.Cursors.Default;
            this.charPanel.Location = new System.Drawing.Point(0, 0);
            this.charPanel.Margin = new System.Windows.Forms.Padding(0);
            this.charPanel.Name = "charPanel";
            this.charPanel.Prof = -1;
            this.charPanel.Size = new System.Drawing.Size(295, 284);
            this.charPanel.TabIndex = 13;
            // 
            // panel0
            // 
            this.panel0.BackgroundImage = global::MuEditor.Properties.Resources.package;
            this.panel0.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
            this.panel0.Controls.Add(this.button1);
            this.panel0.Controls.Add(this.txtRuud);
            this.panel0.Controls.Add(this.txtMoney);
            this.panel0.Controls.Add(this.packagePanel);
            this.panel0.Cursor = System.Windows.Forms.Cursors.Default;
            this.panel0.Location = new System.Drawing.Point(0, 284);
            this.panel0.Margin = new System.Windows.Forms.Padding(0);
            this.panel0.Name = "panel0";
            this.panel0.Size = new System.Drawing.Size(295, 260);
            this.panel0.TabIndex = 68;
            // 
            // button1
            // 
            this.button1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
            | System.Windows.Forms.AnchorStyles.Left) 
            | System.Windows.Forms.AnchorStyles.Right)));
            this.button1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
            this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
            this.button1.Font = new System.Drawing.Font("Microsoft YaHei", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.button1.ForeColor = System.Drawing.Color.White;
            this.button1.Image = global::Properties.Resources.moneyruud1;
            this.button1.Location = new System.Drawing.Point(151, 226);
            this.button1.Name = "button1";
            this.button1.Size = new System.Drawing.Size(19, 20);
            this.button1.TabIndex = 91;
            this.button1.UseVisualStyleBackColor = false;
            // 
            // txtRuud
            // 
            this.txtRuud.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(16)))), ((int)(((byte)(14)))), ((int)(((byte)(14)))));
            this.txtRuud.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.txtRuud.Font = new System.Drawing.Font("Microsoft YaHei", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.txtRuud.ForeColor = System.Drawing.Color.Red;
            this.txtRuud.IsOnlyNumber = true;
            this.txtRuud.Location = new System.Drawing.Point(176, 226);
            this.txtRuud.Name = "txtRuud";
            this.txtRuud.Size = new System.Drawing.Size(102, 23);
            this.txtRuud.TabIndex = 84;
            this.txtRuud.Text = "0";
            // 
            // txtMoney
            // 
            this.txtMoney.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(16)))), ((int)(((byte)(14)))), ((int)(((byte)(14)))));
            this.txtMoney.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.txtMoney.Font = new System.Drawing.Font("Microsoft YaHei", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.txtMoney.ForeColor = System.Drawing.Color.Red;
            this.txtMoney.IsOnlyNumber = true;
            this.txtMoney.Location = new System.Drawing.Point(43, 226);
            this.txtMoney.Name = "txtMoney";
            this.txtMoney.Size = new System.Drawing.Size(102, 23);
            this.txtMoney.TabIndex = 32;
            this.txtMoney.Text = "0";
            // 
            // packagePanel
            // 
            this.packagePanel.BackgroundImage = global::MuEditor.Properties.Resources.warehouse_2;
            this.packagePanel.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
            this.packagePanel.Cursor = System.Windows.Forms.Cursors.Default;
            this.packagePanel.Location = new System.Drawing.Point(43, 6);
            this.packagePanel.Margin = new System.Windows.Forms.Padding(0);
            this.packagePanel.Name = "packagePanel";
            this.packagePanel.Size = new System.Drawing.Size(209, 209);
            this.packagePanel.TabIndex = 15;
            // 
            // panel1
            // 
            this.panel1.BackgroundImage = global::MuEditor.Properties.Resources.package_exp_1;
            this.panel1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
            this.panel1.Controls.Add(this.packagePanelLv1);
            this.panel1.Cursor = System.Windows.Forms.Cursors.Default;
            this.panel1.Location = new System.Drawing.Point(295, 0);
            this.panel1.Margin = new System.Windows.Forms.Padding(0);
            this.panel1.Name = "panel1";
            this.panel1.Size = new System.Drawing.Size(295, 133);
            this.panel1.TabIndex = 69;
            // 
            // packagePanelLv1
            // 
            this.packagePanelLv1.BackgroundImage = global::MuEditor.Properties.Resources.warehouse_2;
            this.packagePanelLv1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
            this.packagePanelLv1.Cursor = System.Windows.Forms.Cursors.Default;
            this.packagePanelLv1.Location = new System.Drawing.Point(43, 15);
            this.packagePanelLv1.Margin = new System.Windows.Forms.Padding(0);
            this.packagePanelLv1.Name = "packagePanelLv1";
            this.packagePanelLv1.Size = new System.Drawing.Size(209, 105);
            this.packagePanelLv1.TabIndex = 64;
            // 
            // panel2
            // 
            this.panel2.BackgroundImage = global::MuEditor.Properties.Resources.package_exp_2;
            this.panel2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
            this.panel2.Controls.Add(this.packagePanelLv2);
            this.panel2.Cursor = System.Windows.Forms.Cursors.Default;
            this.panel2.Location = new System.Drawing.Point(295, 133);
            this.panel2.Margin = new System.Windows.Forms.Padding(0);
            this.panel2.Name = "panel2";
            this.panel2.Size = new System.Drawing.Size(295, 133);
            this.panel2.TabIndex = 70;
            // 
            // packagePanelLv2
            // 
            this.packagePanelLv2.BackgroundImage = global::MuEditor.Properties.Resources.warehouse_2;
            this.packagePanelLv2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
            this.packagePanelLv2.Cursor = System.Windows.Forms.Cursors.Default;
            this.packagePanelLv2.Location = new System.Drawing.Point(43, 15);
            this.packagePanelLv2.Margin = new System.Windows.Forms.Padding(0);
            this.packagePanelLv2.Name = "packagePanelLv2";
            this.packagePanelLv2.Size = new System.Drawing.Size(209, 105);
            this.packagePanelLv2.TabIndex = 65;
            // 
            // pnlWarehouse
            // 
            this.pnlWarehouse.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(27)))), ((int)(((byte)(23)))));
            this.pnlWarehouse.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
            this.pnlWarehouse.Controls.Add(this.WarehouseExp);
            this.pnlWarehouse.Controls.Add(this.warehousePanelLv1);
            this.pnlWarehouse.Controls.Add(this.btnClean);
            this.pnlWarehouse.Controls.Add(this.btnWare1YMoney);
            this.pnlWarehouse.Controls.Add(this.btnWareMaxMoney);
            this.pnlWarehouse.Controls.Add(this.label33);
            this.pnlWarehouse.Controls.Add(this.txtWareHousePwd);
            this.pnlWarehouse.Controls.Add(this.btnClearWarehouse);
            this.pnlWarehouse.Controls.Add(this.label26);
            this.pnlWarehouse.Controls.Add(this.txtWareHouseMoney);
            this.pnlWarehouse.Controls.Add(this.label11);
            this.pnlWarehouse.Controls.Add(this.btnUpdateWarehouse);
            this.pnlWarehouse.Controls.Add(this.warehousePanel);
            this.pnlWarehouse.Location = new System.Drawing.Point(420, 26);
            this.pnlWarehouse.Name = "pnlWarehouse";
            this.pnlWarehouse.Size = new System.Drawing.Size(425, 548);
            this.pnlWarehouse.TabIndex = 22;
            this.pnlWarehouse.Visible = false;
            // 
            // WarehouseExp
            // 
            this.WarehouseExp.AutoSize = true;
            this.WarehouseExp.Font = new System.Drawing.Font("Microsoft YaHei", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.WarehouseExp.ForeColor = System.Drawing.Color.Yellow;
            this.WarehouseExp.Location = new System.Drawing.Point(273, 398);
            this.WarehouseExp.Name = "WarehouseExp";
            this.WarehouseExp.Size = new System.Drawing.Size(120, 21);
            this.WarehouseExp.TabIndex = 62;
            this.WarehouseExp.Text = "Extended Ware";
            this.WarehouseExp.UseVisualStyleBackColor = true;
            // 
            // warehousePanelLv1
            // 
            this.warehousePanelLv1.BackgroundImage = global::MuEditor.Properties.Resources.warehouse_2;
            this.warehousePanelLv1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
            this.warehousePanelLv1.Cursor = System.Windows.Forms.Cursors.Default;
            this.warehousePanelLv1.Location = new System.Drawing.Point(211, 0);
            this.warehousePanelLv1.Margin = new System.Windows.Forms.Padding(0);
            this.warehousePanelLv1.Name = "warehousePanelLv1";
            this.warehousePanelLv1.Size = new System.Drawing.Size(209, 392);
            this.warehousePanelLv1.TabIndex = 61;
            // 
            // btnClean
            // 
            this.btnClean.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
            this.btnClean.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
            this.btnClean.Font = new System.Drawing.Font("Microsoft YaHei", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.btnClean.ForeColor = System.Drawing.Color.White;
            this.btnClean.Location = new System.Drawing.Point(343, 424);
            this.btnClean.Name = "btnClean";
            this.btnClean.Size = new System.Drawing.Size(70, 25);
            this.btnClean.TabIndex = 60;
            this.btnClean.Text = "Organize";
            this.btnClean.UseVisualStyleBackColor = false;
            this.btnClean.Click += new System.EventHandler(this.btnClean_Click);
            // 
            // btnWare1YMoney
            // 
            this.btnWare1YMoney.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
            this.btnWare1YMoney.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
            this.btnWare1YMoney.Font = new System.Drawing.Font("Microsoft YaHei", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.btnWare1YMoney.ForeColor = System.Drawing.Color.White;
            this.btnWare1YMoney.Location = new System.Drawing.Point(135, 428);
            this.btnWare1YMoney.Name = "btnWare1YMoney";
            this.btnWare1YMoney.Size = new System.Drawing.Size(102, 25);
            this.btnWare1YMoney.TabIndex = 59;
            this.btnWare1YMoney.Text = "Add 100K Zen";
            this.btnWare1YMoney.UseVisualStyleBackColor = false;
            this.btnWare1YMoney.Click += new System.EventHandler(this.btnWare1YMoney_Click);
            // 
            // btnWareMaxMoney
            // 
            this.btnWareMaxMoney.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
            this.btnWareMaxMoney.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
            this.btnWareMaxMoney.Font = new System.Drawing.Font("Microsoft YaHei", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.btnWareMaxMoney.ForeColor = System.Drawing.Color.White;
            this.btnWareMaxMoney.Location = new System.Drawing.Point(135, 397);
            this.btnWareMaxMoney.Name = "btnWareMaxMoney";
            this.btnWareMaxMoney.Size = new System.Drawing.Size(101, 25);
            this.btnWareMaxMoney.TabIndex = 58;
            this.btnWareMaxMoney.Text = "Add Max Zen";
            this.btnWareMaxMoney.UseVisualStyleBackColor = false;
            this.btnWareMaxMoney.Click += new System.EventHandler(this.btnWareMaxMoney_Click);
            // 
            // label33
            // 
            this.label33.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Bold);
            this.label33.ForeColor = System.Drawing.Color.Red;
            this.label33.Location = new System.Drawing.Point(13, 502);
            this.label33.Name = "label33";
            this.label33.Size = new System.Drawing.Size(407, 40);
            this.label33.TabIndex = 36;
            this.label33.Text = "Tip：Right-click on the item to modify\r\nCut and paste into different areas to spee" +
    "d up the process.";
            this.label33.Click += new System.EventHandler(this.label33_Click);
            // 
            // txtWareHousePwd
            // 
            this.txtWareHousePwd.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(16)))), ((int)(((byte)(14)))), ((int)(((byte)(14)))));
            this.txtWareHousePwd.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.txtWareHousePwd.Font = new System.Drawing.Font("Microsoft YaHei", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.txtWareHousePwd.ForeColor = System.Drawing.Color.Red;
            this.txtWareHousePwd.IsOnlyNumber = true;
            this.txtWareHousePwd.Location = new System.Drawing.Point(75, 399);
            this.txtWareHousePwd.Name = "txtWareHousePwd";
            this.txtWareHousePwd.Size = new System.Drawing.Size(54, 23);
            this.txtWareHousePwd.TabIndex = 35;
            this.txtWareHousePwd.Text = "0";
            // 
            // btnClearWarehouse
            // 
            this.btnClearWarehouse.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
            this.btnClearWarehouse.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
            this.btnClearWarehouse.Font = new System.Drawing.Font("Microsoft YaHei", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.btnClearWarehouse.ForeColor = System.Drawing.Color.White;
            this.btnClearWarehouse.Location = new System.Drawing.Point(251, 424);
            this.btnClearWarehouse.Name = "btnClearWarehouse";
            this.btnClearWarehouse.Size = new System.Drawing.Size(86, 25);
            this.btnClearWarehouse.TabIndex = 17;
            this.btnClearWarehouse.Text = "Clear Vault";
            this.btnClearWarehouse.UseVisualStyleBackColor = false;
            this.btnClearWarehouse.Click += new System.EventHandler(this.btnClearWarehouse_Click);
            // 
            // label26
            // 
            this.label26.AutoSize = true;
            this.label26.Font = new System.Drawing.Font("Microsoft YaHei", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.label26.ForeColor = System.Drawing.Color.Yellow;
            this.label26.Location = new System.Drawing.Point(3, 401);
            this.label26.Name = "label26";
            this.label26.Size = new System.Drawing.Size(69, 17);
            this.label26.TabIndex = 34;
            this.label26.Text = "Password:";
            // 
            // txtWareHouseMoney
            // 
            this.txtWareHouseMoney.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(16)))), ((int)(((byte)(14)))), ((int)(((byte)(14)))));
            this.txtWareHouseMoney.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.txtWareHouseMoney.Font = new System.Drawing.Font("Microsoft YaHei", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.txtWareHouseMoney.ForeColor = System.Drawing.Color.Red;
            this.txtWareHouseMoney.IsOnlyNumber = true;
            this.txtWareHouseMoney.Location = new System.Drawing.Point(49, 426);
            this.txtWareHouseMoney.Name = "txtWareHouseMoney";
            this.txtWareHouseMoney.Size = new System.Drawing.Size(80, 23);
            this.txtWareHouseMoney.TabIndex = 33;
            this.txtWareHouseMoney.Text = "0";
            // 
            // label11
            // 
            this.label11.AutoSize = true;
            this.label11.Font = new System.Drawing.Font("Microsoft YaHei", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.label11.ForeColor = System.Drawing.Color.Yellow;
            this.label11.Location = new System.Drawing.Point(3, 428);
            this.label11.Name = "label11";
            this.label11.Size = new System.Drawing.Size(34, 17);
            this.label11.TabIndex = 32;
            this.label11.Text = "Zen:";
            // 
            // btnUpdateWarehouse
            // 
            this.btnUpdateWarehouse.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
            this.btnUpdateWarehouse.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
            this.btnUpdateWarehouse.Font = new System.Drawing.Font("Microsoft YaHei", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.btnUpdateWarehouse.ForeColor = System.Drawing.Color.White;
            this.btnUpdateWarehouse.Location = new System.Drawing.Point(273, 459);
            this.btnUpdateWarehouse.Name = "btnUpdateWarehouse";
            this.btnUpdateWarehouse.Size = new System.Drawing.Size(140, 25);
            this.btnUpdateWarehouse.TabIndex = 10;
            this.btnUpdateWarehouse.Text = "SAVE WAREHOUSE";
            this.btnUpdateWarehouse.UseVisualStyleBackColor = false;
            this.btnUpdateWarehouse.Click += new System.EventHandler(this.btnUpdateWarehouse_Click);
            // 
            // warehousePanel
            // 
            this.warehousePanel.BackgroundImage = global::MuEditor.Properties.Resources.warehouse_2;
            this.warehousePanel.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
            this.warehousePanel.Cursor = System.Windows.Forms.Cursors.Default;
            this.warehousePanel.Location = new System.Drawing.Point(0, 0);
            this.warehousePanel.Margin = new System.Windows.Forms.Padding(0);
            this.warehousePanel.Name = "warehousePanel";
            this.warehousePanel.Size = new System.Drawing.Size(209, 392);
            this.warehousePanel.TabIndex = 11;
            // 
            // button3
            // 
            this.button3.Location = new System.Drawing.Point(243, 361);
            this.button3.Name = "button3";
            this.button3.RightToLeft = System.Windows.Forms.RightToLeft.No;
            this.button3.Size = new System.Drawing.Size(111, 30);
            this.button3.TabIndex = 65;
            this.button3.Text = "Master Level";
            this.button3.UseVisualStyleBackColor = true;
            this.button3.Click += new System.EventHandler(this.btnMaster_Click);
            // 
            // frmMain
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.BackColor = System.Drawing.Color.Silver;
            this.ClientSize = new System.Drawing.Size(1437, 577);
            this.Controls.Add(this.pnlPackage);
            this.Controls.Add(this.pnlWarehouse);
            this.Controls.Add(this.menuStrip1);
            this.Controls.Add(this.tabcInfo);
            this.Controls.Add(this.groupBox1);
            this.Controls.Add(this.button2);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
            this.MainMenuStrip = this.menuStrip1;
            this.MaximizeBox = false;
            this.MinimumSize = new System.Drawing.Size(442, 578);
            this.Name = "frmMain";
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
            this.Text = "Mu Editor - Season 12";
            this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.frmMain_FormClosing);
            this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.Form1_FormClosed);
            this.Load += new System.EventHandler(this.Form1_Load);
            this.menuStrip1.ResumeLayout(false);
            this.menuStrip1.PerformLayout();
            this.tabPage4.ResumeLayout(false);
            this.groupBox5.ResumeLayout(false);
            this.groupBox5.PerformLayout();
            this.groupBox4.ResumeLayout(false);
            this.groupBox4.PerformLayout();
            this.groupBox2.ResumeLayout(false);
            this.groupBox2.PerformLayout();
            this.tabPage3.ResumeLayout(false);
            this.groupBox3.ResumeLayout(false);
            this.groupBox3.PerformLayout();
            this.tabPage5.ResumeLayout(false);
            this.tabcInfo.ResumeLayout(false);
            this.groupBox1.ResumeLayout(false);
            this.groupBox1.PerformLayout();
            this.pnlPackage.ResumeLayout(false);
            this.packageExp.ResumeLayout(false);
            this.packageExp.PerformLayout();
            this.panel5.ResumeLayout(false);
            this.panel4.ResumeLayout(false);
            this.panel3.ResumeLayout(false);
            this.panel0.ResumeLayout(false);
            this.panel0.PerformLayout();
            this.panel1.ResumeLayout(false);
            this.panel2.ResumeLayout(false);
            this.pnlWarehouse.ResumeLayout(false);
            this.pnlWarehouse.PerformLayout();
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        public void InputAccount(string account)
        {
            this.Cursor = Cursors.WaitCursor;
            this.saveLast(false);
            this.showByAccount(account, "");
            this.updateUI();
            this.Cursor = Cursors.Default;
        }

        public void InputCharacter(string charName)
        {
            this.Cursor = Cursors.WaitCursor;
            this.saveLast(true);
            this.showByCharacter(charName);
            this.updateUI();
            this.Cursor = Cursors.Default;
        }

        private bool isCharOnline()
        {
            string str = "";
            bool flag = false;
            try
            {
                this.Cursor = Cursors.WaitCursor;
                string[] mUSERVER = new string[] { "SELECT [MEMB_STAT].[ConnectStat] FROM [", frmMain.MU_SERVER, "].[", frmMain.MU_DB, "].[dbo].[AccountCharacter] AS [AC] INNER JOIN [dbo].[MEMB_STAT] ON [AC].[Id] = [MEMB_STAT].[memb___id] COLLATE Chinese_PRC_CS_AS_KS_WS WHERE ([AC].[Id] = '{0}') AND ([AC].[GameIDC] = '{1}')" };
                str = string.Format(string.Concat(mUSERVER), this.txtAcc.Text.Trim(), this.txtChar.Text.Trim());
                OleDbDataReader oleDbDataReader = (new OleDbCommand(str, frmBase.Me_Conn)).ExecuteReader();
                if (oleDbDataReader.Read())
                {
                    flag = oleDbDataReader.GetValue(0).ToString() == "1";
                }
                oleDbDataReader.Close();
            }
            catch (Exception exception1)
            {
                Exception exception = exception1;
                string[] message = new string[] { "SQL：", str, "\nError:", exception.Message, "\nSource:", exception.Source, "\nTrace:", exception.StackTrace };
                Utils.WarningMessage(string.Concat(message));
            }
            return flag;
        }

        private bool isOnline()
        {
            string str = "";
            bool flag = false;
            try
            {
                this.Cursor = Cursors.WaitCursor;
                str = string.Concat("SELECT [ConnectStat] FROM [MEMB_STAT] WHERE ([memb___id] = '", this.txtAcc.Text.Trim(), "')");
                OleDbDataReader oleDbDataReader = (new OleDbCommand(str, frmBase.Me_Conn)).ExecuteReader();
                if (oleDbDataReader.Read())
                {
                    flag = oleDbDataReader.GetValue(0).ToString() == "1";
                }
                oleDbDataReader.Close();
            }
            catch (Exception exception1)
            {
                Exception exception = exception1;
                string[] message = new string[] { "SQL：", str, "\nError:", exception.Message, "\nSource:", exception.Source, "\nTrace:", exception.StackTrace };
                Utils.WarningMessage(string.Concat(message));
            }
            return flag;
        }
        
        protected byte[] loadInventory(string charName)
        {
            string str = null;
            if (charName == "")
            {
                return null;
            }
            byte[] value = null;
            try
            {
                str = string.Concat("SELECT [Inventory] FROM [Character] WHERE ([Name] = '", charName, "')");
                OleDbDataReader oleDbDataReader = (new OleDbCommand(str, frmBase.Mu_Conn)).ExecuteReader();
                if (oleDbDataReader.Read() && oleDbDataReader.GetValue(0) != DBNull.Value)
                {
                    value = (byte[])oleDbDataReader.GetValue(0);
                }
                oleDbDataReader.Close();
            }
            catch (Exception exception1)
            {
                Exception exception = exception1;
                string[] message = new string[] { "SQL：", str, "\nError:", exception.Message, "\nSource:", exception.Source, "\nTrace:", exception.StackTrace };
                Utils.WarningMessage(string.Concat(message));
            }
            return value;
        }

        private void loadMagic(int type)
        {
            char[] chrArray;
            string[] strArrays;
            int k;
            this.clbCharacter.Items.Clear();
            type = (type < 0 ? 0 : type);
            try
            {
                string str = string.Format("SELECT [MagicList] FROM [Character] WHERE ([AccountID] = '{0}') AND ([Name] = '{1}')", this.txtAcc.Text.Trim(), this.txtChar.Text.Trim());
                OleDbDataReader oleDbDataReader = (new OleDbCommand(str, frmBase.Mu_Conn)).ExecuteReader();
                byte[] value = null;
                byte[] numArray = new byte[3];
                string str1 = "";
                Utils.lstSSG.Clear();
                if (oleDbDataReader.Read() && oleDbDataReader.GetValue(0) != DBNull.Value)
                {
                    value = (byte[])oleDbDataReader.GetValue(0);
                    StringBuilder stringBuilder = new StringBuilder();
                    for (int i = 0; i < (int)value.Length; i++)
                    {
                        numArray[i % 3] = value[i];
                        if (i % 3 == 2)
                        {
                            SKILL_SQL_GS sKILLSQLG = Utils.SKILL_SQL2GS(numArray);
                            Utils.lstSSG.Add(sKILLSQLG);
                            if (this.cboClass.SelectedIndex > 15)
                            {
                                if (sKILLSQLG.GSSkillID > 0 && sKILLSQLG.GSSkillID < 255 || sKILLSQLG.GSSkillID > 258 && sKILLSQLG.GSSkillID < 269)
                                {
                                    stringBuilder.Append(string.Concat(",", Utils.SKILL_GS2SQL(sKILLSQLG)));
                                }
                            }
                            else if (sKILLSQLG.GSSkillID > 0 && sKILLSQLG.GSSkillID < 255)
                            {
                                stringBuilder.Append(string.Concat(",", Utils.SKILL_GS2SQL(sKILLSQLG)));
                            }
                        }
                    }
                    str1 = stringBuilder.ToString();
                }
                oleDbDataReader.Close();
                for (int j = 0; j < (int)frmMain.xMagic.Length; j++)
                {
                    if (frmMain.xMagic[j] != null && frmMain.xMagic[j].Name[0] != 0)
                    {
                        SKILL_SQL_GS sKILLSQLG1 = new SKILL_SQL_GS()
                        {
                            SKillLv = 0,
                            GSSkillID = frmMain.xMagic[j].m_Number
                        };
                        string str2 = Utils.SKILL_GS2SQL(sKILLSQLG1);
                        switch (type)
                        {
                            case 0:
                                {
                                    if (frmMain.xMagic[j].iClassNumber.WIZARD != 1)
                                    {
                                        break;
                                    }
                                    bool flag = false;
                                    chrArray = new char[] { ',' };
                                    strArrays = str1.Split(chrArray);
                                    for (k = 0; k < (int)strArrays.Length; k++)
                                    {
                                        string str3 = strArrays[k];
                                        if (!(str3 == "") && Utils.SKILL_SQL2GS(Utils.StringToBytes(str3)).GSSkillID == frmMain.xMagic[j].m_Number)
                                        {
                                            str2 = str3;
                                            flag = true;
                                        }
                                    }
                                    this.clbCharacter.Items.Add(new ComboBoxItem(frmMain.ByteToString(frmMain.xMagic[j].Name, 32), str2), flag);
                                    break;
                                }
                            case 1:
                                {
                                    if (frmMain.xMagic[j].iClassNumber.WIZARD == 0)
                                    {
                                        break;
                                    }
                                    bool flag1 = false;
                                    chrArray = new char[] { ',' };
                                    strArrays = str1.Split(chrArray);
                                    for (k = 0; k < (int)strArrays.Length; k++)
                                    {
                                        string str4 = strArrays[k];
                                        if (!(str4 == "") && Utils.SKILL_SQL2GS(Utils.StringToBytes(str4)).GSSkillID == frmMain.xMagic[j].m_Number)
                                        {
                                            str2 = str4;
                                            flag1 = true;
                                        }
                                    }
                                    this.clbCharacter.Items.Add(new ComboBoxItem(frmMain.ByteToString(frmMain.xMagic[j].Name, 32), str2), flag1);
                                    break;
                                }
                            case 2:
                                {
                                    if (frmMain.xMagic[j].iClassNumber.WIZARD == 0)
                                    {
                                        break;
                                    }
                                    bool flag2 = false;
                                    chrArray = new char[] { ',' };
                                    strArrays = str1.Split(chrArray);
                                    for (k = 0; k < (int)strArrays.Length; k++)
                                    {
                                        string str5 = strArrays[k];
                                        if (!(str5 == "") && Utils.SKILL_SQL2GS(Utils.StringToBytes(str5)).GSSkillID == frmMain.xMagic[j].m_Number)
                                        {
                                            str2 = str5;
                                            flag2 = true;
                                        }
                                    }
                                    this.clbCharacter.Items.Add(new ComboBoxItem(frmMain.ByteToString(frmMain.xMagic[j].Name, 32), str2), flag2);
                                    break;
                                }
                            case 3:
                                {
                                    if (frmMain.xMagic[j].iClassNumber.KNIGHT != 1)
                                    {
                                        break;
                                    }
                                    bool flag3 = false;
                                    chrArray = new char[] { ',' };
                                    strArrays = str1.Split(chrArray);
                                    for (k = 0; k < (int)strArrays.Length; k++)
                                    {
                                        string str6 = strArrays[k];
                                        if (!(str6 == "") && Utils.SKILL_SQL2GS(Utils.StringToBytes(str6)).GSSkillID == frmMain.xMagic[j].m_Number)
                                        {
                                            str2 = str6;
                                            flag3 = true;
                                        }
                                    }
                                    this.clbCharacter.Items.Add(new ComboBoxItem(frmMain.ByteToString(frmMain.xMagic[j].Name, 32), str2), flag3);
                                    break;
                                }
                            case 4:
                                {
                                    if (frmMain.xMagic[j].iClassNumber.KNIGHT == 0)
                                    {
                                        break;
                                    }
                                    bool flag4 = false;
                                    chrArray = new char[] { ',' };
                                    strArrays = str1.Split(chrArray);
                                    for (k = 0; k < (int)strArrays.Length; k++)
                                    {
                                        string str7 = strArrays[k];
                                        if (!(str7 == "") && Utils.SKILL_SQL2GS(Utils.StringToBytes(str7)).GSSkillID == frmMain.xMagic[j].m_Number)
                                        {
                                            str2 = str7;
                                            flag4 = true;
                                        }
                                    }
                                    this.clbCharacter.Items.Add(new ComboBoxItem(frmMain.ByteToString(frmMain.xMagic[j].Name, 32), str2), flag4);
                                    break;
                                }
                            case 5:
                                {
                                    if (frmMain.xMagic[j].iClassNumber.KNIGHT == 0)
                                    {
                                        break;
                                    }
                                    bool flag5 = false;
                                    chrArray = new char[] { ',' };
                                    strArrays = str1.Split(chrArray);
                                    for (k = 0; k < (int)strArrays.Length; k++)
                                    {
                                        string str8 = strArrays[k];
                                        if (!(str8 == "") && Utils.SKILL_SQL2GS(Utils.StringToBytes(str8)).GSSkillID == frmMain.xMagic[j].m_Number)
                                        {
                                            str2 = str8;
                                            flag5 = true;
                                        }
                                    }
                                    this.clbCharacter.Items.Add(new ComboBoxItem(frmMain.ByteToString(frmMain.xMagic[j].Name, 32), str2), flag5);
                                    break;
                                }
                            case 6:
                                {
                                    if (frmMain.xMagic[j].iClassNumber.ELF != 1)
                                    {
                                        break;
                                    }
                                    bool flag6 = false;
                                    chrArray = new char[] { ',' };
                                    strArrays = str1.Split(chrArray);
                                    for (k = 0; k < (int)strArrays.Length; k++)
                                    {
                                        string str9 = strArrays[k];
                                        if (!(str9 == "") && Utils.SKILL_SQL2GS(Utils.StringToBytes(str9)).GSSkillID == frmMain.xMagic[j].m_Number)
                                        {
                                            str2 = str9;
                                            flag6 = true;
                                        }
                                    }
                                    this.clbCharacter.Items.Add(new ComboBoxItem(frmMain.ByteToString(frmMain.xMagic[j].Name, 32), str2), flag6);
                                    break;
                                }
                            case 7:
                                {
                                    if (frmMain.xMagic[j].iClassNumber.ELF == 0)
                                    {
                                        break;
                                    }
                                    bool flag7 = false;
                                    chrArray = new char[] { ',' };
                                    strArrays = str1.Split(chrArray);
                                    for (k = 0; k < (int)strArrays.Length; k++)
                                    {
                                        string str10 = strArrays[k];
                                        if (!(str10 == "") && Utils.SKILL_SQL2GS(Utils.StringToBytes(str10)).GSSkillID == frmMain.xMagic[j].m_Number)
                                        {
                                            str2 = str10;
                                            flag7 = true;
                                        }
                                    }
                                    this.clbCharacter.Items.Add(new ComboBoxItem(frmMain.ByteToString(frmMain.xMagic[j].Name, 32), str2), flag7);
                                    break;
                                }
                            case 8:
                                {
                                    if (frmMain.xMagic[j].iClassNumber.ELF == 0)
                                    {
                                        break;
                                    }
                                    bool flag8 = false;
                                    chrArray = new char[] { ',' };
                                    strArrays = str1.Split(chrArray);
                                    for (k = 0; k < (int)strArrays.Length; k++)
                                    {
                                        string str11 = strArrays[k];
                                        if (!(str11 == "") && Utils.SKILL_SQL2GS(Utils.StringToBytes(str11)).GSSkillID == frmMain.xMagic[j].m_Number)
                                        {
                                            str2 = str11;
                                            flag8 = true;
                                        }
                                    }
                                    this.clbCharacter.Items.Add(new ComboBoxItem(frmMain.ByteToString(frmMain.xMagic[j].Name, 32), str2), flag8);
                                    break;
                                }
                            case 9:
                                {
                                    if (frmMain.xMagic[j].iClassNumber.MAGUMSA == 0)
                                    {
                                        break;
                                    }
                                    bool flag9 = false;
                                    chrArray = new char[] { ',' };
                                    strArrays = str1.Split(chrArray);
                                    for (k = 0; k < (int)strArrays.Length; k++)
                                    {
                                        string str12 = strArrays[k];
                                        if (!(str12 == "") && Utils.SKILL_SQL2GS(Utils.StringToBytes(str12)).GSSkillID == frmMain.xMagic[j].m_Number)
                                        {
                                            str2 = str12;
                                            flag9 = true;
                                        }
                                    }
                                    this.clbCharacter.Items.Add(new ComboBoxItem(frmMain.ByteToString(frmMain.xMagic[j].Name, 32), str2), flag9);
                                    break;
                                }
                            case 10:
                                {
                                    if (frmMain.xMagic[j].iClassNumber.MAGUMSA == 0)
                                    {
                                        break;
                                    }
                                    bool flag10 = false;
                                    chrArray = new char[] { ',' };
                                    strArrays = str1.Split(chrArray);
                                    for (k = 0; k < (int)strArrays.Length; k++)
                                    {
                                        string str13 = strArrays[k];
                                        if (!(str13 == "") && Utils.SKILL_SQL2GS(Utils.StringToBytes(str13)).GSSkillID == frmMain.xMagic[j].m_Number)
                                        {
                                            str2 = str13;
                                            flag10 = true;
                                        }
                                    }
                                    this.clbCharacter.Items.Add(new ComboBoxItem(frmMain.ByteToString(frmMain.xMagic[j].Name, 32), str2), flag10);
                                    break;
                                }
                            case 11:
                                {
                                    if (frmMain.xMagic[j].iClassNumber.DARKLORD == 0)
                                    {
                                        break;
                                    }
                                    bool flag11 = false;
                                    chrArray = new char[] { ',' };
                                    strArrays = str1.Split(chrArray);
                                    for (k = 0; k < (int)strArrays.Length; k++)
                                    {
                                        string str14 = strArrays[k];
                                        if (!(str14 == "") && Utils.SKILL_SQL2GS(Utils.StringToBytes(str14)).GSSkillID == frmMain.xMagic[j].m_Number)
                                        {
                                            str2 = str14;
                                            flag11 = true;
                                        }
                                    }
                                    this.clbCharacter.Items.Add(new ComboBoxItem(frmMain.ByteToString(frmMain.xMagic[j].Name, 32), str2), flag11);
                                    break;
                                }
                            case 12:
                                {
                                    if (frmMain.xMagic[j].iClassNumber.DARKLORD == 0)
                                    {
                                        break;
                                    }
                                    bool flag12 = false;
                                    chrArray = new char[] { ',' };
                                    strArrays = str1.Split(chrArray);
                                    for (k = 0; k < (int)strArrays.Length; k++)
                                    {
                                        string str15 = strArrays[k];
                                        if (!(str15 == "") && Utils.SKILL_SQL2GS(Utils.StringToBytes(str15)).GSSkillID == frmMain.xMagic[j].m_Number)
                                        {
                                            str2 = str15;
                                            flag12 = true;
                                        }
                                    }
                                    this.clbCharacter.Items.Add(new ComboBoxItem(frmMain.ByteToString(frmMain.xMagic[j].Name, 32), str2), flag12);
                                    break;
                                }
                            case 13:
                                {
                                    if (frmMain.xMagic[j].iClassNumber.SUMMONER == 0)
                                    {
                                        break;
                                    }
                                    bool flag13 = false;
                                    chrArray = new char[] { ',' };
                                    strArrays = str1.Split(chrArray);
                                    for (k = 0; k < (int)strArrays.Length; k++)
                                    {
                                        string str16 = strArrays[k];
                                        if (!(str16 == "") && Utils.SKILL_SQL2GS(Utils.StringToBytes(str16)).GSSkillID == frmMain.xMagic[j].m_Number)
                                        {
                                            str2 = str16;
                                            flag13 = true;
                                        }
                                    }
                                    this.clbCharacter.Items.Add(new ComboBoxItem(frmMain.ByteToString(frmMain.xMagic[j].Name, 32), str2), flag13);
                                    break;
                                }
                            case 14:
                                {
                                    if (frmMain.xMagic[j].iClassNumber.SUMMONER == 0)
                                    {
                                        break;
                                    }
                                    bool flag14 = false;
                                    chrArray = new char[] { ',' };
                                    strArrays = str1.Split(chrArray);
                                    for (k = 0; k < (int)strArrays.Length; k++)
                                    {
                                        string str17 = strArrays[k];
                                        if (!(str17 == "") && Utils.SKILL_SQL2GS(Utils.StringToBytes(str17)).GSSkillID == frmMain.xMagic[j].m_Number)
                                        {
                                            str2 = str17;
                                            flag14 = true;
                                        }
                                    }
                                    this.clbCharacter.Items.Add(new ComboBoxItem(frmMain.ByteToString(frmMain.xMagic[j].Name, 32), str2), flag14);
                                    break;
                                }
                            case 15:
                                {
                                    if (frmMain.xMagic[j].iClassNumber.SUMMONER == 0)
                                    {
                                        break;
                                    }
                                    bool flag15 = false;
                                    chrArray = new char[] { ',' };
                                    strArrays = str1.Split(chrArray);
                                    for (k = 0; k < (int)strArrays.Length; k++)
                                    {
                                        string str18 = strArrays[k];
                                        if (!(str18 == "") && Utils.SKILL_SQL2GS(Utils.StringToBytes(str18)).GSSkillID == frmMain.xMagic[j].m_Number)
                                        {
                                            str2 = str18;
                                            flag15 = true;
                                        }
                                    }
                                    this.clbCharacter.Items.Add(new ComboBoxItem(frmMain.ByteToString(frmMain.xMagic[j].Name, 32), str2), flag15);
                                    break;
                                }
                            case 16:
                                {
                                    if (frmMain.xMagic[j].iClassNumber.MONK == 0)
                                    {
                                        break;
                                    }
                                    bool flag16 = false;
                                    chrArray = new char[] { ',' };
                                    strArrays = str1.Split(chrArray);
                                    for (k = 0; k < (int)strArrays.Length; k++)
                                    {
                                        string str19 = strArrays[k];
                                        if (!(str19 == "") && Utils.SKILL_SQL2GS(Utils.StringToBytes(str19)).GSSkillID == frmMain.xMagic[j].m_Number)
                                        {
                                            str2 = str19;
                                            flag16 = true;
                                        }
                                    }
                                    this.clbCharacter.Items.Add(new ComboBoxItem(frmMain.ByteToString(frmMain.xMagic[j].Name, 32), str2), flag16);
                                    break;
                                }
                            case 17:
                                {
                                    if (frmMain.xMagic[j].iClassNumber.MONK == 0)
                                    {
                                        break;
                                    }
                                    bool flag17 = false;
                                    chrArray = new char[] { ',' };
                                    strArrays = str1.Split(chrArray);
                                    for (k = 0; k < (int)strArrays.Length; k++)
                                    {
                                        string str20 = strArrays[k];
                                        if (!(str20 == "") && Utils.SKILL_SQL2GS(Utils.StringToBytes(str20)).GSSkillID == frmMain.xMagic[j].m_Number)
                                        {
                                            str2 = str20;
                                            flag17 = true;
                                        }
                                    }
                                    this.clbCharacter.Items.Add(new ComboBoxItem(frmMain.ByteToString(frmMain.xMagic[j].Name, 32), str2), flag17);
                                    break;
                                }
                            default:
                                {
                                    bool flag18 = false;
                                    chrArray = new char[] { ',' };
                                    strArrays = str1.Split(chrArray);
                                    for (k = 0; k < (int)strArrays.Length; k++)
                                    {
                                        string str21 = strArrays[k];
                                        if (!(str21 == "") && Utils.SKILL_SQL2GS(Utils.StringToBytes(str21)).GSSkillID == frmMain.xMagic[j].m_Number)
                                        {
                                            str2 = str21;
                                            flag18 = true;
                                        }
                                    }
                                    this.clbCharacter.Items.Add(new ComboBoxItem(frmMain.ByteToString(frmMain.xMagic[j].Name, 32), str2), flag18);
                                    break;
                                }
                        }
                    }
                }
            }
            catch (Exception exception1)
            {
                Exception exception = exception1;
                string[] message = new string[] { "loadMagic：\nError:", exception.Message, "\nSource:", exception.Source, "\nTrace:", exception.StackTrace };
                Utils.WarningMessage(string.Concat(message));
            }
        }

        private void LoadSkillList()
        {
            throw new NotImplementedException();
        }

        protected byte[] loadWarehouse(string account)
        {
            string str = null;
            if (account == "")
            {
                return null;
            }
            byte[] value = null;
            try
            {
                str = string.Concat("SELECT [Items], [Money], [pw] FROM [warehouse] WHERE ([AccountID] = '", account, "')");
                OleDbDataReader oleDbDataReader = (new OleDbCommand(str, frmBase.Mu_Conn)).ExecuteReader();
                if (!oleDbDataReader.Read() || oleDbDataReader.GetValue(0) == DBNull.Value)
                {
                    this.txtWareHouseMoney.Text = "0";
                    this.txtWareHousePwd.Text = "0";
                }
                else
                {
                    value = (byte[])oleDbDataReader.GetValue(0);
                    this.txtWareHouseMoney.Text = Convert.ToString(oleDbDataReader.GetValue(1));
                    this.txtWareHousePwd.Text = Convert.ToString(oleDbDataReader.GetValue(2));
                }
                oleDbDataReader.Close();
            }
            catch (Exception exception1)
            {
                Exception exception = exception1;
                string[] message = new string[] { "SQL：", str, "\nError:", exception.Message, "\nSource:", exception.Source, "\nTrace:", exception.StackTrace };
                Utils.WarningMessage(string.Concat(message));
            }
            return value;
        }

        private void PackageExpLv1_CheckedChanged(object sender, EventArgs e)
        {
            if (this.PackageExpLv1.Checked)
            {
                this.ExtendedInvenCount = "1";
            }
        }

        private void PackageExpLv2_CheckedChanged(object sender, EventArgs e)
        {
            if (this.PackageExpLv2.Checked)
            {
                this.ExtendedInvenCount = "2";
            }
        }

        private void resizeWindow()
        {
            if (!this.pnlWarehouse.Visible && !this.pnlPackage.Visible)
            {
                base.Width = 424;
                return;
            }
            if (this.pnlWarehouse.Visible && this.pnlPackage.Visible)
            {
                base.Width = 1458;
                this.pnlWarehouse.Left = 424;
                this.pnlPackage.Left = 844;
                return;
            }
            if (this.pnlPackage.Visible)
            {
                base.Width = 1036;
                this.pnlPackage.Left = 424;
                return;
            }
            base.Width = 867;
            this.pnlWarehouse.Left = 424;
        }

        private bool saveAccount(string account)
        {
            bool flag;
            string str = null;
            try
            {
                account = (account == null ? "NULL" : string.Concat("'", account.Trim(), "'"));
                string str1 = string.Concat("[memb__pwd] = '", this.txtPassword.Text.Trim(), "', ");
                string str2 = (this.txtSNO.Text.Trim() == "NULL" ? "NULL" : string.Concat("'", this.txtSNO.Text.Trim(), "'"));
                string str4 = (this.txtQuestion.Text.Trim() == "NULL" ? "NULL" : string.Concat("'", this.txtQuestion.Text.Trim(), "'"));
                string str5 = (this.txtAnswer.Text.Trim() == "NULL" ? "NULL" : string.Concat("'", this.txtAnswer.Text.Trim(), "'"));
                string str6 = (this.txtNick.Text.Trim() == "NULL" ? "NULL" : string.Concat("'", this.txtNick.Text.Trim(), "'"));
                string str7 = (!this.chkState.Checked ? "'0'" : "'1'");
                string str8 = (this.textBox1.Text.Trim() == "NULL" ? "NULL" : string.Concat("'", this.textBox1.Text.Trim(), "'"));

                string[] strArrays1 = new string[] { "UPDATE [MEMB_INFO] SET ", str1, "[sno__numb] = ", str2, ", [memb_name] = ", str6, ", [fpas_ques] = ", str4, ", [fpas_answ] = ", str5, ", [bloc_code] = ", str7, ", [mail_addr] = ", str8, " FROM [MEMB_INFO] WHERE ([memb___id] = ", account, ")" };
                str = string.Concat(strArrays1);
                (new OleDbCommand(str, frmBase.Me_Conn)).ExecuteNonQuery();

                Utils.InfoMessage("Account saved successfully！");
                flag = true;
            }
            catch (Exception exception1)
            {
                Exception exception = exception1;
                string[] message = new string[] { "SQL：", str, "\nError:", exception.Message, "\nSource:", exception.Source, "\nTrace:", exception.StackTrace };
                Utils.WarningMessage(string.Concat(message));
                return false;
            }
            return flag;
        }
        
        private bool saveCharacter(string charName)
        {
            bool flag;
            string str = null;
            charName = (charName == null ? "" : charName.Trim());
            if (charName == "")
            {
                return false;
            }
            if (this.isCharOnline())
            {
                Utils.WarningMessage(string.Format("Current character {0} is online，please disconnect！", this.txtChar.Text.Trim()));
                return false;
            }
            try
            {
                int num = Convert.ToInt32(this.txtLevel.Text.Replace(" ", ""));
                int num1 = Convert.ToInt32(this.txtPoint.Text.Replace(" ", ""));
                int num2 = 16;
                switch (this.cboClass.SelectedIndex)
                {
                    case 0:
                        {
                            num2 = 0;
                            break;
                        }
                    case 1:
                        {
                            num2 = 1;
                            break;
                        }
                    case 2:
                        {
                            num2 = 2;
                            break;
                        }
                    case 3:
                        {
                            num2 = 16;
                            break;
                        }
                    case 4:
                        {
                            num2 = 17;
                            break;
                        }
                    case 5:
                        {
                            num2 = 18;
                            break;
                        }
                    case 6:
                        {
                            num2 = 32;
                            break;
                        }
                    case 7:
                        {
                            num2 = 33;
                            break;
                        }
                    case 8:
                        {
                            num2 = 34;
                            break;
                        }
                    case 9:
                        {
                            num2 = 48;
                            break;
                        }
                    case 10:
                        {
                            num2 = 50;
                            break;
                        }
                    case 11:
                        {
                            num2 = 64;
                            break;
                        }
                    case 12:
                        {
                            num2 = 66;
                            break;
                        }
                    case 13:
                        {
                            num2 = 80;
                            break;
                        }
                    case 14:
                        {
                            num2 = 81;
                            break;
                        }
                    case 15:
                        {
                            num2 = 82;
                            break;
                        }
                    case 16:
                        {
                            num2 = 96;
                            break;
                        }
                    case 17:
                        {
                            num2 = 98;
                            break;
                        }
                    case 18:
                        {
                            num2 = 112;
                            break;
                        }
                    case 19:
                        {
                            num2 = 114;
                            break;
                        }
                    default:
                        {
                            num2 = 115;
                            break;
                        }
                }
                string str1 = "0";
                switch (this.cboCode.SelectedIndex)
                {
                    case 0:
                        {
                            str1 = "0";
                            break;
                        }
                    case 1:
                        {
                            str1 = "1";
                            break;
                        }
                    case 2:
                        {
                            str1 = "2";
                            break;
                        }
                    case 3:
                        {
                            str1 = "4";
                            break;
                        }
                    case 4:
                        {
                            str1 = "8";
                            break;
                        }
                    case 5:
                        {
                            str1 = "16";
                            break;
                        }
                    case 6:
                        {
                            str1 = "32";
                            break;
                        }
                }
                
                UInt64 num3 = Convert.ToUInt64(this.txtExp.Text.Replace(" ", ""));
                int num4 = Convert.ToInt32(this.txtStrength.Text.Replace(" ", ""));
                int num5 = Convert.ToInt32(this.txtDexterity.Text.Replace(" ", ""));
                int num6 = Convert.ToInt32(this.txtVitality.Text.Replace(" ", ""));
                int num7 = Convert.ToInt32(this.txtEnergy.Text.Replace(" ", ""));
                int selectedIndex = this.cboMap.SelectedIndex;
                int num8 = Convert.ToInt32(this.txtPosX.Text.Replace(" ", ""));
                int num9 = Convert.ToInt32(this.txtPosY.Text.Replace(" ", ""));
                int selectedIndex1 = this.cboPK.SelectedIndex;
                int num10 = Convert.ToInt32(this.txtLeaderShip.Text.Replace(" ", ""));
                StringBuilder stringBuilder = new StringBuilder("0x");
                string str2 = "";
                if (this.cbSaveJN.Checked)
                {
                    int num11 = 0;
                    for (int i = 0; i < this.clbCharacter.CheckedItems.Count; i++)
                    {
                        ComboBoxItem item = (ComboBoxItem)this.clbCharacter.CheckedItems[i];
                        stringBuilder.Append(item.Value);
                    }
                    for (int j = 0; j < Utils.lstSSG.Count; j++)
                    {
                        SKILL_SQL_GS sKILLSQLG = Utils.lstSSG[j];
                        if (this.cboClass.SelectedIndex > 15)
                        {
                            if (!stringBuilder.ToString().Contains(Utils.SKILL_GS2SQL(sKILLSQLG)) && sKILLSQLG.GSSkillID > 269)
                            {
                                stringBuilder.Append(Utils.SKILL_GS2SQL(sKILLSQLG));
                                num11++;
                            }
                        }
                        else if (!stringBuilder.ToString().Contains(Utils.SKILL_GS2SQL(sKILLSQLG)) && sKILLSQLG.GSSkillID > 255)
                        {
                            stringBuilder.Append(Utils.SKILL_GS2SQL(sKILLSQLG));
                            num11++;
                        }
                    }
                    for (int k = this.clbCharacter.CheckedItems.Count + num11; k < 150; k++)
                    {
                        stringBuilder.Append("FF0000");
                    }
                    str2 = string.Concat(", [MagicList] = ", stringBuilder.ToString());
                }
                int num12 = Convert.ToInt32(this.txtFruitAddPoint.Text.Replace(" ", ""));
                int num13 = Convert.ToInt32(this.txtFruitSubPoint.Text.Replace(" ", ""));

                object[] objArray = new object[] { "UPDATE [Character] SET [cLevel] = ", num, ", [LevelUpPoint] = ", num1, ", [Class] = ", num2, ", [Experience] = ", num3, ", [Strength] = ", num4, ", [Dexterity] = ", num5, ", [Vitality] = ", num6, ", [Energy] = ", num7, str2, ", [MapNumber] = ", selectedIndex, ", [MapPosX] = ", num8, ", [MapPosY] = ", num9, ", [PkLevel] = ", selectedIndex1, ", [CtlCode] = ", str1, ", [Leadership] = ", num10, ", [FruitAddPoint] = ", num12, ", [FruitSubPoint] = ", num13, " WHERE ([Name] = '", charName, "')" };
                str = string.Concat(objArray);
                (new OleDbCommand(str, frmBase.Mu_Conn)).ExecuteNonQuery();
                Utils.InfoMessage("Character saved successfully！");
                flag = true;
            }
            catch (Exception exception1)
            {
                Exception exception = exception1;
                string[] message = new string[] { "SQL：", str, "\nError:", exception.Message, "\nSource:", exception.Source, "\nTrace:", exception.StackTrace };
                Utils.WarningMessage(string.Concat(message));
                return false;
            }
            return flag;
        }

        public bool saveInventory(string charName)
        {
            bool flag;
            string str = "";
            try
            {
                if (charName == "" || !this.btnUpdatePackage.Enabled)
                {
                    flag = false;
                }
                else if (!this.isCharOnline())
                {
                    packagePanel.DownItem();
                    packagePanelLv1.DownItem();
                    packagePanelLv2.DownItem();
                    packagePanelLv3.DownItem();
                    packagePanelLv4.DownItem();
                    shopPanel.DownItem();
                    string[] values = new string[8]
                    {
                        charPanel.getEquipCodes(),
                        packagePanel.getEquipCodes(),
                        packagePanelLv1.getEquipCodes(),
                        packagePanelLv2.getEquipCodes(),
                        packagePanelLv3.getEquipCodes(),
                        packagePanelLv4.getEquipCodes(),
                        shopPanel.getEquipCodes(),
                        sPentagramPanel.getEquipCodes()
                    };
                    string text2 = string.Concat(values);
                    int num = Convert.ToInt32(txtMoney.Text.Replace(" ", ""));
                    saveItem(text2, true);
                    int isruud = Convert.ToInt32(txtRuud.Text.Replace(" ", ""));
                    object[] args = new object[5]
                    {
                        text2,
                        num,
                        ExtendedInvenCount,
                        isruud,
                        charName
                    };
                    str = string.Format("UPDATE [Character] SET [Inventory] = 0x{0}, [Money] = {1}, [InventoryExpansion] = {2}, [Ruud] = {3} WHERE ([Name] = '{4}')", args);
                    return base.Mu_ExecuteSQL(str);
                }
                else
                {
                    Utils.WarningMessage(string.Format("Current character {0} is online，please disconnect！", this.txtChar.Text.Trim()));
                    flag = false;
                }
            }
            catch (Exception exception1)
            {
                Exception exception = exception1;
                string[] message = new string[] { "SQL：", str, "\nError:", exception.Message, "\nSource:", exception.Source, "\nTrace:", exception.StackTrace };
                Utils.WarningMessage(string.Concat(message));
                return false;
            }
            return flag;
        }

        private void saveItem(string code, bool isChar)
        {
            string str = "INSERT INTO [ItemLog] ([Acc], [Name], [ItemCode], [SN], [iName], [iLvl], [iSkill], [iLuck], [iExt], [iSet], [i380], [iJh]) VALUES ('{0}', '{1}', 0x{2}, '{3}', '{4}', '{5}', '{6}', '{7}', '{8}', '{9}', '{10}', '{11}');";
            try
            {
                StringBuilder stringBuilder = new StringBuilder();
                bool flag = false;
                if (isChar)
                {
                    for (int i = 0; i < Utils.ListPackage.Count; i++)
                    {
                        string item = Utils.ListPackage[i];
                        if (item != "" && item != "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF" && !stringBuilder.ToString().Contains(item))
                        {
                            EquipItem equipItem = EquipItem.createItem(item);
                            if (equipItem != null && equipItem.SN < 0)
                            {
                                StringBuilder stringBuilder1 = stringBuilder;
                                string str1 = str;
                                object[] name = new object[] { this.txtAcc.Text.Trim(), this.txtChar.Text.Trim(), item, equipItem.SN, equipItem.Name, null, null, null, null, null, null, null };
                                object[] level = new object[] { "+", equipItem.Level, "z", equipItem.Ext * 4 };
                                name[5] = string.Concat(level);
                                name[6] = (equipItem.JN ? 1 : 0);
                                name[7] = (equipItem.XY ? 1 : 0);
                                name[8] = equipItem.Name;
                                name[9] = (equipItem.SetVal > 0 ? 1 : 0);
                                name[10] = (equipItem.Is380 ? 1 : 0);
                                name[11] = 0;
                                stringBuilder1.Append(string.Format(str1, name));
                                Utils.ListPackage[i] = "";
                                flag = true;
                            }
                        }
                    }
                }
                for (int j = 0; j < Utils.ListWareHouse.Count; j++)
                {
                    string item1 = Utils.ListWareHouse[j];
                    if (item1 != "" && item1 != "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF" && !stringBuilder.ToString().Contains(item1))
                    {
                        EquipItem equipItem1 = EquipItem.createItem(item1);
                        if (equipItem1 != null && equipItem1.SN < 0)
                        {
                            StringBuilder stringBuilder2 = stringBuilder;
                            string str2 = str;
                            object[] objArray = new object[] { this.txtAcc.Text.Trim(), this.txtChar.Text.Trim(), item1, equipItem1.SN, equipItem1.Name, null, null, null, null, null, null, null };
                            object[] level1 = new object[] { "+", equipItem1.Level, "z", equipItem1.Ext };
                            objArray[5] = string.Concat(level1);
                            objArray[6] = (equipItem1.JN ? 1 : 0);
                            objArray[7] = (equipItem1.XY ? 1 : 0);
                            objArray[8] = equipItem1.Name;
                            objArray[9] = (equipItem1.SetVal > 0 ? 1 : 0);
                            objArray[10] = (equipItem1.Is380 ? 1 : 0);
                            objArray[11] = 0;
                            stringBuilder2.Append(string.Format(str2, objArray));
                            Utils.ListWareHouse[j] = "";
                            flag = true;
                        }
                    }
                }
                if (flag)
                {
                    OleDbCommand oleDbCommand = new OleDbCommand(stringBuilder.ToString(), frmBase.Mu_Conn);
                    oleDbCommand.ExecuteNonQuery();
                }
            }
            catch (Exception exception1)
            {
                Exception exception = exception1;
                string[] message = new string[] { "SQL：", str, "\nError:", exception.Message, "\nSource:", exception.Source, "\nTrace:", exception.StackTrace };
                Utils.WarningMessage(string.Concat(message));
            }
        }

        private void saveLast(bool isChar)
        {
            if (!isChar)
            {
                this.warehousePanel.DownItem();
                this.warehousePanelLv1.DownItem();
                this.packagePanel.DownItem();
                this.packagePanelLv1.DownItem();
                this.packagePanelLv2.DownItem();
                this.packagePanelLv3.DownItem();
                this.packagePanelLv4.DownItem();
                this.shopPanel.DownItem();
                if ((!(wareHouseCode != "") || !(wareHouseCode != warehousePanel.getEquipCodes())) && (!(wareHouseLv1Code != "") || !(wareHouseLv1Code != warehousePanelLv1.getEquipCodes())) && (!(packagePanelCode != "") || !(packagePanelCode != packagePanel.getEquipCodes())) && (!(packagePanelLv1Code != "") || !(packagePanelLv1Code != packagePanelLv1.getEquipCodes())) && (!(packagePanelLv2Code != "") || !(packagePanelLv2Code != packagePanelLv2.getEquipCodes())) && (!(packagePanelLv3Code != "") || !(packagePanelLv3Code != packagePanelLv3.getEquipCodes())) && (!(packagePanelLv4Code != "") || !(packagePanelLv4Code != packagePanelLv4.getEquipCodes())) && (!(charPanelCode != "") || !(charPanelCode != charPanel.getEquipCodes())) && (!(shopPanelCode != "") || !(shopPanelCode != shopPanel.getEquipCodes())))
                {
                    if (!(sPentagramPanelCode != ""))
                    {
                        return;
                    }
                    if (!(sPentagramPanelCode != sPentagramPanel.getEquipCodes()))
                    {
                        return;
                    }
                }
                if (MessageBox.Show("The current warehouse, package or store has changed, do you want to save the changes?", "Error", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
                {
                    saveInventory(lastCharName);
                    saveWarehouse(lastAccount);
                }
            }
            else
            {
                packagePanel.DownItem();
                packagePanelLv1.DownItem();
                packagePanelLv2.DownItem();
                packagePanelLv3.DownItem();
                packagePanelLv4.DownItem();
                shopPanel.DownItem();
                if ((!(packagePanelCode != "") || !(packagePanelCode != packagePanel.getEquipCodes())) && (!(packagePanelLv1Code != "") || !(packagePanelLv1Code != packagePanelLv1.getEquipCodes())) && (!(packagePanelLv2Code != "") || !(packagePanelLv2Code != packagePanelLv2.getEquipCodes())) && (!(packagePanelLv3Code != "") || !(packagePanelLv3Code != packagePanelLv3.getEquipCodes())) && (!(packagePanelLv4Code != "") || !(packagePanelLv4Code != packagePanelLv4.getEquipCodes())) && (!(charPanelCode != "") || !(charPanelCode != charPanel.getEquipCodes())) && (!(shopPanelCode != "") || !(shopPanelCode != shopPanel.getEquipCodes())))
                {
                    if (!(sPentagramPanelCode != ""))
                    {
                        return;
                    }
                    if (!(sPentagramPanelCode != sPentagramPanel.getEquipCodes()))
                    {
                        return;
                    }
                }
                if (MessageBox.Show("The current warehouse, package or store has changed, do you want to save the changes?", "Error", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
                {
                    saveInventory(lastCharName);
                }
            }
        }

        public bool saveWarehouse(string account)
        {
            bool flag;
            string str = "";
            try
            {
                if (account == "" || !this.btnUpdateWarehouse.Enabled)
                {
                    flag = false;
                }
                else
                {
                    int num = Convert.ToInt32(this.txtWareHouseMoney.Text.Replace(" ", ""));
                    int num1 = Convert.ToInt32(this.txtWareHousePwd.Text.Replace(" ", ""));
                    this.warehousePanel.DownItem();
                    this.warehousePanelLv1.DownItem();
                    string str1 = string.Concat(this.warehousePanel.getEquipCodes(), this.warehousePanelLv1.getEquipCodes());
                    this.saveItem(str1, false);
                    str = string.Concat("SELECT [Items] FROM [warehouse] WHERE ([AccountID] = '", account, "')");
                    OleDbDataReader oleDbDataReader = (new OleDbCommand(str, frmBase.Mu_Conn)).ExecuteReader();
                    string str2 = null;
                    str2 = (!this.WarehouseExp.Checked ? "0" : "1");
                    str = string.Format("UPDATE [AccountCharacter] SET [WarehouseExpansion] = {0} WHERE ([Id] = '{1}')", str2, account);
                    base.Mu_ExecuteSQL(str);
                    if (oleDbDataReader.Read())
                    {
                        if (this.isOnline())
                        {
                            byte[] value = null;
                            if (oleDbDataReader.GetValue(0) != DBNull.Value)
                            {
                                value = (byte[])oleDbDataReader.GetValue(0);
                            }
                            EquipPanel equipPanel = new EquipPanel();
                            equipPanel.setSize(8, 15);
                            equipPanel.loadItemsByCodes(value, 0, (int)value.Length);
                            EquipPanel equipPanel1 = new EquipPanel();
                            equipPanel1.setSize(8, 15);
                            equipPanel1.loadItemsByCodes(value, 3840, (int)value.Length);
                            if (this.wareHouseCode != equipPanel.getEquipCodes() || this.wareHouseLv1Code != equipPanel1.getEquipCodes())
                            {
                                if (MessageBox.Show("This vault is currently being accessed，do you want to continue updating？", "Confirm", MessageBoxButtons.YesNo, MessageBoxIcon.Question) != DialogResult.Yes)
                                {
                                    flag = false;
                                    return flag;
                                }
                                else
                                {
                                    object[] objArray = new object[] { str1, num, num1, account };
                                    str = string.Format("UPDATE [warehouse] SET [Items] = 0x{0}, [Money] = {1}, [pw] = {2} WHERE ([AccountID] = '{3}')", objArray);
                                    flag = base.Mu_ExecuteSQL(str);
                                    return flag;
                                }
                            }
                        }
                        object[] objArray1 = new object[] { str1, num, num1, account };
                        str = string.Format("UPDATE [warehouse] SET [Items] = 0x{0}, [Money] = {1}, [pw] = {2} WHERE ([AccountID] = '{3}')", objArray1);
                        flag = base.Mu_ExecuteSQL(str);
                    }
                    else
                    {
                        object[] objArray2 = new object[] { account, str1, num, num1 };
                        str = string.Format("INSERT INTO [warehouse] ([AccountID], [Items], [Money], [pw]) VALUES ('{0}', 0x{1}, {2}, {3})", objArray2);
                        flag = base.Mu_ExecuteSQL(str);
                    }
                }
            }
            catch (Exception exception1)
            {
                Exception exception = exception1;
                string[] message = new string[] { "SQL：", str, "\nError:", exception.Message, "\nSource:", exception.Source, "\nTrace:", exception.StackTrace };
                Utils.WarningMessage(string.Concat(message));
                return false;
            }
            return flag;
        }

        private void setManagerFrm()
        {
            if (this.pnlWarehouse.Visible || this.pnlPackage.Visible)
            {
                if (this.FrmUser != null)
                {
                    this.FrmUser.Top = base.Top + base.Height / 2 - this.FrmUser.Height / 2;
                    this.FrmUser.Left = base.Left + base.Width / 2 - this.FrmUser.Width / 2;
                }
                if (this.FrmGuild != null)
                {
                    this.FrmGuild.Top = base.Top + base.Height / 2 - this.FrmGuild.Height / 2;
                    this.FrmGuild.Left = base.Left + base.Width / 2 - this.FrmGuild.Width / 2;
                }
                if (this.FrmEquip != null)
                {
                    this.FrmEquip.Top = base.Top + base.Height / 2 - this.FrmEquip.Height / 2;
                    this.FrmEquip.Left = base.Left + base.Width / 2 - this.FrmEquip.Width / 2;
                    return;
                }
            }
            else
            {
                if (this.FrmUser != null)
                {
                    this.FrmUser.Top = base.Top;
                    this.FrmUser.Left = base.Left + base.Width;
                }
                if (this.FrmGuild != null)
                {
                    this.FrmGuild.Top = base.Top;
                    this.FrmGuild.Left = base.Left + base.Width;
                }
                if (this.FrmEquip != null)
                {
                    this.FrmEquip.Top = base.Top;
                    this.FrmEquip.Left = base.Left + base.Width;
                }
            }
        }

        private void showByAccount(string account, string charName)
        {
            if (account == "")
            {
                return;
            }
            this.lastAccount = account;
            if (frmBase.Me_Conn.State != ConnectionState.Open)
            {
                return;
            }
            string str = null;
            try
            {
                str = string.Format("SELECT [a].[memb___id], [a].[memb__pwd], [a].[memb_name], [a].[sno__numb], [a].[mail_addr], [a].[fpas_ques], [a].[fpas_answ], [a].[bloc_code], '---', [b].[ConnectStat], [b].[ServerName], [b].[IP], [b].[ConnectTM], [b].[DisConnectTM] FROM [MEMB_INFO] AS [a] LEFT OUTER JOIN [MEMB_STAT] AS [b] ON [a].[memb___id] = [b].[memb___id] LEFT OUTER JOIN [AccountCharacter] AS [c] ON [a].[memb___id] = [c].[Id] COLLATE Chinese_PRC_CS_AS_KS_WS WHERE ([a].[memb___id] = '{0}')", account);
                OleDbDataReader oleDbDataReader = (new OleDbCommand(str, frmBase.Me_Conn)).ExecuteReader();
                if (!oleDbDataReader.Read())
                {
                    Utils.WarningMessage(string.Concat("Error: The account [" + account + "] was not found."));
                    this.txtAccount.SelectAll();
                    this.tabcInfo.Enabled = false;
                    this.pnlPackage.Enabled = false;
                    this.pnlWarehouse.Enabled = false;
                    this.clearGDI(false);
                }
                else
                {
                    foreach (DataRow row in oleDbDataReader.GetSchemaTable().Rows)
                    {
                        if (Convert.ToString(row["ColumnName"]) != "[memb__pwd]")
                        {
                            continue;
                        }
                        this.MD5 = Convert.ToString(row["DataType"]) == "System.Byte[]";
                        break;
                    }
                    ComboBox comboBox = this.txtAccount;
                    TextBox textBox = this.txtAcc;
                    string str1 = Convert.ToString(oleDbDataReader.GetValue(0));
                    string str2 = str1;
                    textBox.Text = str1;
                    comboBox.Text = str2;
                    this.txtPassword.Text = oleDbDataReader.GetString(1);
                    this.txtNick.Text = (Convert.ToString(oleDbDataReader.GetValue(2)) == "" ? "NULL" : Convert.ToString(oleDbDataReader.GetValue(2)));
                    this.txtSNO.Text = (Convert.ToString(oleDbDataReader.GetValue(3)) == "" ? "NULL" : Convert.ToString(oleDbDataReader.GetValue(3)));
                    this.textBox1.Text = (Convert.ToString(oleDbDataReader.GetValue(4)) == "" ? "NULL" : Convert.ToString(oleDbDataReader.GetValue(4)));
                    this.txtQuestion.Text = (Convert.ToString(oleDbDataReader.GetValue(5)) == "" ? "NULL" : Convert.ToString(oleDbDataReader.GetValue(5)));
                    this.txtAnswer.Text = (Convert.ToString(oleDbDataReader.GetValue(6)) == "" ? "NULL" : Convert.ToString(oleDbDataReader.GetValue(6)));
                    string str3 = Convert.ToString(oleDbDataReader.GetValue(7));
                    this.chkState.Checked = str3 == "1";
                    string str4 = (oleDbDataReader.GetValue(9).ToString() == "0" ? "Offline" : "Online");
                    this.lblState.Text = str4;
                    this.lblState.ForeColor = (str4.Length == 7 ? Color.Red : Color.Green);
                    this.lblServerNameResult.Text = string.Format("{0}", oleDbDataReader.GetValue(10));
                    this.lblIP.Text = string.Format("{0}", oleDbDataReader.GetValue(11));
                    this.lblConnectResult.Text = string.Format("{0:F}", oleDbDataReader.GetValue(12));
                    this.lblDisconnectResult.Text = string.Format("{0:F}", oleDbDataReader.GetValue(13));
                    this.tabcInfo.Enabled = true;
                    this.pnlPackage.Enabled = true;
                    this.pnlWarehouse.Enabled = true;
                    this.showGDI(false);
                    oleDbDataReader.Close();
                    string[] mUSERVER = new string[] { "SELECT [AC].[GameIDC], [AC].[GameID1], [AC].[GameID2], [AC].[GameID3], [AC].[GameID4], [AC].[GameID5], [AC].[WarehouseExpansion] FROM [dbo].[MEMB_INFO] LEFT OUTER JOIN [", frmMain.MU_SERVER, "].[", frmMain.MU_DB, "].[dbo].[AccountCharacter] AS [AC] ON [MEMB_INFO].[memb___id] = [AC].[Id] COLLATE Chinese_PRC_CS_AS_KS_WS WHERE ([AC].[Id] = '", account, "')" };
                    str = string.Concat(mUSERVER);
                    oleDbDataReader = (new OleDbCommand(str, frmBase.Me_Conn)).ExecuteReader();
                    this.cmbChar.Items.Clear();
                    this.cmbChar.Text = "";
                    if (!oleDbDataReader.Read())
                    {
                        Utils.WarningMessage(string.Concat("Error: Not found characters for account [" + account + "]."));
                        this.pnlPackage.Enabled = false;
                        this.clearGDI(true);
                    }
                    else
                    {
                        object value = oleDbDataReader.GetValue(0);
                        for (int i = 1; i <= 5; i++)
                        {
                            value = oleDbDataReader.GetValue(i);
                            if (value != null && value.ToString() != "")
                            {
                                this.cmbChar.Items.Add(value);
                            }
                        }
                        if (this.cmbChar.Items.Count > 0)
                        {
                            this.cmbChar.SelectedIndex = 0;
                        }
                        string str5 = Convert.ToString(oleDbDataReader.GetValue(6));
                        this.WarehouseExp.Checked = str5 == "1";
                        this.showGDI(false);
                    }
                    oleDbDataReader.Close();
                    str = "SELECT [AccountCharacter].[Id], [AccountCharacter].[Number] FROM [MEMB_INFO] LEFT OUTER JOIN [AccountCharacter] ON [MEMB_INFO].[memb___id] = [AccountCharacter].[Id] COLLATE Chinese_PRC_CS_AS_KS_WS WHERE ([Id] = '" + account + "')";
                    oleDbDataReader = new OleDbCommand(str, frmBase.Me_Conn).ExecuteReader();
                    oleDbDataReader.Close();
                    if (charName == "")
                    {
                        charName = cmbChar.Text;
                    }
                    showCharacter(charName);
                }
            }
            catch (Exception exception1)
            {
                Exception exception = exception1;
                string[] message = new string[] { "SQL：", str, "\nError:", exception.Message, "\nSource:", exception.Source, "\nTrace:", exception.StackTrace };
                Utils.WarningMessage(string.Concat(message));
            }
        }

        private void showByCharacter(string charName)
        {
            if (charName == "")
            {
                return;
            }
            if (frmBase.Mu_Conn.State != ConnectionState.Open)
            {
                return;
            }
            string str = null;
            string str1 = null;
            try
            {
                str = string.Concat("SELECT [AccountID] FROM [Character] WHERE ([Name] = '", charName, "')");
                OleDbDataReader oleDbDataReader = (new OleDbCommand(str, frmBase.Mu_Conn)).ExecuteReader();
                if (!oleDbDataReader.Read())
                {
                    Utils.WarningMessage(string.Concat("Error: The character [" + charName + "] was not found."));
                    oleDbDataReader.Close();
                    this.clearGDI(true);
                    this.pnlPackage.Enabled = false;
                }
                else
                {
                    str1 = Convert.ToString(oleDbDataReader.GetValue(0));
                    this.pnlPackage.Enabled = true;
                    oleDbDataReader.Close();
                    this.showByAccount(str1, charName);
                }
            }
            catch (Exception exception1)
            {
                Exception exception = exception1;
                string[] message = new string[] { "SQL：", str, "\nError:", exception.Message, "\nSource:", exception.Source, "\nTrace:", exception.StackTrace };
                Utils.WarningMessage(string.Concat(message));
            }
        }

        private void showCharacter(string charName)
        {
            if (charName != "")
            {
                this.lastCharName = charName;
                if (frmBase.Mu_Conn.State == ConnectionState.Open)
                {
                    string cmdText = null;
                    try
                    {
                        cmdText = "SELECT [AccountID], [cLevel], [LevelUpPoint], [Class], [Experience], [Strength], [Dexterity], [Vitality], [Energy], [Money], [MapNumber], [MapPosX], [MapPosY], [PkCount], [PkLevel], [CtlCode], [Leadership], [InventoryExpansion], [Ruud], [FruitAddPoint], [FruitSubPoint], [mlPoint], [mlExperience] FROM [Character] WHERE ([Name] = '" + charName + "')";
                        OleDbDataReader reader = new OleDbCommand(cmdText, frmBase.Mu_Conn).ExecuteReader();
                        if (reader.Read())
                        {
                            Convert.ToString(reader.GetValue(0));
                            this.txtChar.Text = charName;
                            this.txtLevel.Text = Convert.ToString(reader.GetValue(1));
                            this.txtPoint.Text = Convert.ToString(reader.GetValue(2));
                            int @byte = 0;
                            if (reader.GetValue(3) != DBNull.Value)
                            {
                                @byte = reader.GetByte(3);
                            }
                            switch (@byte)
                            {
                                case 0:
                                    cboClass.SelectedIndex = 0;
                                    break;

                                case 1:
                                    cboClass.SelectedIndex = 1;
                                    break;

                                case 2:
                                    cboClass.SelectedIndex = 2;
                                    break;

                                case 16:
                                    cboClass.SelectedIndex = 3;
                                    break;

                                case 17:
                                    cboClass.SelectedIndex = 4;
                                    break;

                                case 18:
                                    cboClass.SelectedIndex = 5;
                                    break;

                                case 32:
                                    cboClass.SelectedIndex = 6;
                                    break;

                                case 33:
                                    cboClass.SelectedIndex = 7;
                                    break;

                                case 34:
                                    cboClass.SelectedIndex = 8;
                                    break;

                                case 48:
                                    cboClass.SelectedIndex = 9;
                                    break;

                                case 50:
                                    cboClass.SelectedIndex = 10;
                                    break;

                                case 64:
                                    cboClass.SelectedIndex = 11;
                                    break;

                                case 66:
                                    cboClass.SelectedIndex = 12;
                                    break;

                                case 80:
                                    cboClass.SelectedIndex = 13;
                                    break;

                                case 81:
                                    cboClass.SelectedIndex = 14;
                                    break;

                                case 82:
                                    cboClass.SelectedIndex = 15;
                                    break;

                                case 96:
                                    cboClass.SelectedIndex = 16;
                                    break;

                                case 98:
                                    cboClass.SelectedIndex = 17;
                                    break;

                                case 112:
                                    cboClass.SelectedIndex = 18;
                                    break;

                                case 114:
                                    cboClass.SelectedIndex = 19;
                                    break;

                                default:
                                    cboClass.SelectedIndex = 20;
                                    break;
                            }
                            this.txtExp.Text = Convert.ToUInt64(reader.GetValue(4)).ToString();
                            this.txtStrength.Text = Convert.ToString(reader.GetValue(5));
                            this.txtDexterity.Text = Convert.ToString(reader.GetValue(6));
                            this.txtVitality.Text = Convert.ToString(reader.GetValue(7));
                            this.txtEnergy.Text = Convert.ToString(reader.GetValue(8));
                            this.txtMoney.Text = Convert.ToString(reader.GetValue(9));
                            int num2 = 0;
                            if (reader.GetValue(10) != DBNull.Value)
                            {
                                num2 = Convert.ToInt32(reader.GetValue(10));
                            }
                            if (num2 < this.cboMap.Items.Count)
                            {
                                this.cboMap.SelectedIndex = num2;
                            }
                            this.txtPosX.Text = Convert.ToString(reader.GetValue(11));
                            this.txtPosY.Text = Convert.ToString(reader.GetValue(12));
                            Convert.ToInt32(reader.GetValue(13));
                            int num3 = Convert.ToInt32(reader.GetValue(14));
                            this.cboPK.SelectedIndex = num3;
                            switch (reader.GetByte(15))
                            {
                                case 0:
                                    this.cboCode.SelectedIndex = 0;
                                    break;

                                case 1:
                                    this.cboCode.SelectedIndex = 1;
                                    break;

                                case 2:
                                    this.cboCode.SelectedIndex = 2;
                                    break;

                                case 4:
                                    this.cboCode.SelectedIndex = 3;
                                    break;

                                case 8:
                                    this.cboCode.SelectedIndex = 4;
                                    break;

                                case 0x10:
                                    this.cboCode.SelectedIndex = 5;
                                    break;

                                case 0x20:
                                    this.cboCode.SelectedIndex = 6;
                                    break;
                            }
                            this.txtLeaderShip.Text = Convert.ToString(reader.GetValue(16));
                            this.ExtendedInvenCount = Convert.ToString(reader.GetValue(17));
                            if (this.ExtendedInvenCount == "1")
                            {
                                this.chkPackageExp.Checked = true;
                                this.PackageExpLv1.Checked = true;
                                this.PackageExpLv2.Checked = false;
                            }
                            else if (this.ExtendedInvenCount == "2")
                            {
                                this.chkPackageExp.Checked = true;
                                this.PackageExpLv1.Checked = false;
                                this.PackageExpLv2.Checked = true;
                            }
                            else
                            {
                                this.chkPackageExp.Checked = false;
                                this.PackageExpLv1.Checked = false;
                                this.PackageExpLv2.Checked = false;
                            }
                            this.txtRuud.Text = Convert.ToString(reader.GetValue(18));
                            this.txtFruitAddPoint.Text = Convert.ToString(reader.GetValue(19));
                            this.txtFruitSubPoint.Text = Convert.ToString(reader.GetValue(20));

                            this.cmbChar.Text = charName;
                            this.loadMagic(this.cboClass.SelectedIndex);
                            this.pnlPackage.Enabled = true;
                            this.showGDI(true);
                        }
                        else
                        {
                            Utils.WarningMessage("Error: The character [" + charName + "] was not found.");
                            this.pnlPackage.Enabled = false;
                            this.clearGDI(true);
                        }
                        reader.Close();
                    }
                    catch (Exception exception)
                    {
                        Utils.WarningMessage("SQL：" + cmdText + "\nError:" + exception.Message + "\nSource:" + exception.Source + "\nTrace:" + exception.StackTrace);
                    }
                }
            }
        }

        private void showGDI(bool isChar)
        {
            this.accountLogin = true;
            this.charLogin = true;
            this.btnUpdateChar.Enabled = true;
            this.btnUpdatePackage.Enabled = true;
            this.btnUpdateWarehouse.Enabled = true;
            this.btnClearPackage.Enabled = true;
            this.btnClearWarehouse.Enabled = true;
            this.showPackageItems();
            if (!isChar)
            {
                this.showWarehouseItems();
                this.wareHouseCode = this.warehousePanel.getEquipCodes();
                this.wareHouseLv1Code = this.warehousePanelLv1.getEquipCodes();
            }
            this.charPanelCode = this.charPanel.getEquipCodes();
            this.packagePanelCode = this.packagePanel.getEquipCodes();
            this.packagePanelLv1Code = this.packagePanelLv1.getEquipCodes();
            this.packagePanelLv2Code = this.packagePanelLv2.getEquipCodes();
            this.packagePanelLv3Code = this.packagePanelLv3.getEquipCodes();
            this.packagePanelLv4Code = this.packagePanelLv4.getEquipCodes();
            this.shopPanelCode = this.shopPanel.getEquipCodes();
            this.sPentagramPanelCode = this.sPentagramPanel.getEquipCodes();
        }

        protected void showPackage(bool flag)
        {
            if (!flag)
            {
                this.tabcInfo.SelectedIndex = 1;
            }
            else
            {
                this.tabcInfo.SelectedIndex = 2;
                if (!this.LoadedPackage)
                {
                    this.showPackageItems();
                }
            }
            this.pnlPackage.Visible = flag;
            this.resizeWindow();
            this.ShownPackage = flag;
        }

        private void showPackageItems()
        {
            string str = this.txtChar.Text.Trim();
            if (str == "")
            {
                return;
            }

            byte[] numArray = this.loadInventory(str);

            if (numArray != null)
            {
                this.LoadedPackage = true;
                this.charPanel.clearData();
                int xNum = CharPanel.EquipNum * EquipItem.ITEM_SIZE;
                if (!this.charPanel.loadItemsByCodes(numArray, 0, CharPanel.EquipNum * EquipItem.ITEM_SIZE))
                {
                    Utils.WarningMessage(string.Format("Error: Role data for character [{0}] is not in the correct format.", str));
                    this.LoadedPackage = false;
                }
                this.packagePanel.clearData();
                if (!this.packagePanel.loadItemsByCodes(numArray, xNum, (int)numArray.Length - xNum))
                {
                    Utils.WarningMessage(string.Format("Error: Inventory data for character [{0}] is not in the correct format.", str));
                    this.LoadedPackage = false;
                }
                this.packagePanelLv1.clearData();
                xNum = xNum + this.packagePanel.XNum * this.packagePanel.YNum * EquipItem.ITEM_SIZE;
                if (!this.packagePanelLv1.loadItemsByCodes(numArray, xNum, (int)numArray.Length - xNum))
                {
                    Utils.WarningMessage(string.Format("Error: Role data for [{0}] extension package 1 is not in the correct format.", str));
                    this.LoadedPackage = false;
                }
                this.packagePanelLv2.clearData();
                xNum = xNum + this.packagePanelLv1.XNum * this.packagePanelLv1.YNum * EquipItem.ITEM_SIZE;
                if (!this.packagePanelLv2.loadItemsByCodes(numArray, xNum, (int)numArray.Length - xNum))
                {
                    Utils.WarningMessage(string.Format("Error: Role data for [{0}] extension package 2 is not in the correct format.", str));
                    this.LoadedPackage = false;
                }
                this.packagePanelLv3.clearData();
                xNum = xNum + this.packagePanelLv2.XNum * this.packagePanelLv2.YNum * EquipItem.ITEM_SIZE;
                if (!this.packagePanelLv3.loadItemsByCodes(numArray, xNum, (int)numArray.Length - xNum))
                {
                    Utils.WarningMessage(string.Format("Error: Role data for [{0}] extension package 3 is not in the correct format.", str));
                    this.LoadedPackage = false;
                }
                this.packagePanelLv4.clearData();
                xNum = xNum + this.packagePanelLv3.XNum * this.packagePanelLv3.YNum * EquipItem.ITEM_SIZE;
                if (!this.packagePanelLv4.loadItemsByCodes(numArray, xNum, (int)numArray.Length - xNum))
                {
                    Utils.WarningMessage(string.Format("Error: Role data for [{0}] extension package 4 is not in the correct format.", str));
                    this.LoadedPackage = false;
                }
                this.shopPanel.clearData();
                xNum = xNum + this.packagePanelLv4.XNum * this.packagePanelLv4.YNum * EquipItem.ITEM_SIZE;
                if (!this.shopPanel.loadItemsByCodes(numArray, xNum, (int)numArray.Length - xNum))
                {
                    Utils.WarningMessage(string.Format("Error: Shop data for [{0}] is not in the correct format.", str));
                    this.LoadedPackage = false;
                }
                sPentagramPanel.clearData();
                xNum = xNum + this.shopPanel.XNum * this.shopPanel.YNum * EquipItem.ITEM_SIZE;
                if (!sPentagramPanel.loadItemsByCodes(numArray, xNum, (int)numArray.Length - xNum))
                {
                    Utils.WarningMessage("加载角色技能书栏的装备失败，可能数据格式不正确！");
                }
            }
        }

        protected void showWarehouse(bool flag)
        {
            if (!flag)
            {
                this.tabcInfo.SelectedIndex = 0;
            }
            else
            {
                this.tabcInfo.SelectedIndex = 2;
                if (!this.LoadedWarehouse)
                {
                    this.showWarehouseItems();
                }
            }
            this.pnlWarehouse.Visible = flag;
            this.resizeWindow();
            this.ShownWarehouse = flag;
        }

        private void showWarehouseItems()
        {
            string str = this.txtAcc.Text.Trim();
            if (str == "")
            {
                return;
            }
            byte[] numArray = this.loadWarehouse(str);
            if (numArray == null)
            {
                this.LoadedWarehouse = true;
                this.warehousePanel.clearData();
                this.warehousePanel.loadItemsByCodes(numArray, 0, 0);
                this.warehousePanelLv1.clearData();
                this.warehousePanelLv1.loadItemsByCodes(numArray, 3840, 0);
            }
            else
            {
                this.LoadedWarehouse = true;
                this.warehousePanel.clearData();
                if (!this.warehousePanel.loadItemsByCodes(numArray, 0, (int)numArray.Length / 2))
                {
                    Utils.WarningMessage(string.Format("Error: Warehouse data for [{0}] is not in the correct format.", str));
                    this.LoadedWarehouse = false;
                }
                this.warehousePanelLv1.clearData();
                if (!this.warehousePanelLv1.loadItemsByCodes(numArray, (int)numArray.Length / 2, (int)numArray.Length / 2))
                {
                    Utils.WarningMessage(string.Format("Error: Warehouse extension 1 data for [{0}] is not in the correct format.", str));
                    this.LoadedWarehouse = false;
                    return;
                }
            }
        }

        private void txtAccount_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (e.KeyChar == '\r')
            {
                this.InputAccount(this.txtAccount.Text.Trim());
            }
        }

        private void txtAccount_SelectedIndexChanged(object sender, EventArgs e)
        {
            this.InputAccount(this.txtAccount.Text.Trim());
        }

        private void txtAccount_TextChanged(object sender, EventArgs e)
        {
            if (this.txtAccount.Items.Contains(this.txtAccount.Text) || this.txtAccount.Text == null)
            {
                return;
            }
            if (frmBase.Me_Conn.State != ConnectionState.Open)
            {
                return;
            }
            string str = null;
            try
            {
                str = string.Format("SELECT TOP 100 [memb___id] FROM [MEMB_INFO] WHERE [memb___id] LIKE '{0}%'", this.txtAccount.Text);
                OleDbDataReader oleDbDataReader = (new OleDbCommand(str, frmBase.Me_Conn)).ExecuteReader();
                object value = null;
                while (oleDbDataReader.Read())
                {
                    value = oleDbDataReader.GetValue(0);
                    if (this.txtAccount.Items.Contains(value))
                    {
                        continue;
                    }
                    this.txtAccount.Items.Add(value);
                }
                oleDbDataReader.Close();
            }
            catch (Exception exception1)
            {
                Exception exception = exception1;
                string[] message = new string[] { "SQL：", str, "\nError:", exception.Message, "\nSource:", exception.Source, "\nTrace:", exception.StackTrace };
                Utils.WarningMessage(string.Concat(message));
            }
        }

        private void txtAccountLoad()
        {
            if (frmBase.Me_Conn.State != ConnectionState.Open)
            {
                return;
            }
            string str = null;
            try
            {
                str = "SELECT TOP 100 [memb___id] FROM [MEMB_INFO]";
                OleDbDataReader oleDbDataReader = (new OleDbCommand(str, frmBase.Me_Conn)).ExecuteReader();
                this.txtAccount.Items.Clear();
                this.txtAccount.AutoCompleteCustomSource.Clear();
                this.txtAccount.Text = "";
                while (oleDbDataReader.Read())
                {
                    this.txtAccount.Items.Add(oleDbDataReader.GetValue(0));
                }
                if (this.txtAccount.Items.Count > 0)
                {
                    this.txtAccount.SelectedIndex = 0;
                }
                oleDbDataReader.Close();
            }
            catch (Exception exception1)
            {
                Exception exception = exception1;
                string[] message = new string[] { "SQL：", str, "\nError:", exception.Message, "\nSource:", exception.Source, "\nTrace:", exception.StackTrace };
                Utils.WarningMessage(string.Concat(message));
            }
        }

        protected void updateUI()
        {
            this.btnWarehouse.Enabled = this.accountLogin;
            this.btnChar.Enabled = this.charLogin;
            if (this.ShownPackage)
            {
                this.showPackage(true);
            }
            if (this.ShownWarehouse)
            {
                this.showWarehouse(true);
            }
            if (this.ShownPackage || this.ShownWarehouse)
            {
                this.tabcInfo.SelectedIndex = 2;
            }
            if (this.charLogin)
            {
                this.charPanel.Prof = this.cboClass.SelectedIndex;
            }
            this.resizeWindow();
        }

        private void UserstoolStripMenuItem1_Click(object sender, EventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;
            this.FrmUser = frmUser.GetInstance(this, "");
            this.FrmUser.Visible = false;
            this.FrmUser.Show(this);
            this.setManagerFrm();
            this.Cursor = Cursors.Default;
        }

        private void AbautAToolStripMenuItem_Click(object sender, EventArgs e)
        {
            (new frmAbout()).ShowDialog(this);
        }

        private void StatusUToolStripMenuItem_Click(object sender, EventArgs e)
        {
            string str = "未查询到任何消息";
            string str1 = "";
            try
            {
                this.Cursor = Cursors.WaitCursor;
                string[] mUSERVER = new string[] { "SELECT TOP 1 (SELECT COUNT(1) FROM [MEMB_INFO]) AS [a], (SELECT COUNT(1) FROM [", frmMain.MU_SERVER, "].[", frmMain.MU_DB, "].[dbo].[Character]) AS [b], (SELECT COUNT(1) FROM [MEMB_STAT] WHERE ([ConnectStat] = 1)) AS [c] FROM [dbo].[MEMB_INFO]" };
                str1 = string.Concat(mUSERVER);
                OleDbDataReader oleDbDataReader = (new OleDbCommand(str1, frmBase.Me_Conn)).ExecuteReader();
                if (oleDbDataReader.Read())
                {
                    str = string.Format("Server membership statistics: \n\n Accounts: {0}\n Characters: {1} \n Online players: {2}", oleDbDataReader.GetValue(0), oleDbDataReader.GetValue(1), oleDbDataReader.GetValue(2));
                }
                oleDbDataReader.Close();
            }
            catch (Exception exception1)
            {
                Exception exception = exception1;
                string[] message = new string[] { "SQL：", str1, "\nError:", exception.Message, "\nSource:", exception.Source, "\nTrace:", exception.StackTrace };
                Utils.WarningMessage(string.Concat(message));
            }
            this.Cursor = Cursors.Default;
            Utils.InfoMessage(str);
        }

        private void HelpHToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (!File.Exists(string.Concat(Application.StartupPath, "\\instructions.doc")))
            {
                Utils.WarningMessage("Error: Help file not found.");
                return;
            }
            Process.Start(string.Concat(Application.StartupPath, "\\instructions.doc"));
        }

        private void GuildGToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;
            this.FrmGuild = frmGuild.GetInstance(this);
            this.FrmGuild.Visible = false;
            this.FrmGuild.Show(this);
            this.setManagerFrm();
            this.Cursor = Cursors.Default;
        }

        private void AddAcountNToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;
            frmUserAdd.GetInstance().ShowDialog(this);
            this.Cursor = Cursors.Default;
        }

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

        private void testeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;
            this.FrmInitEquip = frmInitEquip.GetInstance();
            this.FrmInitEquip.Visible = false;
            this.FrmInitEquip.Show(this);
            this.setManagerFrm();
            this.Cursor = Cursors.Default;

        }

        private void label33_Click(object sender, EventArgs e)
        {

        }
    }
}