课程设计论文(18)
时间:2026-01-19
时间:2026-01-19
} }
删除学生信息代码如下: 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 Formdelete : Form {
public Formdelete() {
InitializeComponent(); }
private void Formdelete_Load(object sender, EventArgs e) {
}
private void buttondeletebysno_Click(object sender, EventArgs e)
{
string sno = textBoxdeletebysno.Text.Trim(); new studentDAO().deletebysno(sno); MessageBox.Show("删除成功", "提示", MessageBoxButtons.OK); this.DialogResult = DialogResult.OK; }
private void buttondeletebysname_Click(object sender, EventArgs e)
{
string sname= textBoxdeletebysname.Text.Trim(); new studentDAO().deletebysname(sname); MessageBox.Show("删除成功", "提示", MessageBoxButtons.OK);
上一篇:规范规程标准目录 修订
下一篇:混凝土强度检测试卷及答案