public static void openListener(Clients clients) { ThreadListener listener = new ThreadListener(clients); Thread thLis = new Thread(new ThreadStart(listener.runThreadListener)); thLis.Start(); }