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; }); }
public static CClient get_CClient_instance() { //return client_instance == null ? client_instance = new CClient() : client_instance; return(client_instance ?? (client_instance = new CClient())); }