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

📄 ibuddyicon.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;
using System.IO;
using GPCore.Args;

namespace GPCore.Protocols
{
    /// <summary>
    /// An interface to extend IProtocol if it supports BuddyIcons/Avatars.
    /// </summary>
    public interface IBuddyIcon : IProtocol
    {
        /// <summary>
        /// Call this method to ask the IProtocol for a certain users BuddyIcon.
        /// </summary>
        /// <param name="Username">The username of the person whose icon you want.</param>
        void RequestBuddyIcon(string Username);
        /// <summary>
        /// Call this method to set your own BuddyIcon.
        /// </summary>
        /// <param name="filename">The path to the new BuddyIcon.</param>
        [GPArgumentMethod("Set Buddy Icon",typeof(User),"Filename",typeof(FileInfo))]
        void SetBuddyIcon(FileInfo filename);
        /// <summary>
        /// This event is thrown when the IProtocol recieves the Icon from the server.
        /// The name of this event is "onRecieveIcon" and its event args type is ImageEventArgs.
        /// </summary>
        //event NotifyCore onRecieveIcon;
    }
    public static  class BuddyIcon
    {
        public static Event<IBuddyIcon, BuddyIconEventArgs> RecieveIcon = new Event<IBuddyIcon, BuddyIconEventArgs>("RecieveIcon");
    }
}

⌨️ 快捷键说明

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