資源簡介
中國礦業大學程序設計綜合實踐課,學生通訊錄,多功能實現,源代碼
代碼片段和文件信息
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;
namespace?學生通訊錄
{
????public?partial?class?Form_Add?:?Form
????{
????????public?Form_Add()
????????{
????????????InitializeComponent();
????????}
????????private?void?btn_add_Click(object?sender?EventArgs?e)
????????{
????????????StudentInfo?studentinfo?=?new?StudentInfo();
????????????studentinfo.StudentId?=?Int32.Parse(txt_studengid.Text);
????????????studentinfo.Name?=?txt_name.Text;
????????????if?(rb_man.Checked)
????????????????studentinfo.Sex?=?“男“;
????????????else?if?(rb_woman.Checked)
????????????????studentinfo.Sex?=?“女“;
????????????studentinfo.Age?=?Int32.Parse(txt_age.Text);
????????????studentinfo.BirthDate?=?DateTime.Parse(dt_birthdate.Text);
????????????studentinfo.Phone?=?txt_phone.Text;
????????????studentinfo.Email?=?txt_email.Text;
????????????studentinfo.HomeAddress?=?txt_homeaddress.Text;
????????????studentinfo.Profession?=?txt_profession.Text;
????????????if?(StudentInfoBLL.AddStudentInfo(studentinfo))
??????????????{
??????????????????MessageBox.Show(“添加學生信息成功!“);
??????????????}
?????????}
????????private?void?bt_close_Click(object?sender?EventArgs?e)
????????{
????????????this.Close();
????????}
????????private?void?label10_Click(object?sender?EventArgs?e)
????????{
????????}
????}
}???????????
?
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2018-10-12?16:25??學生通訊錄\
?????文件?????????184??2018-10-12?14:09??學生通訊錄\App.config
?????文件???????17360??2018-10-12?16:11??學生通訊錄\Form_Add.Designer.cs
?????文件????????1555??2018-10-12?16:11??學生通訊錄\Form_Add.cs
?????文件????????5817??2018-10-12?16:11??學生通訊錄\Form_Add.resx
?????文件???????17578??2018-10-12?16:12??學生通訊錄\Form_Edit.Designer.cs
?????文件????????2721??2018-10-12?16:12??學生通訊錄\Form_Edit.cs
?????文件????????5817??2018-10-12?16:12??學生通訊錄\Form_Edit.resx
?????文件????????7935??2018-10-12?16:18??學生通訊錄\Form_Search.Designer.cs
?????文件????????2331??2018-10-12?16:18??學生通訊錄\Form_Search.cs
?????文件????????8378??2018-10-12?16:18??學生通訊錄\Form_Search.resx
?????文件?????????531??2018-01-22?16:02??學生通訊錄\Program.cs
?????目錄???????????0??2018-10-12?15:56??學生通訊錄\Properties\
?????文件????????1328??2018-01-18?15:30??學生通訊錄\Properties\AssemblyInfo.cs
?????文件????????5042??2018-10-12?14:09??學生通訊錄\Properties\Resources.Designer.cs
?????文件????????7361??2018-01-23?14:59??學生通訊錄\Properties\Resources.resx
?????文件????????1115??2018-10-12?14:09??學生通訊錄\Properties\Settings.Designer.cs
?????文件?????????249??2018-01-18?15:30??學生通訊錄\Properties\Settings.settings
?????文件?????????670??2018-01-23?11:15??學生通訊錄\StudentInfo.cs
?????文件???????11480??2018-01-23?11:15??學生通訊錄\StudentInfoBLL.cs
?????目錄???????????0??2018-10-12?15:56??學生通訊錄\bin\
?????目錄???????????0??2018-10-12?15:56??學生通訊錄\bin\Debug\
?????目錄???????????0??2018-10-12?15:56??學生通訊錄\bin\Debug\xm
?????文件?????????607??2018-10-12?16:21??學生通訊錄\bin\Debug\xm
?????文件??????104448??2018-10-12?16:18??學生通訊錄\bin\Debug\學生通訊錄.exe
?????文件?????????184??2018-10-12?14:09??學生通訊錄\bin\Debug\學生通訊錄.exe.config
?????文件???????67072??2018-10-12?16:18??學生通訊錄\bin\Debug\學生通訊錄.pdb
?????文件???????24224??2018-10-12?14:18??學生通訊錄\bin\Debug\學生通訊錄.vshost.exe
?????文件?????????184??2018-10-12?14:09??學生通訊錄\bin\Debug\學生通訊錄.vshost.exe.config
?????文件?????????490??2018-04-12?07:35??學生通訊錄\bin\Debug\學生通訊錄.vshost.exe.manifest
?????目錄???????????0??2018-10-12?16:27??學生通訊錄\bin\Release\
............此處省略33個文件信息
- 上一篇:C#實現串口通信
- 下一篇:unity上傳文件7牛云存儲服務器
評論
共有 條評論