BookManager/frmAdmin/frmAdminChange.cs
(开头部分) 2KB这里只显示每个文件的开头 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 Model;
using BLL;
namespace BookManager.frmAdmin
{
public partial class frmAdminChange : Form
{
private Admin admin;
private DataTable dtAdmin;
public frmAdminChange()
{
InitializeComponent();
}
public frmAdminChange(Admin admin,DataTable dtAdmin)
{
this.admin = admin;
this.dtAdmin = dtAdmin;
InitializeComponent();
}
private void frmAdminChange_Load(object sender, EventArgs e)
{
txtNo.Text = admin.AdminId;
txtNo.Enabled = false;
txtName.Text = admin.AdminName;
txtPwd.Text = admin.Password;
if (admin.AdminIdenti == "普通管理员")
{
radNormal.Checked = true;
}
else {
radSuper.Checked = true;
}
}
private void btnAdd_Click(object sender, EventArgs e)
{
Admin admin = new Admin();
admin.AdminId = txtNo.Text;
admin.AdminName = txtName.Text;
admin.Password = txtPwd.Text;
if (radNormal.Checked)
{
admin.AdminIdenti = radNormal.Text;
}
else {
admin.AdminIdenti = radSuper.Text;
}
AdminBLL adminBLL = new AdminBLL();
try
{
DialogResult result = MessageBox.Show("确认信息修改吗?", "学生信息修改", MessageBoxButtons.YesNo);
后面还有 30 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。