using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data.SqlClient;
namespace WindowsFormsApplication2
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void 退出EToolStripMenuItem_Click(object sender, EventArgs e)
{
Application.Exit();
}
private void 编辑学生信息ToolStripMenuItem_Click(object sender, EventArgs e)
{
Form2 f = new Form2();
f.user = "徐小倩";
f.MdiParent = this;
f.Show();
}
}
}
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data.SqlClient;
namespace WindowsFormsApplication2
{
public partial class Form2 : Form
{
private string connString = @"Data Source=.;Initial Catalog=MySchool;Integrated Security=True";
public Form2()
{
InitializeComponent();
}
public string user = string.Empty;
priva
C#第二章上机题
最新推荐文章于 2020-01-28 18:12:34 发布