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

📄 eventcore.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
{
	/// <summary>
	/// The Delegate to use if you want to throw an Event to Core
	/// </summary>
	/// <param name="sender">The Object sending the event</param>
	/// <param name="name">The name of the Method used to capture the Event</param>
	/// <param name="e">A Wrapper for the arguements for this Event</param>
    /// <remarks>
    /// The name paramater follows the format of on[eventname] without Event at 
    /// the end.
    /// </remarks>
    /// <example>
    /// To Throw the onMessageReceivedEvent
    /// <code>
    /// void GotAMessage(string sender, string msg)
    /// {
    ///     if (onMessageReceivedEvent != null)
    ///     {
    ///         onMessageReceivedEvent(this,"onMessageReceived",new MessageArgs(sender,msg));
    ///     }
    /// }
    /// </code>
    /// </example>
	public delegate void NotifyCore(object sender, string name, EventArgs e);	
}

⌨️ 快捷键说明

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