Пример #1
0
        private void button_ok_Click(object sender, EventArgs e)
        {
            bool    bSuccess = false;
            UserBLL udb      = new UserBLL();

            bSuccess = udb.ChangeAlternateName(UserID, AlternateName_TextBox.Text);
            if (bSuccess == false)
            {
                MessageBox.Show("修改备注名失败!");
            }
            else
            {
                MessageBox.Show("修改备注名成功!");
                this.Hide();
            }
        }