34 lines
578 B
C#
34 lines
578 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public class CallbackBsae
|
|
{
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
private event Action<String> execmsg;
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <param name="msg"></param>
|
|
public void invoke(string msg)
|
|
{
|
|
Action<String> ExecMsgT = execmsg;
|
|
if (ExecMsgT != null)
|
|
{
|
|
ExecMsgT(msg);
|
|
}
|
|
else
|
|
{
|
|
|
|
}
|
|
}
|
|
|
|
}
|