• 大小: 0.33M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-03-27
  • 语言: C#
  • 标签: c#  

资源简介


一个简易的C#实现模拟手机通讯录,只需要将数据库附加即可,如果有问题可发邮件给我daidingjie@126.com

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;

namespace Address_List
{
    public partial class address_List : Form
    {
        public address_List()
        {
            InitializeComponent();
        }

        //遍历程序
        DataSet ds = new DataSet();
        SqlDataAdapter da = null;


        //窗体加载事件
        private void address_List_Load(object sender EventArgs e)
        {
            onloadInfo();
        }

        //内部方法1:给DataGridView填充数据的方法(没有参数)
        private void onloadInfo()
        {
            SqlConnection con = DBHelper.getConnection();
            string sql = “SELECT * FROM userInfo ORDER BY countClick DESC“;
            da = new SqlDataAdapter(sql con);
            if (ds.Tables.Contains(“userInfo“))
            {
                ds.Tables.Remove(“userInfo“);
           

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       1150  2008-12-27 23:14  模拟通讯录\信息提示.txt

     文件        925  2008-12-27 20:05  模拟通讯录\Address_List\Address_List.sln

    ..A..H.     14336  2008-12-27 22:50  模拟通讯录\Address_List\Address_List.suo

     文件      15085  2008-12-27 22:50  模拟通讯录\Address_List\Address_List\Address_List.Designer.cs

     文件      45606  2008-12-27 22:50  模拟通讯录\Address_List\Address_List\Address_List.resx

     文件       3305  2008-12-27 21:06  模拟通讯录\Address_List\Address_List\Address_List.csproj

     文件       1557  2008-12-27 23:15  模拟通讯录\Address_List\Address_List\DBHelper.cs

     文件       8059  2008-12-27 22:50  模拟通讯录\Address_List\Address_List\Address_List.cs

     文件        478  2008-12-27 20:06  模拟通讯录\Address_List\Address_List\Program.cs

     文件        310  2008-12-27 22:50  模拟通讯录\Address_List\Address_List\obj\Address_List.csproj.FileList.txt

     文件      25780  2008-12-27 22:50  模拟通讯录\Address_List\Address_List\obj\Debug\Address_List.address_List.resources

     文件        180  2008-12-27 21:06  模拟通讯录\Address_List\Address_List\obj\Debug\Address_List.Properties.Resources.resources

     文件      57344  2008-12-27 22:50  模拟通讯录\Address_List\Address_List\obj\Debug\Address_List.exe

     文件      36352  2008-12-27 22:50  模拟通讯录\Address_List\Address_List\obj\Debug\Address_List.pdb

     文件        849  2008-12-27 22:50  模拟通讯录\Address_List\Address_List\obj\Debug\Address_List.csproj.GenerateResource.Cache

     文件       5632  2005-11-11 22:25  模拟通讯录\Address_List\Address_List\bin\Debug\Address_List.vshost.exe

     文件      57344  2008-12-27 22:50  模拟通讯录\Address_List\Address_List\bin\Debug\Address_List.exe

     文件      36352  2008-12-27 22:50  模拟通讯录\Address_List\Address_List\bin\Debug\Address_List.pdb

     文件       5612  2008-12-27 20:05  模拟通讯录\Address_List\Address_List\Properties\Resources.resx

     文件        249  2008-12-27 20:05  模拟通讯录\Address_List\Address_List\Properties\Settings.settings

     文件       1196  2008-12-27 20:05  模拟通讯录\Address_List\Address_List\Properties\AssemblyInfo.cs

     文件       2878  2008-12-27 20:05  模拟通讯录\Address_List\Address_List\Properties\Resources.Designer.cs

     文件       1095  2008-12-27 20:05  模拟通讯录\Address_List\Address_List\Properties\Settings.Designer.cs

     文件    1048576  2008-12-27 23:17  模拟通讯录\DB\Address_List_log.ldf

     文件    3145728  2008-12-27 23:17  模拟通讯录\DB\Address_List.mdf

     目录          0  2008-12-27 23:16  模拟通讯录\Address_List\Address_List\obj\Debug\Refactor

     目录          0  2008-12-27 23:16  模拟通讯录\Address_List\Address_List\obj\Debug\TempPE

     目录          0  2008-12-27 23:16  模拟通讯录\Address_List\Address_List\obj\Debug

     目录          0  2008-12-27 23:16  模拟通讯录\Address_List\Address_List\bin\Debug

     目录          0  2008-12-27 23:16  模拟通讯录\Address_List\Address_List\obj

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

评论

共有 条评论