Ejemplo n.º 1
0
        private void buttonCheckAccountName_Click(object sender, EventArgs e)
        {
            this.labelTip.Text = "";
            string str = WorldPacket.ResizeUTF8String(this.textBoxUserName.Text.Trim(), 0x20);

            this.textBoxUserName.Text = str;
            if (string.IsNullOrEmpty(str))
            {
                this.labelTip.Text = "请输入您的用户名";
            }
            else if (str.IndexOf('@') != -1)
            {
                this.labelTip.Text = "非法字符:@";
            }
            else
            {
                this._parent.SendCheckAccountName(str);
            }
        }
Ejemplo n.º 2
0
        private void buttonChangeUserLogin_Click(object sender, EventArgs e)
        {
            this.ShowAccountTip("");
            string str = WorldPacket.ResizeUTF8String(this.textBoxAccount.Text.Trim(), 0x40);

            this.textBoxAccount.Text = str;
            string str2 = WorldPacket.ResizeUTF8String(this.textBoxPassword.Text.Trim(), 0x20);

            this.textBoxPassword.Text = str2;
            if (string.IsNullOrEmpty(str))
            {
                this.ShowAccountTip("请输入您的用户名或Email地址");
            }
            else if ((string.IsNullOrEmpty(str2) || (str2.Length < 6)) || (str2.Length > 0x20))
            {
                this.ShowAccountTip("请输入6位-32位密码");
            }
            else
            {
                this._parent.ChangeUserLoginInfo(str, str2);
                base.Close();
            }
        }