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

📄 buddyiconeventargs.cs

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

namespace GPCore.Args
{
    /// <summary>
    /// This is an event args class for when you recieve a buddy icon.
    /// </summary>
    public class BuddyIconEventArgs : EventArgs
    {
        private Image img;
        /// <summary>
        /// The Buddy Icon.
        /// </summary>
        public Image Icon
        {
            get { return img; }
        }
        private string bud;
        /// <summary>
        /// The Username of the buddy who owns this icon.
        /// </summary>
        public string Username
        {
            get { return bud; }
        }

        /// <summary>
        /// Creates a new ImageEventArgs.
        /// </summary>
        /// <param name="img">The image to send through this event.</param>
        /// <param name="username">The username associated with this BuddyIcon</param>
        public BuddyIconEventArgs(Image img, string username)
        {
            this.img = img;
            this.bud = username;
        }

    }
}

⌨️ 快捷键说明

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