课程设计论文(17)
时间: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 Formaddstudent : Form {
public Formaddstudent() {
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().insert(sno, sname, ssex, sage); this.DialogResult = DialogResult.OK; MessageBox.Show("输入成功"); }
private void Formaddstudent_Load(object sender, EventArgs e) {
}
上一篇:规范规程标准目录 修订
下一篇:混凝土强度检测试卷及答案