示例#1
0
        protected virtual void OnConnect(ConnectEventArgs e)
        {
            EventHandler <ConnectEventArgs> handler = Connect;

            if (handler != null)
            {
                handler(this, e);
            }
        }
示例#2
0
 protected virtual void OnConnect(ConnectEventArgs e)
 {
     EventHandler<ConnectEventArgs> handler = Connect;
     if(handler != null)
     {
         handler(this, e);
     }
 }