• 大小: 13.96MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-07-26
  • 语言: C#
  • 标签: C#  sqlserver  winform  

资源简介

自己写的仿QQ聊天项目练习,用winform(vs2017)+Sqlserver2008R2实现,数据库脚本(没有添加测试数据)在程序说明的txt文档中。

资源截图

代码片段和文件信息

using MyQQ._2_BLL;
using MyQQ._4_Entity;
using MyQQ.Common.PublicHelper;
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;

namespace MyQQ
{
    public partial class Frm_AddFriend : Form
    {
        public Frm_AddFriend()
        {
            InitializeComponent();
        }
        /// 
        /// 发送消息的好友ID
        /// 

        public int FriendID;
        /// 
        /// 验证消息的ID
        /// 

        public int MessageID;
        /// 
        /// tb_Friend业务实体
        /// 

        tb_FriendBLL friendBLL = new tb_FriendBLL();
        /// 
        /// tb_Message业务实体
        /// 

        tb_MessageBLL messageBLL = new tb_MessageBLL();
        /// 
        /// 公用的消息实体
        /// 

        tb_MessageEntity messageEntity;

        /// 
        /// 点击接受
        /// 

        /// 
        /// 
        private void btnOK_Click(object sender EventArgs e)
        {
            if(friendBLL.AddFriend(messageEntity.FromUserID messageEntity.ToUserID)>0)
            {
                MessageBox.Show(“添加成功!“);
                this.Close();
            }
        }

        /// 
        /// 点击不接受
        /// 

        /// 
        /// 
        private void btnCancel_Click(object sender EventArgs e)
        {
            this.Close();
        }
        /// 
        /// 添加好友窗体加载
        /// 

        /// 
        /// 
        private void Frm_AddFriend_Load(object sender EventArgs e)
        {
            messageEntity = messageBLL.GetModel(MessageID);
            lblMessage.Text = string.Format(“{0}想添加你为好友,是否同意?“ messageEntity.FromUserID);
        }
    }
}

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

     文件         89  2018-11-25 10:48  MyQQDemo\.git\COMMIT_EDITMSG

     文件        319  2018-11-17 12:04  MyQQDemo\.git\config

     文件         73  2018-11-17 12:04  MyQQDemo\.git\description

     文件        118  2018-11-19 08:58  MyQQDemo\.git\FETCH_HEAD

     文件         23  2018-11-17 12:04  MyQQDemo\.git\HEAD

     文件        478  2018-11-17 12:04  MyQQDemo\.git\hooks\applypatch-msg.sample

     文件        896  2018-11-17 12:04  MyQQDemo\.git\hooks\commit-msg.sample

     文件        189  2018-11-17 12:04  MyQQDemo\.git\hooks\post-update.sample

     文件        424  2018-11-17 12:04  MyQQDemo\.git\hooks\pre-applypatch.sample

     文件       1642  2018-11-17 12:04  MyQQDemo\.git\hooks\pre-commit.sample

     文件       1348  2018-11-17 12:04  MyQQDemo\.git\hooks\pre-push.sample

     文件       4898  2018-11-17 12:04  MyQQDemo\.git\hooks\pre-rebase.sample

     文件        544  2018-11-17 12:04  MyQQDemo\.git\hooks\pre-receive.sample

     文件       1239  2018-11-17 12:04  MyQQDemo\.git\hooks\prepare-commit-msg.sample

     文件       3610  2018-11-17 12:04  MyQQDemo\.git\hooks\update.sample

     文件       8835  2018-11-25 10:48  MyQQDemo\.git\index

     文件        240  2018-11-17 12:04  MyQQDemo\.git\info\exclude

     文件       4101  2018-11-25 10:48  MyQQDemo\.git\logs\HEAD

     文件       4101  2018-11-25 10:48  MyQQDemo\.git\logs\refs\heads\master

     文件        198  2018-11-17 12:04  MyQQDemo\.git\logs\refs\remotes\origin\HEAD

     文件       3168  2018-11-25 10:48  MyQQDemo\.git\logs\refs\remotes\origin\master

     文件        150  2018-11-25 10:48  MyQQDemo\.git\ms-persist.xml

     文件        192  2018-11-18 17:03  MyQQDemo\.git\objects\00\e60a739f7b20351a3918c02dae247c4ac26f75

     文件       1363  2018-11-19 22:17  MyQQDemo\.git\objects\01\221d8c1fd76c737f49ccee8fa2e0351e981768

     文件         82  2018-11-20 20:12  MyQQDemo\.git\objects\01\d2e11771972de788bdb12c73b5879b5dbb4854

     文件         79  2018-11-17 12:04  MyQQDemo\.git\objects\02\5d0f0a8d26c3814671b2b4e6bd4af9d439b45e

     文件        580  2018-11-22 16:16  MyQQDemo\.git\objects\02\88304ff7a6e0c96ab2b6e8053780676f7823e2

     文件        389  2018-11-24 21:11  MyQQDemo\.git\objects\04\0eb7174a989d9c2377d2f774e687ad934d2b62

     文件        747  2018-11-22 21:55  MyQQDemo\.git\objects\04\3c2a78027ad17572d25632e25517890607c980

     文件       2297  2018-11-22 16:16  MyQQDemo\.git\objects\05\6c40e12c70f8e9ca37affacaeaafb55a25aec9

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

评论

共有 条评论