public BackgroundPlayer(string _path, JArray _files_list, GameBoardAmbiantPlayer.Form1 _front_end) { // Déclaration du thread Thread myThread; files_list = _files_list; path = _path; front_end = _front_end; // Instanciation du thread, on spécifie dans le // délégué ThreadStart le nom de la méthode qui // sera exécutée lorsque l'on appele la méthode // Start() de notre thread. myThread = new Thread(new ThreadStart(ThreadLoop)); // Lancement du thread // myThread.IsBackground = true; myThread.Start(); }
public ConnectionSocket(GameBoardAmbiantPlayer.Form1 _front_end) { front_end = _front_end; }