• 大小: 14.87MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-07-09
  • 语言: 其他
  • 标签: qq  

资源简介

自己仿照2009写的一个QQ项目,请高人指点

资源截图

代码片段和文件信息

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 MyQQ
{
    public partial class Addfriend : Form
    {
        public Addfriend()
        {
            InitializeComponent();
            this.comboBox1.BackColor = Color.White;
            this.textBox1.BackColor = Color.White;
        }
        private static Addfriend addfrom;
        //五个参数 第一个自已号码;第二个要加号码,第三个是否直接添加,第四个头像,第五要加好友昵称
        public static void Show(string HoseIdstring Friendbool addImage facestring NickName)
        {
            if (open)
            {
                addfrom.WindowState = FormWindowState.Normal;
                addfrom.Activate();
            }
            else
            {
                addfrom = new Addfriend();
                addfrom.Show();
                open = true;
            }
            addfrom.datainit(face Friend NickName );
            addfrom.panel1.Visible = false;
            addfrom.panel2.Visible = false;
            addfrom.lblagree.Visible = false;
            addfrom.Height = 240;
            addfrom.panel1.Top = 108;
            if (canadd(HoseId Friend)&&HoseId !=Friend)//如果没有添加过且不是自已可以进入下步
            {
                addfrom .mybutton11 .Visible  = true;
                //好友策略为1或者直接添加的控制参数add==true 者可以直接添加
                if (Addfriend.friendship(Friend) == 1 || add)
                {
                    //直接添加
                    addfrom.label3.Visible = false;
                    addfrom.mybutton11.Tag = “确定“;
                    addfrom.mybutton11.Visible = true;
                    addfrom.fenzhu();
                    addfrom.mybutton11.Invalidate();
                    addfrom.panel1.Visible = true;
                    if(add)
                    {
                        addfrom.lblagree.Text = addfrom.label1.Text +“ 同意了你的添加好友请求!“;
                        addfrom.lblagree.Visible = true;
                    }
                    addfrom.sqlRemessage(addfrom.label1.Text);
                }
                else if (Addfriend.friendship(Friend) == 2)//好友策略为2的朋友要发送一条验证消息
                {
                    //发送验证消息
                    addfrom.label3.Visible = false;
                    addfrom.panel2.Top = 110;
                    addfrom.mybutton11.Tag = “发送“;
                    addfrom.mybutton11.Visible = true;
                    addfrom.mybutton11.Invalidate();
                    addfrom.panel2.Visible = true;
                }
                else//好友关系 为3的朋友,直接拒绝
                {
                    //拒绝添加为好友
                    addfrom.label3.Visible = true;
                    addfrom.mybutton11.Visible = false;
                    addfrom.Height = 180;
                    addfrom.label3.Text =NickName +“(“+Friend+“)\n\n拒绝添加您为好友!“;
                }
            }
            

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2011-04-07 16:45  MyQQ2009\
     目录           0  2011-04-07 16:45  MyQQ2009\MyQQ\
     文件     6291456  2011-04-14 19:08  MyQQ2009\MyQQ2009.mdf
     文件     3538944  2011-04-14 19:08  MyQQ2009\MyQQ2009_log.ldf
     目录           0  2011-04-07 16:45  MyQQ2009\MyQQ\Backup\
     目录           0  2011-04-07 16:45  MyQQ2009\MyQQ\Backup\MyQQ\
     文件         901  2009-02-22 01:04  MyQQ2009\MyQQ\Backup\MyQQ.sln
     文件      154624  2009-03-16 09:07  MyQQ2009\MyQQ\Backup\MyQQ.suo
     文件       16892  2009-03-11 20:43  MyQQ2009\MyQQ\Backup\MyQQ\Addfriend.cs
     文件       13776  2009-03-08 21:20  MyQQ2009\MyQQ\Backup\MyQQ\Addfriend.Designer.cs
     文件       24656  2009-03-08 21:20  MyQQ2009\MyQQ\Backup\MyQQ\Addfriend.resx
     文件        2835  2009-03-11 13:55  MyQQ2009\MyQQ\Backup\MyQQ\AddGroup.cs
     文件        5022  2009-03-05 22:45  MyQQ2009\MyQQ\Backup\MyQQ\AddGroup.Designer.cs
     文件       24656  2009-03-05 22:45  MyQQ2009\MyQQ\Backup\MyQQ\AddGroup.resx
     文件        7514  2009-03-12 02:19  MyQQ2009\MyQQ\Backup\MyQQ\AddmessageForm.cs
     文件        8429  2009-03-12 02:19  MyQQ2009\MyQQ\Backup\MyQQ\AddmessageForm.Designer.cs
     文件       24656  2009-03-12 02:19  MyQQ2009\MyQQ\Backup\MyQQ\AddmessageForm.resx
     目录           0  2011-04-07 16:45  MyQQ2009\MyQQ\Backup\MyQQ\bin\
     目录           0  2011-04-07 16:45  MyQQ2009\MyQQ\Backup\MyQQ\bin\Debug\
     目录           0  2011-04-07 16:45  MyQQ2009\MyQQ\Backup\MyQQ\bin\Debug\backimage\
     文件       18672  2009-02-22 00:17  MyQQ2009\MyQQ\Backup\MyQQ\bin\Debug\backimage\bg_1.gif
     文件         770  2009-02-21 02:15  MyQQ2009\MyQQ\Backup\MyQQ\bin\Debug\backimage\btnClose_0.gif
     文件        1483  2009-02-21 02:29  MyQQ2009\MyQQ\Backup\MyQQ\bin\Debug\backimage\btnClose_1.gif
     文件         687  2009-02-21 02:23  MyQQ2009\MyQQ\Backup\MyQQ\bin\Debug\backimage\btnMax_0.gif
     文件        1226  2009-02-21 02:32  MyQQ2009\MyQQ\Backup\MyQQ\bin\Debug\backimage\btnMax_1.gif
     文件         667  2009-02-21 02:27  MyQQ2009\MyQQ\Backup\MyQQ\bin\Debug\backimage\btnMin_0.gif
     文件        1247  2009-02-21 02:34  MyQQ2009\MyQQ\Backup\MyQQ\bin\Debug\backimage\btnMin_1.gif
     文件        1545  2009-02-28 18:25  MyQQ2009\MyQQ\Backup\MyQQ\bin\Debug\bottomcenter.gif
     文件        2739  2009-02-28 18:21  MyQQ2009\MyQQ\Backup\MyQQ\bin\Debug\bottomleft1.gif
     文件         918  2009-02-28 18:22  MyQQ2009\MyQQ\Backup\MyQQ\bin\Debug\bottomright.gif
     目录           0  2011-04-07 16:45  MyQQ2009\MyQQ\Backup\MyQQ\bin\Debug\face\
............此处省略1905个文件信息

评论

共有 条评论