AwbUpdater.Updater.UnzipAwb C# (CSharp) Method

UnzipAwb() private method

Checks the zip files exist and calls the functions to unzip them
private UnzipAwb ( ) : void
return void
        private void UnzipAwb()
        {
            string zip = Path.Combine(_tempDirectory, AWBZipName);
            bool awbUpdated = false;
            if (!string.IsNullOrEmpty(AWBZipName) && File.Exists(zip))
            {
                Extract(zip);
                DeleteAbsoluteIfExists(zip);
                awbUpdated = true;
            }
            else
            {
                UpdateUI("AutoWikiBrowser not updated...", true);
            }

            zip = Path.Combine(_tempDirectory, _updaterZipName);
            if (!string.IsNullOrEmpty(_updaterZipName) && File.Exists(zip))
            {
                Extract(zip);
                DeleteAbsoluteIfExists(zip);
            }
            else if (!awbUpdated)
            {
                UpdateUI("AWB not updated, and neither was the updater...", true);
            }

            progressUpdate.Value = 70;
        }