⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 entrypointcontrol.cs

📁 破解的飞信源代码
💻 CS
📖 第 1 页 / 共 5 页
字号:
            {
                this.cmbId.Text = id;
                this.tbPassword.Text = pass;
            }
        }

        private int FindInsertIndexOfId(string id)
        {
            for (int i = 0; i < this.cmbId.Items.Count; i++)
            {
                string text = (string) this.cmbId.Items[i];
                if (CompareIds(text, id) > 0)
                {
                    return i;
                }
            }
            return -1;
        }

        private void FrameworkWnd_BeginSuspend(object sender, EventArgs e)
        {
            try
            {
                if ((this._manager.CurrentUser.Status == UserAccountStatus.WaitReconnect) && !this.AutoLogin)
                {
                    ClientLogger.WriteBizOperation("开始休眠,清除倒计时!");
                    if (this.autoReconnect != null)
                    {
                        this.autoReconnect.StopTimer(true);
                    }
                }
                this.ShowNetworkSetting(true);
            }
            catch (Exception)
            {
            }
        }

        private void FrameworkWnd_Loaded(object sender, EventArgs e)
        {
            try
            {
                this.LoadUserAccounts();
                this.TryAutoLogin();
            }
            catch (Exception exception)
            {
                UiErrorHelper.HandExceptionSafely(this._manager.FrameworkWnd, exception);
            }
        }

        private void FrameworkWnd_SuspendRestored(object sender, EventArgs e)
        {
            try
            {
                ClientLogger.WriteBizOperation("休眠恢复!");
                this.TryAutoLogin();
            }
            catch
            {
            }
        }

        private string HashWithOldNonce(byte[] bytes)
        {
            return Imps.Client.Core.User.DoHashPassword(bytes, ComputeAuthResponse.HexToBinary(this.currentAd.Password.Substring(0, 8)));
        }

        private void HideErrorTip()
        {
            BalloonHelper.RemoveAll();
        }

        private void InitializeComponent()
        {
            this.components = new Container();
            ComponentResourceManager manager = new ComponentResourceManager(typeof(EntryPointControl));
            this.cbAutoLogin = new CheckBox();
            this.cbSavePassword = new CheckBox();
            this.cbSaveAccount = new CheckBox();
            this.rbPrivate = new RadioButton();
            this.rbPublic = new RadioButton();
            this.pbProgress = new PictureBox();
            this.InitStatus = new BDisplayNameAndOnlineStatus();
            this.InitStatusMenu = new menu_widget(this.components);
            this.bDisplayHelp = new BDisplayHelp();
            this.cmbId = new XComboBox();
            this.tbPassword = new XPasswordEdit();
            this.btnLogin = new XButton();
            this.pbProgress.BeginInit();
            base.SuspendLayout();
            this.cbAutoLogin.set_AutoSize(true);
            this.cbAutoLogin.FlatStyle = FlatStyle.Flat;
            this.cbAutoLogin.Location = new System.Drawing.Point(13, 0x14d);
            this.cbAutoLogin.Name = "cbAutoLogin";
            this.cbAutoLogin.Size = new Size(0x47, 0x11);
            this.cbAutoLogin.TabIndex = 7;
            this.cbAutoLogin.Text = "自动登录";
            this.cbAutoLogin.set_UseVisualStyleBackColor(true);
            this.cbAutoLogin.CheckedChanged += new EventHandler(this.cbAutoLogin_CheckedChanged);
            this.cbSavePassword.set_AutoSize(true);
            this.cbSavePassword.FlatStyle = FlatStyle.Flat;
            this.cbSavePassword.Location = new System.Drawing.Point(13, 310);
            this.cbSavePassword.Name = "cbSavePassword";
            this.cbSavePassword.Size = new Size(0x5f, 0x11);
            this.cbSavePassword.TabIndex = 6;
            this.cbSavePassword.Text = "记住我的密码";
            this.cbSavePassword.set_UseVisualStyleBackColor(true);
            this.cbSavePassword.CheckedChanged += new EventHandler(this.cbSavePassword_CheckedChanged);
            this.cbSaveAccount.set_AutoSize(true);
            this.cbSaveAccount.FlatStyle = FlatStyle.Flat;
            this.cbSaveAccount.Location = new System.Drawing.Point(13, 0x11f);
            this.cbSaveAccount.Name = "cbSaveAccount";
            this.cbSaveAccount.Size = new Size(0x5f, 0x11);
            this.cbSaveAccount.TabIndex = 5;
            this.cbSaveAccount.Text = "保存我的信息";
            this.cbSaveAccount.set_UseVisualStyleBackColor(true);
            this.cbSaveAccount.Visible = false;
            this.cbSaveAccount.CheckedChanged += new EventHandler(this.cbSaveAccount_CheckedChanged);
            this.rbPrivate.set_AutoSize(true);
            this.rbPrivate.Checked = true;
            this.rbPrivate.FlatStyle = FlatStyle.Flat;
            this.rbPrivate.Location = new System.Drawing.Point(4, 0x108);
            this.rbPrivate.Name = "rbPrivate";
            this.rbPrivate.Size = new Size(0x60, 0x11);
            this.rbPrivate.TabIndex = 4;
            this.rbPrivate.TabStop = true;
            this.rbPrivate.Text = "保存我的信息";
            this.rbPrivate.set_UseVisualStyleBackColor(true);
            this.rbPrivate.CheckedChanged += new EventHandler(this.rbPrivate_CheckedChanged);
            this.rbPublic.set_AutoSize(true);
            this.rbPublic.FlatStyle = FlatStyle.Flat;
            this.rbPublic.Location = new System.Drawing.Point(3, 0xf1);
            this.rbPublic.Name = "rbPublic";
            this.rbPublic.Size = new Size(0x54, 0x11);
            this.rbPublic.TabIndex = 3;
            this.rbPublic.Text = "公共计算机";
            this.rbPublic.set_UseVisualStyleBackColor(true);
            this.rbPublic.CheckedChanged += new EventHandler(this.rbPublic_CheckedChanged);
            this.pbProgress.BackColor = Color.Transparent;
            this.pbProgress.Image = (Image) manager.GetObject("pbProgress.Image");
            this.pbProgress.Location = new System.Drawing.Point(0x7f, 0xd3);
            this.pbProgress.Name = "pbProgress";
            this.pbProgress.Size = new Size(0x66, 15);
            this.pbProgress.TabIndex = 9;
            this.pbProgress.TabStop = false;
            this.pbProgress.Visible = false;
            this.InitStatus.BackColor = Color.Transparent;
            this.InitStatus.DisplayName = "";
            this.InitStatus.DisplayNameFont = new Font("SimSun", 9f, FontStyle.Regular, GraphicsUnit.Point, 0x86);
            this.InitStatus.DisplayNameForeColor = Color.Black;
            this.InitStatus.DropDownButtonImage = (Image) manager.GetObject("InitStatus.DropDownButtonImage");
            this.InitStatus.DropDownMenu = this.InitStatusMenu;
            this.InitStatus.Location = new System.Drawing.Point(0x18, 0x71);
            this.InitStatus.MouseDownBackColor = Color.White;
            this.InitStatus.MouseDownBackgroundImage = null;
            this.InitStatus.MouseDownBorderColor = Color.FromArgb(0x98, 200, 0xe8);
            this.InitStatus.MouseOverBackColor = Color.White;
            this.InitStatus.MouseOverBackgroundImage = null;
            this.InitStatus.MouseOverBorderColor = Color.FromArgb(0x48, 0x90, 200);
            this.InitStatus.Name = "InitStatus";
            this.InitStatus.OnlineStatusText = "在线";
            this.InitStatus.OnlineStatusTextFont = new Font("SimSun", 9f);
            this.InitStatus.OnlineStatusTextForeColor = Color.Black;
            this.InitStatus.Size = new Size(0x2f, 0x16);
            this.InitStatus.TabIndex = 8;
            this.InitStatus.ToolTipText = "";
            this.InitStatusMenu.Name = "InitStatusMenu";
            this.InitStatusMenu.Size = new Size(0x3d, 4);
            this.InitStatusMenu.UseMnemonic = true;
            this.InitStatusMenu.add_Opening(new CancelEventHandler(this.InitStatusMenu_Opening));
            this.bDisplayHelp.BackColor = Color.Transparent;
            this.bDisplayHelp.DropDownButtonImage = (Image) manager.GetObject("bDisplayHelp.DropDownButtonImage");
            this.bDisplayHelp.DropDownMenu = null;
            this.bDisplayHelp.ForeColor = Color.Blue;
            this.bDisplayHelp.Location = new System.Drawing.Point(0xc6, 3);
            this.bDisplayHelp.MouseDownBackColor = Color.White;
            this.bDisplayHelp.MouseDownBackgroundImage = null;
            this.bDisplayHelp.MouseDownBorderColor = Color.FromArgb(0x98, 200, 0xe8);
            this.bDisplayHelp.MouseOverBackColor = Color.White;
            this.bDisplayHelp.MouseOverBackgroundImage = null;
            this.bDisplayHelp.MouseOverBorderColor = Color.FromArgb(0x48, 0x90, 200);
            this.bDisplayHelp.Name = "bDisplayHelp";
            this.bDisplayHelp.Size = new Size(0x2b, 0x15);
            this.bDisplayHelp.TabIndex = 11;
            this.bDisplayHelp.Text = "帮助";
            this.bDisplayHelp.ToolTipText = "";
            this.cmbId.set_AutoCompleteMode(1);
            this.cmbId.set_AutoCompleteSource(0x100);
            this.cmbId.BackColor = Color.White;
            this.cmbId.EmptyTextTip = "";
            this.cmbId.EmptyTextTipColor = Color.DarkGray;
            this.cmbId.Location = new System.Drawing.Point(0x18, 0x8e);
            this.cmbId.MaxLength = 11;
            this.cmbId.Name = "cmbId";
            this.cmbId.Size = new Size(0x9d, 0x15);
            this.cmbId.TabIndex = 0;
            this.cmbId.TextChanged += new EventHandler(this.cmbId_TextChanged);
            this.tbPassword.BackColor = Color.White;
            this.tbPassword.BorderStyle = BorderStyle.FixedSingle;
            this.tbPassword.EmptyTextTip = "";
            this.tbPassword.EmptyTextTipColor = Color.DarkGray;
            this.tbPassword.Location = new System.Drawing.Point(0x18, 0xb6);
            this.tbPassword.MaxLength = 0x10;
            this.tbPassword.ModifyPasswordTip = "";
            this.tbPassword.Name = "tbPassword";
            this.tbPassword.PasswordChar = '*';
            this.tbPassword.Size = new Size(0x9d, 20);
            this.tbPassword.TabIndex = 1;
            this.tbPassword.set_UseSystemPasswordChar(true);
            this.tbPassword.TextChanged += new EventHandler(this.tbPassword_TextChanged);
            this.btnLogin.AutoArrangementX = true;
            this.btnLogin.AutoSizeToImage = true;
            this.btnLogin.BackColor = Color.Transparent;
            this.btnLogin.BackgroundImage = Resources.logon;
            this.btnLogin.BackgroundImageDisable = Resources.logon_dis;
            this.btnLogin.BackgroundImageDown = Resources.logon_down;
            this.btnLogin.BackgroundImageHover = Resources.logon_hover;
            this.btnLogin.ChangeSkin = false;
            this.btnLogin.Font = new Font("SimSun", 10.5f, FontStyle.Bold, GraphicsUnit.Point, 0x86);
            this.btnLogin.ForeColor = Color.White;
            this.btnLogin.Location = new System.Drawing.Point(0x8b, 0xf1);
            this.btnLogin.Name = "btnLogin";
            this.btnLogin.Size = new Size(0x5b, 0x1b);
            this.btnLogin.TabIndex = 2;
            this.btnLogin.set_UseVisualStyleBackColor(false);
            this.btnLogin.Click += new EventHandler(this.btnLogin_Click);
            base.set_AutoScaleDimensions(new SizeF(6f, 13f));
            base.set_AutoScaleMode(1);
            this.BackColor = Color.Transparent;
            base.Controls.Add(this.InitStatus);
            base.Controls.Add(this.rbPublic);
            base.Controls.Add(this.rbPrivate);
            base.Controls.Add(this.bDisplayHelp);
            base.Controls.Add(this.cmbId);
            base.Controls.Add(this.pbProgress);
            base.Controls.Add(this.cbAutoLogin);
            base.Controls.Add(this.cbSavePassword);
            base.Controls.Add(this.cbSaveAccount);
            base.Controls.Add(this.tbPassword);
            base.Controls.Add(this.btnLogin);
            this.set_MinimumSize(new Size(100, 150));
            base.Name = "EntryPointControl";
            base.Size = new Size(0x10d, 0x173);
            this.pbProgress.EndInit();
            base.ResumeLayout(false);
            base.PerformLayout();
        }

        private void InitializeWndlessComponent()
        {
            this.llNetSetting = new WndlessLinkLabel();
            this.pbPortrait = new WndlessPictureBox();
            this.pnPortrait = new WndlessPictureBox();
            this.llProvisioning = new WndlessLinkLabel();
            this.llForgetPass = new WndlessLinkLabel();
            this.llEraseInfo = new WndlessLinkLabel();
            this.llReconnectAtOnce = new WndlessLinkLabel();
            this.lblStep = new WndlessLabel();
            this.lblWelcome = new WndlessLabel();
            this.lblWelcome.Size = new Size(100, 0x19);
            this.lblWelcome.Text = StringTable.User.EP_LabelWelcome;
            this.lblWelcome.Font = new Font("宋体", 10.5f, FontStyle.Bold);
            this.lblWelcome.ForeColor = Color.FromArgb(0, 0, 0xff);
            this.lblStep.AutoSize = true;
            this.lblStep.ForeColor = Color.Blue;
            this.lblStep.Text = string.Empty;
            this.llNetSetting.Text = StringTable.User.EP_LabelNetSetting;
            this.llNetSetting.Click += new EventHandler(this.llNetSetting_LinkClicked);
            this.llReconnectAtOnce.Text = StringTable.User.EP_LabelConnectNow;
            this.llReconnectAtOnce.Click += new EventHandler(this.llReconnectAtOnce_Click);
            this.llReconnectAtOnce.Visible = false;
            this.pbPortrait.Image = ImpsPortrait.GetDefaultPortrait(0x60, 0x60);
            this.pbPortrait.BorderStyle = BorderStyle.None;
            this.pbPortrait.Margin = new Padding(2);
            this.pbPortrait.SizeMode = PictureBoxSizeMode.AutoSize;
            this.pnPortrait.Image = Resources.portraitBackground;
            this.pnPortrait.BorderStyle = BorderStyle.None;
            this.pnPortrait.SizeMode = PictureBoxSizeMode.AutoSize;
            this.llProvisioning.Text = StringTable.User.EP_LabelProvioning;
            this.llProvisioning.Click += new EventHandler(this.llProvisioning_Click);
            this.llForgetPass.Text = StringTable.User.EP_LabelForgetPass;
            this.llForgetPass.Click += new EventHandler(this.llForgetPass_LinkClicked);
            this.llEraseInfo.Text = StringTable.User.EP_LabelEraseInfo;
            this.llEraseInfo.Click += new EventHandler(this.llEraseInfo_LinkClicked);
            this._wndlessCtls = new WndlessControlCollection(this);
            this._wndlessCtls.Add(this.lblStep);
            this._wndlessCtls.Add(this.llNetSetting);
            this._wndlessCtls.Add(this.pbPortrait);
            this._wndlessCtls.Add(this.pnPortrait);
            this._wndlessCtls.Add(this.llProvisioning);
            this._wndlessCtls.Add(this.llForgetPass);
            this._wndlessCtls.Add(this.llEraseInfo);
            this._wndlessCtls.Add(this.llReconnectAtOnce);
            this._wndlessCtls.Add(this.lblWelcome);
        }

        private void InitStatusMenu_Opening(object sender, CancelEventArgs e)
        {
            foreach (ToolStripItem item in this.InitStatusMenu.get_Items())
            {
                menu_radioitem _radioitem = item as menu_radioitem;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -