示例#1
0
        private void EditInfo_Click(object sender, EventArgs e)
        {
            Sign_textBox.Enabled = true;
            Sign_textBox.Focus();//获取焦点
            UserInfopanel.Hide();
            Sign_textBox.Enabled  = true;
            Sign_textBox.ReadOnly = false;
            if (user.Sex == -1)
            {
                SexChoice_comboBox.Text = "男";
            }
            else
            {
                SexChoice_comboBox.Text = "女";
            }

            if (user.Age == -1)
            {
                Age_textBox.Text = "0";
            }
            else
            {
                Age_textBox.Text = Convert.ToString(user.Age);
            }
            label2_Uid.Text       = user.Email;
            NickName_textBox.Text = user.Username;
            Email_textBox.Text    = user.Email;
            Sign_textBox.Text     = user.Sign;
        }
示例#2
0
 private void Sign_textBox_TextChanged(object sender, EventArgs e)
 {
     //Sign_textBox.Enabled = true;
     Sign_textBox.Focus();//获取焦点
 }