通讯录管理系统——文件的读写

这篇博客介绍了作者在大二下学期的课程设计中制作的通讯录管理系统,重点展示了文件的读写功能。通过编辑、主、查找和提示对话框等界面,提供了友好的用户体验。源代码包括Person.cs和Form1.cs,注释详细。
摘要由CSDN通过智能技术生成

这是大二下学期课设的第二题,做一个通讯录管理系统,虽然比较简单,但我还是费了很多心思来提高程序的友好性,强迫症伤不起。

先上一些图片:
编辑界面:
这里写图片描述
运行前文件内容:
运行前文件
主界面:
这里写图片描述
查找界面:
这里写图片描述
提示对话框:
这里写图片描述
添加新记录:
这里写图片描述

Person.cs

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 通讯录管理
{
    public class Person
    {
        public int Number { get; set; }
        public string Name { get; set; }
        public string Sex { get; set; }
        public string WorkPlace { get; set; }
        public string Tel { get; set; }
        public string Email { get; set; }
        public string Address { get; set; }
        public Person(int number=0,string name=null,string sex=null,string workPlace=null,string tel=null,string email=null,string address=null)
        {
            this.Number = number;
            this.Name = name;
            this.Sex = sex;
            this.WorkPlace = workPlace;
            this.Tel = tel;
            this.Email = email;
            this.Address = address;
            this.IsDelete = 0;
        }
        public Person()
        {
            this.Number = 0;
        }

        public int IsDelete { get; set; }//0表示未删除,1表示已删除
    }
}

Form1.cs

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace 通讯录管理
{
    public partial 
  • 0
    点赞
  • 16
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值