学生通讯录


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  学生通讯录 - 最新.vsslnx.sqlite

     文件         78  2018-10-07 20:27  学生通讯录 - 最新.vsVSWorkspaceState.json

    ..A..H.    103424  2018-10-24 19:52  学生通讯录 - 最新.vs学生通讯录v15.suo

     文件          0  2018-09-19 18:46  学生通讯录 - 最新.vs学生通讯录v15Serversqlite3db.lock

     文件     729088  2018-10-15 08:09  学生通讯录 - 最新.vs学生通讯录v15Serversqlite3storage.ide

     文件      32768  2018-10-24 19:44  学生通讯录 - 最新.vs学生通讯录v15Serversqlite3storage.ide-shm

     文件    4140632  2018-10-19 19:01  学生通讯录 - 最新.vs学生通讯录v15Serversqlite3storage.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  学生通讯录 - 最新学生通讯录inDebugxml.config

     文件       1249  2018-10-16 16:47  学生通讯录 - 最新学生通讯录inDebug学生通讯录.config

     文件     547328  2018-10-24 19:44  学生通讯录 - 最新学生通讯录inDebug学生通讯录.exe

     文件        180  2018-10-24 19:44  学生通讯录 - 最新学生通讯录inDebug学生通讯录.exe.config

     文件     118272  2018-10-24 19:44  学生通讯录 - 最新学生通讯录inDebug学生通讯录.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  学生通讯录 - 最新学生通讯录objDebugDesignTimeResolveAssemblyReferences.cache

     文件       7604  2018-10-24 19:52  学生通讯录 - 最新学生通讯录objDebugDesignTimeResolveAssemblyReferencesInput.cache

     文件          0  2018-09-19 18:46  学生通讯录 - 最新学生通讯录objDebugTemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs

     文件          0  2018-09-19 18:46  学生通讯录 - 最新学生通讯录objDebugTemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs

............此处省略51个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)