示例#1
0
        private void BtnChangeEmail_Click(object sender, EventArgs e)
        {
            if (txtNewName.Text == "")
            {
                MessageBox.Show("Name should not be empty.");
                return;
            }

            PlayerDataBaseControl.Updata_PlayerName(txtNewName.Text);
            Close();
        }
        private void BtnSign_Click(object sender, EventArgs e)
        {
            if (txtUserName.Text == "")
            {
                MessageBox.Show("User Name can not be empty.");
                return;
            }

            PlayerDataBaseControl.Updata_PlayerName(txtUserName.Text);
            Close();
        }