private void btnExcludeFileExtensions_Click(object sender, EventArgs e) { FilePatternsForm fef = new FilePatternsForm(); fef.Text = "Select extensions to exclude"; fef.Prompt = "Select file extensions which will be\n" + "excluded from all backups."; fef.Extensions = ExcludeExtensions; fef.ShowDialog(); ExcludeExtensions = fef.Extensions; labelExcludedFileExtensions.Text = Utility.ListToEnglish(ExcludeExtensions, Utility.ListToEnglishStyle.SingleLine, 48); }
private void btnExcludedFolderPatterns_Click(object sender, EventArgs e) { FilePatternsForm fef = new FilePatternsForm(); fef.FilesMode = false; fef.Text = "Identify folder name patterns to exclude"; fef.Prompt = "Identify folder filenames or patterns\n" + "that should be excluded from all\n" + "backups."; fef.Patterns = ExcludeFolderPatterns; fef.Builtin = Globals.BuiltinExcludeFolderPatterns; fef.ShowDialog(); ExcludeFolderPatterns = fef.Patterns; labelExcludedFolderPatterns.Text = Utility.ListToEnglish(ExcludeFolderPatterns, Utility.ListToEnglishStyle.SingleLine, 48); }
private void btnCompressedFileExtensions_Click(object sender, EventArgs e) { FilePatternsForm fef = new FilePatternsForm(); fef.Text = "Identify already compressed files"; fef.Prompt = "Identify file extensions which represent\n" + "compressed files. These files will be\n" + "included in backup archives, but no\n" + "attempt to further compress them will\n" + "be made."; fef.Extensions = CompressedExtensions; fef.Builtin = Globals.BuiltinCompressedExtensions; fef.ShowDialog(); CompressedExtensions = fef.Extensions; labelCompressedFileExtensions.Text = Utility.ListToEnglish(CompressedExtensions, Utility.ListToEnglishStyle.SingleLine, 48); }