public static TransKGL GetInstance() { if (instance == null) { instance = new TransKGL(); } return(instance); }
public KGLtest() { //连接服务器,创建通讯类 MsgSendReceiver msr = ServerConn.ConnServer(); if (msr == null) { Console.Out.WriteLine("连接服务器失败!"); } else { kgl = TransKGL.GetInstance(); } }