namespace 设计
{ public partial class Form1 : Form { public Form1() { InitializeComponent(); }private void label7_Click(object sender, EventArgs e)
{}
private void label10_Click(object sender, EventArgs e)
{}
private void label13_Click(object sender, EventArgs e)
{}
private void label14_Click(object sender, EventArgs e)
{}
private void textBox1_TextChanged(object sender, EventArgs e)
{}
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
{ string Name = comboBox1.Text.Trim();StringBuilder sql = new StringBuilder("select * from biao where 1=1");
if (!String.IsNullOrEmpty(Name))
{sql.Append("and Name like '%" + Name + "%'");
}
}
private void comboBox2_SelectedIndexChanged(object sender, EventArgs e)
{ string Name = comboBox1.Text.Trim();StringBuilder sql = new StringBuilder("select * from biao where 1=1");
if (!String.IsNullOrEmpty(Name))
{sql.Append("and Name like '%" + Name + "%'");
}
}
private void textBox10_TextChanged(object sender, EventArgs e)
{ int[] score; Random rnd = new Random(); int n, sum = 0;n = int.Parse(Console.ReadLine());
score = new int[n]; for (int i = 0; i < score.Length; i++) { score[i] = rnd.Next(25); sum += score[i];}
}private void textBox11_TextChanged(object sender, EventArgs e)
{ int[] score; Random rnd = new Random(); int n, sum = 0;n = int.Parse(Console.ReadLine());
score = new int[n]; for (int i = 0; i < score.Length; i++) { score[i] = rnd.Next(25); sum += score[i];}
}private void textBox4_TextChanged(object sender, EventArgs e)
{ int[] score; Random rnd = new Random(); int n, sum = 0;n = int.Parse(Console.ReadLine());
score = new int[n]; for (int i = 0; i < score.Length; i++) { score[i] = rnd.Next(25); sum += score[i]; } }代码未完结正在解决中