BetterExplorer.ArchiveProcressScreen.ArchiveProcressScreen_Shown C# (CSharp) Method

ArchiveProcressScreen_Shown() private method

private ArchiveProcressScreen_Shown ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void
        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();
        }