stringeventhandler.cs
来自「WJ Communications RFID example code」· CS 代码 · 共 32 行
CS
32 行
using System;
namespace WJ.Util
{
/// <summary>
/// For events that pass strings
/// </summary>
public delegate void StringEventHandler(object sender, StringEventArgs se);
/// <summary>
/// Arguments to Status Events (ie Events that require a string as an argument)
/// </summary>
public class StringEventArgs : EventArgs
{
/// <summary>
/// Construct a StatusEventArgs with the given string as its argument.
/// </summary>
/// <param name="status">The string argument.</param>
public StringEventArgs (string status)
{
this.message = status;
}
private string message;
/// <summary>
/// The Tag argument of the event.
/// </summary>
public string Message { get { return message; } }
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?