/// ------------------------------------------------------------------------------------ public void ReadFilesFromBackupFile(string backupFile) { WaitCursor.Show(); Utils.SetWindowRedraw(LogBox, false); LogBox.Clear(); _prjFiles.Clear(); _dataSourceFiles.Clear(); _audioFiles.Clear(); using (var zip = new ZipFile(backupFile)) { foreach (var filename in zip.EntryFileNames) { if (filename.StartsWith("Data/", StringComparison.Ordinal)) { _dataSourceFiles.Add(filename.Replace("Data/", string.Empty)); } else if (filename.StartsWith("Audio/", StringComparison.Ordinal)) { _audioFiles.Add(filename.Replace("Audio/", string.Empty)); } else if (filename != kBackupInfoFileName) { _prjFiles.Add(filename); if (filename.ToLowerInvariant().EndsWith(".pap", StringComparison.Ordinal)) { CurrentProjectFileName = filename; } } } } WriteLogMessagesForFileType(LocalizationManager.GetString("DialogBoxes.RestoreDlg.ProjectFilesFoundInBackupMsg", "Project Files Found In Backup File..."), _prjFiles); WriteLogMessagesForFileType(Environment.NewLine + LocalizationManager.GetString("DialogBoxes.RestoreDlg.DataSourceFilesFoundInBackupMsg", "Data Source Files Found In Backup File..."), _dataSourceFiles); WriteLogMessagesForFileType(Environment.NewLine + LocalizationManager.GetString("DialogBoxes.RestoreDlg.AudioFilesFoundInBackupMsg", "Aduio Files Found In Backup File..."), _audioFiles); LogBox.ScrollToTop(); Utils.SetWindowRedraw(LogBox, true); WaitCursor.Hide(); }