private void ArchiveProcressScreen_Shown(object sender, EventArgs e) { switch (_action) { case ArchiveAction.Compress: _commpressingFileName = "Compressing \"{0}\""; lbl_compressing_to.Text = String.Format("Compressing to \"{0}\"", _archivePath); _thread = new SafeThread(new ThreadStart(Compress)); _thread.ShouldReportThreadAbort = false; _thread.ThreadException += new ThreadThrewExceptionHandler(_thread_ThreadException); break; case ArchiveAction.Extract: _commpressingFileName = "Extracting \"{0}\""; lbl_compressing_to.Text = String.Format("Extracting to \"{0}\"", _archivePath); _thread = new SafeThread(new ThreadStart(Extract)); break; case ArchiveAction.RemoveFile: _commpressingFileName = "Compressing \"{0}\""; lbl_compressing_to.Text = String.Format("Compressing to \"{0}\"", _archivePath); _thread = new SafeThread(new ThreadStart(RemoveFile)); break; } _thread.Start(); }
private void _thread_ThreadException(SafeThread thrd, Exception ex) { }
private void ArchiveProcressScreen_Shown(object sender, EventArgs e) { switch (_action) { case ArchiveAction.Compress: _commpressingFileName = "Compressing \"{0}\""; lbl_compressing_to.Text = $"Compressing to \"{_archivePath}\""; _thread = new SafeThread(new ThreadStart(Compress)); _thread.ShouldReportThreadAbort = false; _thread.ThreadException += new ThreadThrewExceptionHandler(_thread_ThreadException); break; case ArchiveAction.Extract: _commpressingFileName = "Extracting \"{0}\""; lbl_compressing_to.Text = $"Extracting to \"{_archivePath}\""; _thread = new SafeThread(new ThreadStart(Extract)); break; case ArchiveAction.RemoveFile: _commpressingFileName = "Compressing \"{0}\""; lbl_compressing_to.Text = $"Compressing to \"{_archivePath}\""; _thread = new SafeThread(new ThreadStart(RemoveFile)); break; } _thread.Start(); }
void _thread_ThreadException(SafeThread thrd, Exception ex) { }