protected virtual void OnSysCommonMessageDispatched(SysCommonMessageEventArgs e) { EventHandler <SysCommonMessageEventArgs> handler = SysCommonMessageDispatched; if (handler != null) { handler(this, e); } }
protected virtual void OnSysCommonMessageReceived(SysCommonMessageEventArgs e) { EventHandler <SysCommonMessageEventArgs> handler = SysCommonMessageReceived; if (handler != null) { context.Post(delegate(object dummy) { handler(this, e); }, null); } }
public static ShortMessageEventArgs FromSysCommonMessage(SysCommonMessageEventArgs arg) { return(new ShortMessageEventArgs(arg.Message)); }
private void EventSource_SysCommonMessageReceived(object sender, SysCommonMessageEventArgs e) { FOutDevice.Send(e.Message); }