Exemplo n.º 1
0
 public static TransKGL GetInstance()
 {
     if (instance == null)
     {
         instance = new TransKGL();
     }
     return(instance);
 }
Exemplo n.º 2
0
        public KGLtest()
        {
            //连接服务器,创建通讯类
            MsgSendReceiver msr = ServerConn.ConnServer();

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