資源簡介
界面美觀 簡單可用,非常完美。使用不需要進行任何修改,直接就能在vs2010或者2013上面運行

代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Linq;
using?System.Text;
using?System.Windows.Forms;
namespace?學生管理系統
{
????public?partial?class?AddGreadWindow?:?Form
????{
????????public?AddGreadWindow()
????????{
????????????InitializeComponent();
????????}
????????private?void?label1_Click(object?sender?EventArgs?e)
????????{
????????}
????????private?void?textBox1_TextChanged(object?sender?EventArgs?e)
????????{
????????}
????????private?void?textBox2_TextChanged(object?sender?EventArgs?e)
????????{
????????}
????????private?void?textBox5_TextChanged(object?sender?EventArgs?e)
????????{
????????}
????????private?void?textBox3_TextChanged(object?sender?EventArgs?e)
????????{
????????}
????????private?void?button1_Click(object?sender?EventArgs?e)
????????{
????????????//封裝數據
????????????Student?s?=?new?Student();
????????????s.Name?=?Convert.ToString(comboBox1.SelectedItem);
????????????s.C?=?Convert.ToDouble(textBox1.Text);
????????????s.English?=?Convert.ToDouble(textBox2.Text);
????????????s.Math?=?Convert.ToDouble(textBox3.Text);
????????????s.Chinese?=?Convert.ToDouble(textBox4.Text);
????????????s.Phy?=?Convert.ToDouble(textBox5.Text);
????????????s.Sum?=?s.C?+?s.English?+?s.Math?+?s.Chinese?+?s.Phy;
????????????//調用BLL層
????????????int?i?=?new?StudentBLL().addGread(s);
????????????if?(i?!=?0)
????????????{
????????????????success?suc?=?new?success();
????????????????suc.Show();
????????????????System.Threading.Thread.Sleep(2000);
????????????????suc.Close();
????????????????this.Close();
????????????}
????????????else
????????????{
????????????????error?er?=?new?error();
????????????????System.Threading.Thread.Sleep(2000);
????????????????er.Close();
????????????}
????????????????
????????}
????????private?void?AddGreadWindow_Load(object?sender?EventArgs?e)
????????{
????????????//查詢數據庫的到所有的學生
????????????List?list?=?new?StudentBLL().findAllStudent();
????????????//遍歷list集合得到每個學生并把每個學生的姓名添加到下拉列表中
????????????foreach?(Student?s?in?list)
????????????{
????????????????comboBox1.Items.Add(s.Name);
????????????}
????????}
????}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2018-11-10?21:32??學生管理系統\
?????文件????????2376??2018-06-29?16:58??學生管理系統\AddGreadWindow.cs
?????文件???????12317??2018-06-06?09:33??學生管理系統\AddGreadWindow.Designer.cs
?????文件???????92244??2018-06-06?09:33??學生管理系統\AddGreadWindow.resx
?????文件?????????437??2018-06-04?16:16??學生管理系統\app.config
?????目錄???????????0??2018-06-04?16:39??學生管理系統\bin\
?????目錄???????????0??2018-06-04?16:53??學生管理系統\bin\Debug\
?????目錄???????????0??2018-06-04?16:40??學生管理系統\bin\Debug\byn\
?????文件?????2359296??2018-07-11?14:36??學生管理系統\bin\Debug\User.mdf
?????文件??????589824??2018-07-11?14:36??學生管理系統\bin\Debug\User_log.ldf
?????目錄???????????0??2018-06-04?16:40??學生管理系統\bin\Debug\zh-Hans-HK\
?????文件?????1008640??2018-12-17?12:31??學生管理系統\bin\Debug\學生管理系統.exe
?????文件?????????437??2018-06-04?16:16??學生管理系統\bin\Debug\學生管理系統.exe.config
?????文件??????171520??2018-12-17?12:31??學生管理系統\bin\Debug\學生管理系統.pdb
?????文件???????24224??2018-12-17?12:31??學生管理系統\bin\Debug\學生管理系統.vshost.exe
?????文件?????????437??2018-06-04?16:16??學生管理系統\bin\Debug\學生管理系統.vshost.exe.config
?????文件?????????490??2018-04-12?07:35??學生管理系統\bin\Debug\學生管理系統.vshost.exe.manifest
?????目錄???????????0??2018-06-04?16:39??學生管理系統\bin\Release\
?????文件????????1575??2018-07-04?18:36??學生管理系統\DeleteWindow.cs
?????文件????????4096??2018-06-06?10:02??學生管理系統\DeleteWindow.Designer.cs
?????文件???????71394??2018-06-06?10:02??學生管理系統\DeleteWindow.resx
?????文件?????????453??2018-06-04?16:54??學生管理系統\error.cs
?????文件????????1988??2018-06-04?16:54??學生管理系統\error.Designer.cs
?????文件???????79944??2018-06-04?16:54??學生管理系統\error.resx
?????文件????????3906??2018-07-03?21:40??學生管理系統\Form1.cs
?????文件???????10228??2018-06-09?16:21??學生管理系統\Form1.Designer.cs
?????文件???????92244??2018-06-09?16:21??學生管理系統\Form1.resx
?????文件????????1722??2018-07-05?13:46??學生管理系統\GradeSelectWindow.cs
?????文件????????6336??2018-06-26?17:15??學生管理系統\GradeSelectWindow.Designer.cs
?????文件??????241864??2018-06-26?17:15??學生管理系統\GradeSelectWindow.resx
?????目錄???????????0??2018-06-09?16:18??學生管理系統\image\
............此處省略111個文件信息
- 上一篇:電子購物商城系統C#實現
- 下一篇:基于Asp.net的旅游門戶網站
評論
共有 條評論