ViewController/UpdatePwdForm.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using BookMIS.Model.User;
namespace BookMIS.ViewController
{
public partial class UpdatePwdForm : Form
{
string username = "";
Form Main = null;
UserDAO userdao = new UserDAOImpl();
public UpdatePwdForm()
{
InitializeComponent();
}
public UpdatePwdForm(string user, Form main)
{
InitializeComponent();
username = user;
Main = main;
}
private void UpdatePwdForm_Load(object sender, EventArgs e)
{
txtName.Text = username;
}
private void btnOK_Click(object sender, EventArgs e)
{
if (txtjPwd.Text == "")
{
MessageBox.Show("旧密码不能为空", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Warning);
txtjPwd.Focus();
return;
}
if (txtxPwd.Text == "")
{
MessageBox.Show("新密码不能为空", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Warning);
txtxPwd.Focus();
return;
}
if (txtxPwd.Text != txtxPwdOk.Text)
{
MessageBox.Show("再次密码不一致", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Warning);
txtxPwd.Focus();
txtxPwd.SelectAll();
return;
}
if (txtName.Text == "" || userdao.SelectUser(txtName.Text, txtjPwd.Text) == 0)
{
MessageBox.Show("对不起,用户不存在,或旧密码不正确", "提示", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
txtName.Focus();
txtName.SelectAll();
return;
后面还有 32 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。