• 大小: 561KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-05-10
  • 语言: 其他
  • 标签: 通信  协议  

资源简介

这是我最近开发的通信工具,具有客户机和服务器端。具有完整的用户登陆、注册、发送信息、增加好友、删除好友、添加组、删除组、查看好友信息。并且这个软件中具有自定义的开发协议,和一些安全机制。

资源截图

代码片段和文件信息

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 comm1.Properties;

namespace comm1
{
    public partial class AddOrDelGroup : Form
    {
        #region
        private string addGroupStr=null;
        private string delGroupStr = null;
        #endregion
        #region
        public string AddGroupStr
        {
            get
            {
                return addGroupStr;
            }
            set
            {
                addGroupStr =value;
            }
        }

        public string DelGroupStr
        {
            get
            {
                return delGroupStr;
            }
            set
            {
                delGroupStr = value;
            }
        }
        #endregion
        public AddOrDelGroup(string str)
        {
            InitializeComponent();
            if (str == “del“)
            {
                this.Text = “删除组“;
                label2.Text = “删除组“;
                button1.Text = “删除“;
            }
            else if (str == “add“)
            {
                this.Text = “添加组“;
                label2.Text = “添加组“;
                button1.Text = “添加“;
            }
                
        }
        //获取添加组的名称。
        private void button1_Click(object sender EventArgs e)
        {
            int flag = 0;//标志位
            if (this.Text == “添加组“)
                addGroupStr = textBox1.Text.Trim();
            else
            {
                delGroupStr = textBox1.Text.Trim();
                var groupSplit = Settings.Default.listViewGroup_r.Split(new char[] { ‘&‘ });
               
                for (int i = 0; i < groupSplit.Length; i++)
                {
                    if (groupSplit[i].Trim() == DelGroupStr.Trim())
                    {
                        flag = 1;
                        DelGroupStr =(3+ i)+“#“+DelGroupStr;//返回的将是这个组的索引。
                        Console.WriteLine(“delgroupstr:“ + DelGroupStr);
                        break;
                    }
                }
                if (flag == 0)
                    MessageBox.Show(“不存在这个组,不能删除“ “警告“);
            }
           this.Close();
        }
    }
}

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

     文件       2489  2009-08-27 10:27  comm1\comm1\comm1\AddOrDelGroup.cs

     文件       3653  2009-08-26 20:34  comm1\comm1\comm1\AddOrDelGroup.Designer.cs

     文件       5814  2009-08-24 12:29  comm1\comm1\comm1\AddOrDelGroup.resx

     文件       1013  2009-08-27 09:57  comm1\comm1\comm1\app.config

     文件       5632  2009-08-22 10:04  comm1\comm1\comm1\bin\Debug\AuthencationCode.dll

     文件      13824  2009-08-22 10:04  comm1\comm1\comm1\bin\Debug\AuthencationCode.pdb

     文件      53248  2009-08-27 21:45  comm1\comm1\comm1\bin\Debug\comm1.exe

     文件       1013  2009-08-27 09:57  comm1\comm1\comm1\bin\Debug\comm1.exe.config

     文件      85504  2009-08-27 21:45  comm1\comm1\comm1\bin\Debug\comm1.pdb

     文件      14328  2009-08-27 21:46  comm1\comm1\comm1\bin\Debug\comm1.vshost.exe

     文件       1013  2009-08-27 09:57  comm1\comm1\comm1\bin\Debug\comm1.vshost.exe.config

     文件        490  2007-07-21 01:33  comm1\comm1\comm1\bin\Debug\comm1.vshost.exe.manifest

     文件       2488  2009-08-27 23:43  comm1\comm1\comm1\Chat.cs

     文件       3736  2009-08-27 21:35  comm1\comm1\comm1\Chat.Designer.cs

     文件       5814  2009-08-27 21:35  comm1\comm1\comm1\Chat.resx

     文件       7150  2009-08-27 11:48  comm1\comm1\comm1\comm1.csproj

     文件       1311  2009-08-26 19:09  comm1\comm1\comm1\Detail.cs

     文件       9146  2009-08-26 18:50  comm1\comm1\comm1\Detail.Designer.cs

     文件       5814  2009-08-26 18:50  comm1\comm1\comm1\Detail.resx

     文件       5405  2009-08-27 23:43  comm1\comm1\comm1\Form1.cs

     文件       7531  2009-08-22 09:57  comm1\comm1\comm1\Form1.Designer.cs

     文件       7846  2009-08-22 09:57  comm1\comm1\comm1\Form1.resx

     文件      15989  2009-08-27 12:13  comm1\comm1\comm1\Main.cs

     文件       9580  2009-08-26 14:46  comm1\comm1\comm1\Main.Designer.cs

     文件       6019  2009-08-26 14:46  comm1\comm1\comm1\Main.resx

     文件        180  2009-08-27 12:11  comm1\comm1\comm1\obj\Debug\comm1.AddOrDelGroup.resources

     文件        180  2009-08-27 21:35  comm1\comm1\comm1\obj\Debug\comm1.Chat.resources

     文件       1749  2009-08-27 21:46  comm1\comm1\comm1\obj\Debug\comm1.csproj.FileListAbsolute.txt

     文件       1528  2009-08-27 21:35  comm1\comm1\comm1\obj\Debug\comm1.csproj.GenerateResource.Cache

     文件        180  2009-08-27 12:11  comm1\comm1\comm1\obj\Debug\comm1.Detail.resources

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

评论

共有 条评论