buddyiconeventargs.cs

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

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