资源简介
c#编写,可运行,功能较为完善。。

代码片段和文件信息
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.IO;
using System.Data.SqlClient;
namespace 学生通讯录
{
public partial class Form_Main : Form
{
public Form_Main()
{
SqlConnectionStringBuilder builder = new SqlConnectionStringBuilder();
builder.DataSource = “PC-201712131540“;
builder.InitialCatalog = “student“;
builder.IntegratedSecurity = true;
SqlConnection connection = new SqlConnection(builder.ConnectionString);
connection.Open();
InitializeComponent(); initContracts();
}
string strCon = “Data Source=PC-201712131540;Database=student;“;
备份DataContext linq;
private static string _basePath = AppDomain.CurrentDomain.SetupInformation.Applicationbase + @“学生通讯录.exe.config“;
private static string _basePath1 = AppDomain.CurrentDomain.SetupInformation.Applicationbase + @“xml.config“;
private void Form_Main_Load(object sender EventArgs e)
{
}
void initContracts()
{
if (File.Exists(AppDomain.CurrentDomain.SetupInformation.Applicationbase + @“学生通讯录.exe.config“))
{
dataGridView1.DataSource = StudentInfoBLL.GetAllStudentInfo();
}
else
{
StudentInfoBLL.CreateStudentxml();
dataGridView1.DataSource = StudentInfoBLL.GetAllStudentInfo();
}
dataGridView1.Columns[0].HeaderText = “学生编号“;
dataGridView1.Columns[1].HeaderText = “学生姓名“;
dataGridView1.Columns[2].HeaderText = “学生性别“;
dataGridView1.Columns[3].HeaderText = “学生年龄“;
dataGridView1.Columns[4].HeaderText = “出生日期“;
dataGridView1.Columns[5].HeaderText = “手机号码“;
dataGridView1.Columns[6].HeaderText = “家庭地址“;
dataGridView1.Columns[7].HeaderText = “电子邮箱“;
dataGridView1.Columns[8].HeaderText = “专 业“;
}
void InitHeadtitle()
{
dataGridView1.Columns[0].HeaderText = “学生编号“;
dataGridView1.Columns[1].HeaderText = “学生姓名“;
dataGridView1.Columns[2].HeaderText = “学生性别“;
dataGridView1.Columns[3].HeaderText = “学生年龄“;
dataGridView1.Columns[4].HeaderText = “出生日期“;
dataGridView1.Columns[5].HeaderText = “手机号码“;
dataGridView1.Columns[6].HeaderText = “家庭地址“;
dataGridView1.Columns[7].HeaderText = “电子邮箱“;
dataGridView1.Columns[8].HeaderText = “专 业“;
}
private void toolStrip_add_Click(object sender EventArgs e)
{
Form_Add formadd = new Form_Add();
formadd.ShowDialog();
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 229376 2018-10-07 20:27 学生通讯录 - 最新\.vs\slnx.sqlite
文件 78 2018-10-07 20:27 学生通讯录 - 最新\.vs\VSWorkspaceState.json
..A..H. 103424 2018-10-24 19:52 学生通讯录 - 最新\.vs\学生通讯录\v15\.suo
文件 0 2018-09-19 18:46 学生通讯录 - 最新\.vs\学生通讯录\v15\Server\sqlite3\db.lock
文件 729088 2018-10-15 08:09 学生通讯录 - 最新\.vs\学生通讯录\v15\Server\sqlite3\storage.ide
文件 32768 2018-10-24 19:44 学生通讯录 - 最新\.vs\学生通讯录\v15\Server\sqlite3\storage.ide-shm
文件 4140632 2018-10-19 19:01 学生通讯录 - 最新\.vs\学生通讯录\v15\Server\sqlite3\storage.ide-wal
..A..H. 10240 2018-10-07 20:27 学生通讯录 - 最新\.vs\学生通讯录 - 副本\v15\.suo
文件 180 2018-10-24 19:44 学生通讯录 - 最新\学生通讯录\App.config
文件 991 2018-10-19 18:48 学生通讯录 - 最新\学生通讯录\bin\Debug\xm
文件 1249 2018-10-16 16:47 学生通讯录 - 最新\学生通讯录\bin\Debug\学生通讯录.config
文件 547328 2018-10-24 19:44 学生通讯录 - 最新\学生通讯录\bin\Debug\学生通讯录.exe
文件 180 2018-10-24 19:44 学生通讯录 - 最新\学生通讯录\bin\Debug\学生通讯录.exe.config
文件 118272 2018-10-24 19:44 学生通讯录 - 最新\学生通讯录\bin\Debug\学生通讯录.pdb
文件 11125 2018-10-19 18:47 学生通讯录 - 最新\学生通讯录\Form1.cs
文件 13349 2018-10-19 18:38 学生通讯录 - 最新\学生通讯录\Form1.Designer.cs
文件 749810 2018-10-19 18:38 学生通讯录 - 最新\学生通讯录\Form1.resx
文件 1598 2018-10-14 16:03 学生通讯录 - 最新\学生通讯录\Form_Add.cs
文件 13684 2018-10-14 16:03 学生通讯录 - 最新\学生通讯录\Form_Add.Designer.cs
文件 5817 2018-10-14 16:03 学生通讯录 - 最新\学生通讯录\Form_Add.resx
文件 2672 2018-10-14 16:05 学生通讯录 - 最新\学生通讯录\Form_Edit.cs
文件 13699 2018-09-24 17:25 学生通讯录 - 最新\学生通讯录\Form_Edit.Designer.cs
文件 5990 2018-09-24 17:25 学生通讯录 - 最新\学生通讯录\Form_Edit.resx
文件 2620 2018-10-19 18:47 学生通讯录 - 最新\学生通讯录\Form_Serach.cs
文件 6311 2018-10-19 18:39 学生通讯录 - 最新\学生通讯录\Form_Serach.Designer.cs
文件 5990 2018-10-19 18:39 学生通讯录 - 最新\学生通讯录\Form_Serach.resx
文件 1443 2018-09-21 17:52 学生通讯录 - 最新\学生通讯录\obj\Debug\DesignTimeResolveAssemblyReferences.cache
文件 7604 2018-10-24 19:52 学生通讯录 - 最新\学生通讯录\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
文件 0 2018-09-19 18:46 学生通讯录 - 最新\学生通讯录\obj\Debug\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
文件 0 2018-09-19 18:46 学生通讯录 - 最新\学生通讯录\obj\Debug\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
............此处省略51个文件信息
- 上一篇:matlab文件+dll文件和C#程序
- 下一篇:TIN生成算法实现.zip
相关资源
- C# 在Winform中发布WebService
- C# 文件管理源码
- C#调用Photoshop打开图片源代码
- C#TreeView使用节点拖曳、节点右键菜单
- C# IP地址输入控件
- C#在一个窗口刷新更改另一个窗口控件
- C# TIP文件生成和拆解
- C#解析HL7消息的库135797
- C# OCR数字识别实例,采用TessnetOcr,对
- 考试管理系统 - C#源码
- 超市进销存管理系统 Sqlserver 数据库文
- asp.net C#购物车源代码
- C#实时网络流量监听源码
- C#百度地图源码
- Visual C#.2010从入门到精通配套源程序
- C# 软件版本更新
- C#屏幕软键盘源码,可以自己定制界面
- 智慧城市 智能家居 C# 源代码
- c#获取mobile手机的IMEI和IMSI
- C#实现简单QQ聊天程序
- 操作系统 模拟的 欢迎下载 C#版
- C#写的计算机性能监控程序
- 用C#实现邮件发送,有点类似于outlo
- MVC model层代码生成器 C#
- c#小型图书销售系统
- C# Socket Server Client 通讯应用 完整的服
- c# winform 自动登录 百度账户 源代码
- C#编写的16进制计算器
- C#TCP通信协议
- C# 数据表(Dataset)操作 合并 查询一
评论
共有 条评论