Beispiel #1
0
        private void cancle_Click(object sender, EventArgs e)
        {
            this.Close();
            UIlanding UIlanding = new UIlanding();

            UIlanding.Focus();
        }
Beispiel #2
0
 private void sure_Click(object sender, EventArgs e)
 {
     if (Pwd != rePwd)
     {
         if (MessageBox.Show("两次密码不同,请重新输入") == DialogResult.OK)
         {
             this.password.Focus();
             return;
         }
     }
     if (!setphoto)
     {
         if (MessageBox.Show("未设置头像") == DialogResult.OK)
         {
             return;
         }
     }
     try
     {
         LibraryBLL.user.check(userid.Text);
     }
     catch
     {
         if (MessageBox.Show("名字已被注册,请重新输入") == DialogResult.OK)
         {
             return;
         }
     }
     byte[]          road      = ESBasic.Helpers.ImageHelper.Convert(this.head.BackgroundImage);
     LibraryBLL.user userlogin = new LibraryBLL.user();
     try
     {
         userlogin.userlogincheck(userid.Text, stuname.Text, stuid.Text, courage.Text, qq.Text, phone.Text, road, password.Text);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
         return;
     }
     if (MessageBox.Show("注册成功") == DialogResult.OK)
     {
         UIlanding uilanding = new UIlanding();
         this.Hide();
         uilanding.Focus();
     }
 }