Example #1
0
        private void skinButton2_Click(object sender, EventArgs e)
        {
            User_list user_List = new User_list();

            Maticsoft.Model.User_list _List = new Maticsoft.Model.User_list();
            _List.userName     = user.Text.ToString();
            _List.userPassword = password.Text.ToString();
            if (skinWaterTextBox1.Text.ToString() == skinCode1.CodeStr)
            {
                if (password.Text.ToString() == skinWaterTextBox2.Text.ToString())
                {
                    if (user_List.Add(_List))
                    {
                        MessageBox.Show("注册成功!", "提示");
                    }
                }
                else
                {
                    MessageBox.Show("两次密码输入不一致!", "提示");
                    skinWaterTextBox2.Text = "";
                }
            }
            else
            {
                MessageBox.Show("验证码错误!", "提示");

                skinWaterTextBox1.Text = "";
            }
        }
Example #2
0
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public bool Update(Maticsoft.Model.User_list model)
 {
     return(dal.Update(model));
 }
Example #3
0
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public bool Add(Maticsoft.Model.User_list model)
 {
     return(dal.Add(model));
 }