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();
}