⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 chatusernameargs.cs

📁 Gibphone is CSharp Program, it can tell you how to design p2p chat.
💻 CS
字号:
using System;
using System.Collections.Generic;
using System.Text;

namespace GPCore.Args
{
    /// <summary>
    /// An EventArgs that is used for chatroom entered/leave events that contains the chatroomID
    /// and the username of the person who just left/joined.
    /// </summary>
    public class ChatUsernameArgs : UsernameEventArgs
    {
        private int chatid;
        /// <summary>
        /// The Unique ID of the chatroom where this happened.
        /// </summary>
        public int ChatID
        {
            get { return chatid; }
        }
        /// <summary>
        /// Creates a new ChatUsernameArgs
        /// </summary>
        /// <param name="chatID">The Unique of the chatroom.</param>
        /// <param name="username">The username of the account that changed.</param>
        public ChatUsernameArgs(int chatID, string username)
            : base(username)
        {
            this.chatid = chatID;
        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -