chatusernameargs.cs

来自「Gibphone is CSharp Program, it can tell 」· CS 代码 · 共 33 行

CS
33
字号
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 + =
减小字号Ctrl + -
显示快捷键?