//! raising event
        private void RaiseRdEvent(RdEventType eventtype, System.String info)
        {
            RdEventArgs args = new RdEventArgs();

            args.eventtype = eventtype;
            args.info      = info;


            if (null != m_RootParent)
            {
                //! raising asynchronouse event
                try
                {
                    m_RootParent.BeginInvoke(RdEventHandler, args);
                }
                catch (Exception)
                {
                }
            }
            else
            {
                if (RdEventHandler != null)
                {
                    RdEventHandler(args);
                }
            }
        }
Ejemplo n.º 2
0
        //触发事件
        private void RaiseRdEvent(RdEventType eventtype, string info)
        {
            RdEventArgs args = new RdEventArgs();

            args.eventtype = eventtype;
            args.info      = info;
            if (RdEventHandler != null)
            {
                RdEventHandler(args);
            }
        }