diff --git a/TextLocator/App.xaml.cs b/TextLocator/App.xaml.cs index 229acfd4dec32aae9d5a16ec208fab7d17da80e4..345fbf2406974a636dfa8224ce957ac393114a3c 100644 --- a/TextLocator/App.xaml.cs +++ b/TextLocator/App.xaml.cs @@ -25,23 +25,21 @@ namespace TextLocator try { // Word服务 - FileInfoServiceFactory.Register(FileType.Word类型, new WordFileService()); + FileInfoServiceFactory.Register(FileType.Word文档, new WordFileService()); // Excel服务 - FileInfoServiceFactory.Register(FileType.Excel类型, new ExcelFileService()); + FileInfoServiceFactory.Register(FileType.Excel表格, new ExcelFileService()); // PowerPoint服务 - FileInfoServiceFactory.Register(FileType.PowerPoint类型, new PowerPointFileService()); + FileInfoServiceFactory.Register(FileType.PPT演示文稿, new PowerPointFileService()); // PDF服务 - FileInfoServiceFactory.Register(FileType.PDF类型, new PdfFileService()); + FileInfoServiceFactory.Register(FileType.PDF文档, new PdfFileService()); // HTML或XML服务 - FileInfoServiceFactory.Register(FileType.HTML和XML类型, new XmlFileService()); + FileInfoServiceFactory.Register(FileType.HTML和XML, new XmlFileService()); // 常用图片服务 FileInfoServiceFactory.Register(FileType.常用图片, new NoTextFileService()); // 程序员服务 FileInfoServiceFactory.Register(FileType.代码文件, new DevelopFileService()); // 纯文本服务 - FileInfoServiceFactory.Register(FileType.纯文本, new TxtFileService()); - // 其他类型服务 - FileInfoServiceFactory.Register(FileType.其他类型, new NoTextFileService()); + FileInfoServiceFactory.Register(FileType.文本文件, new TxtFileService()); } catch (Exception ex) { diff --git a/TextLocator/Enums/FileType.cs b/TextLocator/Enums/FileType.cs index 73ed1eb5ffcc62d3a05f04cd535a5f66c874e4b7..fa7bf2de87cd75fdd9cba7d53d711fc14c6d5de6 100644 --- a/TextLocator/Enums/FileType.cs +++ b/TextLocator/Enums/FileType.cs @@ -11,27 +11,27 @@ namespace TextLocator.Enums /// Word /// [Description("doc,docx")] - Word类型, + Word文档, /// /// Excel /// [Description("xls,xlsx")] - Excel类型, + Excel表格, /// /// PowerPoint /// [Description("ppt,pptx")] - PowerPoint类型, + PPT演示文稿, /// /// PDF /// [Description("pdf")] - PDF类型, + PDF文档, /// /// XML和html /// [Description("html,xml")] - HTML和XML类型, + HTML和XML, /// /// 常用图片 /// @@ -46,11 +46,6 @@ namespace TextLocator.Enums /// 纯文本 /// [Description("txt")] - 纯文本, - /// - /// 其他类型 - /// - [Description()] - 其他类型 + 文本文件 } } diff --git a/TextLocator/MainWindow.xaml b/TextLocator/MainWindow.xaml index 044f8bb704d05d8be8e7a47a0655c29844986ee7..54a11eb2c446413f698297fe5d8b0b39e1e3890b 100644 --- a/TextLocator/MainWindow.xaml +++ b/TextLocator/MainWindow.xaml @@ -71,15 +71,27 @@ - + - + + +