public void SetWorker(UploaderWorker w) { worker = w; thread = null; thread = new Thread(new ThreadStart(w.Run)); }