eventcore.cs

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

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