public UploadOrganizer() { uploadProgress = new frmProgress(); uploadProgress.Show(); uploadProgress.Hide(); uploader = new Uploader(); uploader.UploadStarted += uploader_UploadStarted; uploader.UploadFinished += uploader_UploadFinished; uploader.UploadProgress += uploader_UploadProgress; isRunning = true; pipeReaderThread = new Thread(new ThreadStart(PipeReaderThread)); pipeReaderThread.Start(); }