Exemple #1
0
 private TransDKJ()
 {
     this.msgSendReceiver = ServerConn.ConnServer();
     if (this.msgSendReceiver == null)
     {
         throw new Exception("MsgSendReceiver错误!");
     }
 }
Exemple #2
0
        public DKJtest()
        {
            //连接服务器,创建通讯类
            MsgSendReceiver msr = ServerConn.ConnServer();

            if (msr == null)
            {
                Console.Out.WriteLine("连接服务器失败!");
            }
            else
            {
                dkj = TransDKJ.GetInstance();
            }
        }