private TransDKJ() { this.msgSendReceiver = ServerConn.ConnServer(); if (this.msgSendReceiver == null) { throw new Exception("MsgSendReceiver错误!"); } }
public DKJtest() { //连接服务器,创建通讯类 MsgSendReceiver msr = ServerConn.ConnServer(); if (msr == null) { Console.Out.WriteLine("连接服务器失败!"); } else { dkj = TransDKJ.GetInstance(); } }