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

📄 newchatargs.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 for when a new chatroom is created.
    /// </summary>
    public class NewChatArgs : EventArgs
    {

        private int chatid;
        /// <summary>
        /// The uniqueID of the chat.
        /// </summary>
        public int ChatID
        {
            get { return chatid; }
        }
        private string name;
        /// <summary>
        /// The Name of the new chatroom.
        /// </summary>
        public string Name
        {
            get { return name; }
        }
        /// <summary>
        /// Creates a new NewChatArgs
        /// </summary>
        /// <param name="chatid">The unique ID of the chat.</param>
        /// <param name="name">The name of the chatroom.</param>
        public NewChatArgs(int chatid, string name)
        {
            this.chatid = chatid;
            this.name = name;
        }
    }
}

⌨️ 快捷键说明

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