示例#1
0
        public async Task Connect()
        {
            await Task.Run(() => CClient.get_CClient_instance().on_connectedHandler += () =>
            {
                Connection = true;

                (CClient.serverlist[0] as CServer).LoginPage_Return_Callback += return_Result;
            });
        }
示例#2
0
 public static CClient get_CClient_instance()
 {
     //return client_instance == null ? client_instance = new CClient() : client_instance;
     return(client_instance ?? (client_instance = new CClient()));
 }