private void OnConnectClick() { new Thread(() => { //init communication InfoServer server = InfoServer.Instance; server.Start(); CommandClient commandClient = CommandClient.Instance; commandClient.Start(); }).Start(); }