课程设计论文(20)
时间:2026-01-19
时间:2026-01-19
EventArgs e) {
bs.DataSource = new
studentDAO().searchbysname(textBoxbysname.Text.Trim()); //表格 dataGridView1.DataSource = bs; }
} }
修改学生信息代码如下: using System;
using System.Collections.Generic; using ponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text;
using System.Windows.Forms; using DAL;
namespace studentMIS {
public partial class Formupdate : Form {
public Formupdate() {
InitializeComponent(); }
private void buttonok_Click(object sender, EventArgs e) {
string sno = textBoxsno.Text.Trim(); string sname = textBoxsname.Text.Trim(); string ssex = comboBoxssex.Text.Trim(); string sage = textBoxsage.Text.Trim();
new studentDAO().update(sno, sname, ssex, sage); this.DialogResult = DialogResult.OK; MessageBox.Show("修改成功"); }
上一篇:规范规程标准目录 修订
下一篇:混凝土强度检测试卷及答案