예제 #1
0
        protected virtual void OnSysCommonMessageDispatched(SysCommonMessageEventArgs e)
        {
            EventHandler <SysCommonMessageEventArgs> handler = SysCommonMessageDispatched;

            if (handler != null)
            {
                handler(this, e);
            }
        }
예제 #2
0
        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));
 }
예제 #4
0
 private void EventSource_SysCommonMessageReceived(object sender, SysCommonMessageEventArgs e)
 {
     FOutDevice.Send(e.Message);
 }