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

资源简介

完整项目,包括数据库,分析文档,数据库文档,答辩PPT,项目所有文件,等等

资源截图

代码片段和文件信息

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 深蓝聊天
{
    public partial class Faces : Form
    {
        string sql;//存放sql语句
        int n;//存放用户选择的头像编号
        public Faces()
        {
            InitializeComponent();
        }

        private void Faces_Load(object sender EventArgs e)
        {
            pictureBox1.BackgroundImage = imageList1.Images[UserHelper.UserFaceID - 1];
            AddFaces();
             
            
        }
        /// 
        /// 向ListView中添加头像
        /// 

        public void AddFaces()
        {
            ListViewItem items = new ListViewItem();

            
            for (int i = 1; i < imageList1.Images.Count; i++)
            {
                listView1.Items.Add(nulli); 
            }

            
        }

        private void button2_Click(object sender EventArgs e)
        {
            this.Hide();//隐藏该窗体
        }

        private void listView1_ItemSelectionchanged(object sender ListViewItemSelectionchangedEventArgs e)
        {
            if (e.IsSelected)
            {
                button1.Enabled = true;
                //MessageBox.Show(e.ItemIndex.ToString());
                n = e.ItemIndex;
            }
            else
            {
                button1.Enabled = false;
            }
        }

        private void button1_Click(object sender EventArgs e)
        {
            UserHelper.UserFaceID = n + 2;
            sql = string.Format(“update Users set FaceID={0}  where Q_ID={1}“ UserHelper.UserFaceID UserHelper.UserLogonID);
            SqlHelper.ExecuteSql(sql);
            pictureBox1.BackgroundImage = imageList1.Images[n + 1];
            this.Hide();

        }


    }
}

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

     文件        926  2009-12-28 12:50  QQ_Projects\QQ_Projects.sln

    ..A..H.     39936  2010-01-23 17:25  QQ_Projects\QQ_Projects.suo

     文件       7493  2010-01-23 16:33  QQ_Projects\凌——QQ_DB数据库.sql

     文件     486912  2010-01-23 15:59  QQ_Projects\概要设计说明书_凌栋.doc

     文件       4856  2007-06-19 11:02  QQ_Projects\深蓝聊天\bin\Debug\Faces\1.bmp

     文件       4856  2007-06-19 11:02  QQ_Projects\深蓝聊天\bin\Debug\Faces\10.bmp

     文件       4856  2007-06-19 11:02  QQ_Projects\深蓝聊天\bin\Debug\Faces\100.bmp

     文件       2680  2007-09-14 10:04  QQ_Projects\深蓝聊天\bin\Debug\Faces\101.bmp

     文件       4856  2007-06-19 11:02  QQ_Projects\深蓝聊天\bin\Debug\Faces\11.bmp

     文件       4856  2007-06-19 11:02  QQ_Projects\深蓝聊天\bin\Debug\Faces\12.bmp

     文件       4856  2007-06-19 11:02  QQ_Projects\深蓝聊天\bin\Debug\Faces\13.bmp

     文件       4856  2007-06-19 11:02  QQ_Projects\深蓝聊天\bin\Debug\Faces\14.bmp

     文件       4856  2007-06-19 11:02  QQ_Projects\深蓝聊天\bin\Debug\Faces\15.bmp

     文件       4856  2007-06-19 11:02  QQ_Projects\深蓝聊天\bin\Debug\Faces\16.bmp

     文件       4856  2007-06-19 11:02  QQ_Projects\深蓝聊天\bin\Debug\Faces\17.bmp

     文件       4856  2007-06-19 11:02  QQ_Projects\深蓝聊天\bin\Debug\Faces\18.bmp

     文件       4856  2007-06-19 11:02  QQ_Projects\深蓝聊天\bin\Debug\Faces\19.bmp

     文件       4856  2007-06-19 11:02  QQ_Projects\深蓝聊天\bin\Debug\Faces\2.bmp

     文件       4856  2007-06-19 11:02  QQ_Projects\深蓝聊天\bin\Debug\Faces\20.bmp

     文件       4856  2007-06-19 11:02  QQ_Projects\深蓝聊天\bin\Debug\Faces\21.bmp

     文件       4856  2007-06-19 11:02  QQ_Projects\深蓝聊天\bin\Debug\Faces\22.bmp

     文件       4856  2007-06-19 11:02  QQ_Projects\深蓝聊天\bin\Debug\Faces\23.bmp

     文件       4856  2007-06-19 11:02  QQ_Projects\深蓝聊天\bin\Debug\Faces\24.bmp

     文件       4856  2007-06-19 11:02  QQ_Projects\深蓝聊天\bin\Debug\Faces\25.bmp

     文件       4856  2007-06-19 11:02  QQ_Projects\深蓝聊天\bin\Debug\Faces\26.bmp

     文件       4856  2007-06-19 11:02  QQ_Projects\深蓝聊天\bin\Debug\Faces\27.bmp

     文件       4856  2007-06-19 11:02  QQ_Projects\深蓝聊天\bin\Debug\Faces\28.bmp

     文件       4856  2007-06-19 11:02  QQ_Projects\深蓝聊天\bin\Debug\Faces\29.bmp

     文件       4856  2007-06-19 11:02  QQ_Projects\深蓝聊天\bin\Debug\Faces\3.bmp

     文件       4856  2007-06-19 11:02  QQ_Projects\深蓝聊天\bin\Debug\Faces\30.bmp

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

评论

共有 条评论