Esempio n. 1
0
 private void SureChange_Click(object sender, EventArgs e)
 {
     if (textBox2.Text != "")
     {
         if (textBox2.Text == "0000")
         {
             string select = "UPDATE account SET number = N'" + textBox1.Text + "' WHERE ID = " + ID + "";
             int    result = admin.Sqlhelper(select);
             if (result == 1)
             {
                 MessageBox.Show("添加成功");
                 UpdateAc UA = (UpdateAc)this.Owner;
                 UA.CatchNumber = textBox1.Text;
                 this.Close();
             }
             else
             {
                 MessageBox.Show("添加失败");
             }
         }
         else
         {
             MessageBox.Show("请输入正确的验证码");
         }
     }
     else
     {
         MessageBox.Show("请输入验证码");
     }
 }
Esempio n. 2
0
        private void NameLink_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            UpdateAc UA = new UpdateAc(NameID);

            UA.Owner         = this;
            UA.StartPosition = FormStartPosition.CenterScreen;
            UA.ShowDialog();
        }                                                           //当前用户信息