Ejemplo n.º 1
0
            private void eventSource_DoFormAcceptMsg(string tag, Dictionary <object, object> agrs)
            {
                ILibEventListener eventListener = _obj as ILibEventListener;

                if (eventListener != null)
                {
                    LibFormAcceptmsgEventArgs fargs = new LibFormAcceptmsgEventArgs();
                    fargs.ArgsDic     = agrs;
                    fargs.Tag         = tag;
                    fargs.EventSourse = _obj;
                    eventListener.DoEvents(LibEventType.FormCommunitation, fargs);
                }
                //eventListener.DoFormAcceptMsg(tag, agrs);
            }
Ejemplo n.º 2
0
            void eventSource_DoSqlException(Exception ex)
            {
                LibSqlExceptionEventSource eventlistener = _obj as LibSqlExceptionEventSource;

                if (eventlistener != null)
                {
                    ILibEventListener even = eventlistener.SubscribeObj as ILibEventListener;
                    if (even != null)
                    {
                        LibSqlExceptionEventArgs fargs = new LibSqlExceptionEventArgs();
                        fargs.Exception   = ex;
                        fargs.EventSourse = eventlistener;
                        even.DoEvents(LibEventType.SqlException, fargs);
                    }
                }
            }