• 大小: 2.07MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-08-17
  • 语言: C#
  • 标签: 通讯录  

资源简介

用vs2008和sqlserver2008完成的通讯录,系统设计三层架构。用到xml处理,各种winform控件

资源截图

代码片段和文件信息

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

using System.Text.Regularexpressions;

namespace 通讯录UI
{
    public partial class AlterPwd : Form
    {
        public AlterPwd()
        {
            InitializeComponent();
        }
        //修改密码
        private void butAlter_Click(object sender EventArgs e)
        {
            
            labEmail.Visible = false;
            labAll.Visible = false;
            labQueRen.Visible = false;
            labPwd.Visible = false;

            if (txtName.Text == ““ || txtPwd.Text == ““ || txtEmail.Text == ““||txtNewPwd.Text ==““||txtNewPwdt.Text==““)
            {
                labAll.Visible = true;
                return;
            }
            if (txtNewPwdt.Text != txtNewPwd.Text)
            {
                labQueRen.Visible = true;
                return;
            }

            string s = @“^\w+([-+.‘]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$“;
            Regex r = new Regex(s);
            if (r.Match(txtEmail.Text).Success==false)
            {
                labEmail.Visible = true;
                return;
            }

            LoginBLL bll = new LoginBLL();

            bool b = bll.UpdateBLL(txtName.Text txtPwd.Text txtNewPwd.Text txtEmail.Text);
            if (b)
            {
                MessageBox.Show(“修改成功请登录“);
                //this.Close();
                this.DialogResult = DialogResult.Retry;
            }
            else
            {
                this.DialogResult = DialogResult.None;
                MessageBox.Show(“验证不正确,修改失败“);
            }

           
        }

        private void AlterPwd_FormClosed(object sender FormClosedEventArgs e)
        {
            this.DialogResult = DialogResult.Retry;
        }
    }
}

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

     文件       2010  2010-09-19 11:58  通讯录Perfect\通讯录Perfect\AlterPwd.cs

     文件       9881  2010-09-16 16:05  通讯录Perfect\通讯录Perfect\AlterPwd.designer.cs

     文件       5814  2010-09-16 16:05  通讯录Perfect\通讯录Perfect\AlterPwd.resx

     文件        243  2010-09-14 15:04  通讯录Perfect\通讯录Perfect\App.config

     文件        358  2010-10-27 22:01  通讯录Perfect\通讯录Perfect\bin\Debug\about.xml

     文件       2373  2010-09-16 20:08  通讯录Perfect\通讯录Perfect\bin\Debug\resource\photo\01.gif

     文件       2454  2010-09-16 20:08  通讯录Perfect\通讯录Perfect\bin\Debug\resource\photo\02.gif

     文件       7822  2010-09-16 20:08  通讯录Perfect\通讯录Perfect\bin\Debug\resource\photo\02.jpg

     文件       2485  2010-09-16 20:08  通讯录Perfect\通讯录Perfect\bin\Debug\resource\photo\03.gif

     文件       2481  2010-09-16 20:08  通讯录Perfect\通讯录Perfect\bin\Debug\resource\photo\04.gif

     文件       2480  2010-09-16 20:08  通讯录Perfect\通讯录Perfect\bin\Debug\resource\photo\06.gif

     文件       2461  2010-09-16 20:08  通讯录Perfect\通讯录Perfect\bin\Debug\resource\photo\22.gif

     文件      71358  2010-09-16 20:08  通讯录Perfect\通讯录Perfect\bin\Debug\resource\photo\51_avatar_small.jpg

    ..A.SH.     36352  2010-09-16 21:13  通讯录Perfect\通讯录Perfect\bin\Debug\resource\photo\Thumbs.db

     文件     173100  2010-09-17 14:46  通讯录Perfect\通讯录Perfect\bin\Debug\resource\resume\张三.rtf

     文件     331264  2010-11-21 16:19  通讯录Perfect\通讯录Perfect\bin\Debug\通讯录完美版.exe

     文件        243  2010-09-14 15:04  通讯录Perfect\通讯录Perfect\bin\Debug\通讯录完美版.exe.config

     文件     189952  2010-11-21 16:19  通讯录Perfect\通讯录Perfect\bin\Debug\通讯录完美版.pdb

     文件      14328  2010-11-21 16:17  通讯录Perfect\通讯录Perfect\bin\Debug\通讯录完美版.vshost.exe

     文件        243  2010-09-14 15:04  通讯录Perfect\通讯录Perfect\bin\Debug\通讯录完美版.vshost.exe.config

     文件        490  2007-07-21 02:33  通讯录Perfect\通讯录Perfect\bin\Debug\通讯录完美版.vshost.exe.manifest

     文件    5242880  2010-09-16 08:55  通讯录Perfect\通讯录Perfect\Database\Address .mdf

     文件    1048576  2010-09-16 08:55  通讯录Perfect\通讯录Perfect\Database\Address _log.ldf

     文件     196271  2010-09-19 09:21  通讯录Perfect\通讯录Perfect\Database.rar

     文件       3160  2010-10-13 13:01  通讯录Perfect\通讯录Perfect\FormMain\AboutForm.cs

     文件       9480  2010-10-13 12:59  通讯录Perfect\通讯录Perfect\FormMain\AboutForm.designer.cs

     文件       5814  2010-10-13 12:59  通讯录Perfect\通讯录Perfect\FormMain\AboutForm.resx

     文件       1457  2010-11-21 16:19  通讯录Perfect\通讯录Perfect\FormMain\FormAbout.cs

     文件       6318  2010-11-21 16:19  通讯录Perfect\通讯录Perfect\FormMain\FormAbout.Designer.cs

     文件     139071  2010-11-21 16:19  通讯录Perfect\通讯录Perfect\FormMain\FormAbout.resx

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

评论

共有 条评论