private void timerLookForConnection_Tick(object sender, EventArgs e) { if (ConnectionHandlerUSB.connection == null) { labelStatus.Text = "Connect mobile device and open app"; List <string> ids = ConnectionHandlerUSB.GetIDs(); foreach (string id in ids) { Console.WriteLine(id); ConnectionHandlerUSB.Connect(id); } if (ids.Count > 0) { Console.WriteLine("\n"); } } else { ConnectionHandlerUSB.CheckConnection(); } }