Login.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;
namespace 图书管理系统
{
public partial class Login : Form
{
public string uid;
public string pwd;
private Form1 form;
public Login(Form1 form1)
{
InitializeComponent();
this.form = form1;
}
private void 管理员登录_Load(object sender, EventArgs e)
{
}
private void btnDone_Click(object sender, EventArgs e)
{
uid = tbUid1.Text;
pwd = tbPwd.Text;
this.Close();
}
private void btnMod_Click(object sender, EventArgs e)
{
panel1.Visible = true;
}
private void btnClose_Click(object sender, EventArgs e)
{
panel1.Visible = false;
}
//修改密码
private void btnModify_Click(object sender, EventArgs e)
{
DataSet ds = new DataSet();
Form1 form = new Form1();
form.cmd.CommandText = "select count(*) from ManagerLogin where 用户名='" + tbUid.Text + "' and 密码='" + tbPwdOld.Text + "'";
if ((int)form.cmd.ExecuteScalar() <= 0)
{
MessageBox.Show("用户名或原始密码错误!");
}
if (tbPwdNew.Text != tbPwdNew1.Text)
{
MessageBox.Show("前后两次密码输入不一致!");
}
后面还有 14 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。