ファイル整理用ツールのPrism+WPFサンプル実装
Revision | 8069e12bcbe4f43e50a32c68f0e30edb42ba623e (tree) |
---|---|
Time | 2022-11-05 22:44:55 |
Author | yoshy <yoshy.org.bitbucket@gz.j...> |
Commiter | yoshy |
[CLEAN] 不要なusing文を削除、コメント修正
@@ -1,9 +1,7 @@ | ||
1 | 1 | using FolderCategorizer2.Domain.Model.Const; |
2 | 2 | using FolderCategorizer2.Domain.Service.Dto; |
3 | -using NLog; | |
4 | 3 | using System; |
5 | 4 | using System.Collections.Generic; |
6 | -using System.IO; | |
7 | 5 | |
8 | 6 | namespace FolderCategorizer2.Domain.Boundary.Repository |
9 | 7 | { |
@@ -13,17 +13,17 @@ namespace FolderCategorizer2.Domain | ||
13 | 13 | |
14 | 14 | public void RegisterTypes(IContainerRegistry containerRegistry) |
15 | 15 | { |
16 | - /// | |
17 | - /// Services | |
18 | - /// | |
16 | + // | |
17 | + // Services | |
18 | + // | |
19 | 19 | |
20 | 20 | containerRegistry.RegisterSingleton<IFolderTreeService, FolderTreeService>(); |
21 | 21 | containerRegistry.RegisterSingleton<IFileListService, FileListService>(); |
22 | 22 | containerRegistry.RegisterSingleton<IFileSystemService, FileSystemService>(); |
23 | 23 | |
24 | - /// | |
25 | - /// Translators | |
26 | - /// | |
24 | + // | |
25 | + // Translators | |
26 | + // | |
27 | 27 | |
28 | 28 | containerRegistry.RegisterSingleton<IFolderTreeNodeTranslator, FolderTreeNodeTranslator>(); |
29 | 29 | containerRegistry.RegisterSingleton<IFileListRowTranslator, FileListRowTranslator>(); |
@@ -19,25 +19,25 @@ namespace FolderCategorizer2.UseCase | ||
19 | 19 | |
20 | 20 | public void RegisterTypes(IContainerRegistry containerRegistry) |
21 | 21 | { |
22 | - /// | |
23 | - /// Folder Tree Model Interactors | |
24 | - /// | |
22 | + // | |
23 | + // Folder Tree Model Interactors | |
24 | + // | |
25 | 25 | |
26 | 26 | containerRegistry.Register<IFolderTreeReplaceTreeInteractor, FolderTreeReplaceTreeInteractor>(); |
27 | 27 | containerRegistry.Register<IFolderTreeRefreshTreeInteractor, FolderTreeRefreshTreeInteractor>(); |
28 | 28 | containerRegistry.Register<IFolderTreeSelectNodeInteractor, FolderTreeSelectNodeInteractor>(); |
29 | 29 | containerRegistry.Register<IFolderTreeExpandNodeInteractor, FolderTreeExpandNodeInteractor>(); |
30 | 30 | |
31 | - /// | |
32 | - /// File List Model Interactors | |
33 | - /// | |
31 | + // | |
32 | + // File List Model Interactors | |
33 | + // | |
34 | 34 | |
35 | 35 | containerRegistry.Register<IFileListReplaceListInteractor, FileListReplaceListInteractor>(); |
36 | 36 | containerRegistry.Register<IFileListSelectAllInteractor, FileListSelectAllInteractor>(); |
37 | 37 | |
38 | - /// | |
39 | - /// File System Operation Interactors | |
40 | - /// | |
38 | + // | |
39 | + // File System Operation Interactors | |
40 | + // | |
41 | 41 | |
42 | 42 | containerRegistry.Register<IFileSystemMoveOperationInteractor, FileSystemMoveOperationInteractor>(); |
43 | 43 | containerRegistry.Register<IFileSystemCopyOperationInteractor, FileSystemCopyOperationInteractor>(); |
@@ -53,9 +53,9 @@ namespace FolderCategorizer2.UseCase | ||
53 | 53 | containerRegistry.Register<IFileSystemExchangeCreationAndLastWriteTimeOperationInteractor, FileSystemExchangeCreationAndLastWriteTimeOperationInteractor>(); |
54 | 54 | containerRegistry.Register<IFileSystemAutoFixFolderTimestampOperationInteractor, FileSystemAutoFixFolderTimestampOperationInteractor>(); |
55 | 55 | |
56 | - /// | |
57 | - /// OS Shell Operation Interactors | |
58 | - /// | |
56 | + // | |
57 | + // OS Shell Operation Interactors | |
58 | + // | |
59 | 59 | |
60 | 60 | containerRegistry.Register<IOSShellOpenItemInteractor, OSShellOpenItemInteractor>(); |
61 | 61 | containerRegistry.Register<IOSShellOpenExplorerInteractor, OSShellOpenExplorerInteractor>(); |
@@ -87,9 +87,9 @@ namespace FolderCategorizer2.Adaptor | ||
87 | 87 | |
88 | 88 | containerRegistry.RegisterSingleton<ICategorizePromptViewProxy, CategorizePromptViewProxy>(); |
89 | 89 | |
90 | - /// | |
91 | - /// Translators | |
92 | - /// | |
90 | + // | |
91 | + // Translators | |
92 | + // | |
93 | 93 | |
94 | 94 | containerRegistry.RegisterSingleton<IFolderTreeIdTranslator, FolderTreeIdTranslator>(); |
95 | 95 | containerRegistry.RegisterSingleton<IFolderTreeNodeViewModelTranslator, FolderTreeNodeViewModelTranslator>(); |
@@ -5,7 +5,6 @@ using Prism.Services.Dialogs; | ||
5 | 5 | using Reactive.Bindings; |
6 | 6 | using Reactive.Bindings.Extensions; |
7 | 7 | using System; |
8 | -using System.Collections; | |
9 | 8 | using System.Collections.Generic; |
10 | 9 | using System.ComponentModel; |
11 | 10 | using System.Reactive.Disposables; |
@@ -36,29 +35,6 @@ namespace FolderCategorizer2.Adaptor.Gateway.ViewModel | ||
36 | 35 | public static readonly string DLG_PARAM_KEY_CREATED_AT_LIST = "CreatedAtList"; |
37 | 36 | public static readonly string DLG_PARAM_KEY_LAST_WRITE_AT_LIST = "WriteAtList"; |
38 | 37 | |
39 | - /* | |
40 | - { | |
41 | - CategorizePromptViewModel.DLG_PARAM_KEY_FOLDER_DATE_PART_LIST, | |
42 | - dates | |
43 | - }, | |
44 | - { | |
45 | - CategorizePromptViewModel.DLG_PARAM_KEY_FOLDER_TYPE_PART_LIST, | |
46 | - extensions | |
47 | - }, | |
48 | - { | |
49 | - CategorizePromptViewModel.DLG_PARAM_KEY_FOLDER_NAME_PART_LIST, | |
50 | - fileNames | |
51 | - }, | |
52 | - { | |
53 | - CategorizePromptViewModel.DLG_PARAM_KEY_CREATED_AT_LIST, | |
54 | - createdAtList | |
55 | - }, | |
56 | - { | |
57 | - CategorizePromptViewModel.DLG_PARAM_KEY_LAST_WRITE_AT_LIST, | |
58 | - lastWriteAtList | |
59 | - }, | |
60 | - */ | |
61 | - | |
62 | 38 | public event Action<IDialogResult> RequestClose; |
63 | 39 | |
64 | 40 | public string Title { get; private set; } |
@@ -1,6 +1,5 @@ | ||
1 | 1 | using CleanAuLait.Adaptor.Gateway.UI.Dialog; |
2 | 2 | using FolderCategorizer2.Adaptor.Boundary.ViewModel; |
3 | -using FolderCategorizer2.Adaptor.Gateway.ViewModel; | |
4 | 3 | using Prism.Services.Dialogs; |
5 | 4 | |
6 | 5 | namespace FolderCategorizer2.Adaptor.Gateway.ViewProxy |
@@ -1,10 +1,4 @@ | ||
1 | -using System; | |
2 | -using System.Collections.Generic; | |
3 | -using System.Linq; | |
4 | -using System.Text; | |
5 | -using System.Threading.Tasks; | |
6 | - | |
7 | -namespace FolderCategorizer2.Adaptor.Gateway.ViewProxy | |
1 | +namespace FolderCategorizer2.Adaptor.Gateway.ViewProxy | |
8 | 2 | { |
9 | 3 | internal static class ViewProxyConst |
10 | 4 | { |
@@ -21,30 +21,30 @@ namespace FolderCategorizer2.OuterEdge | ||
21 | 21 | |
22 | 22 | public void RegisterTypes(IContainerRegistry containerRegistry) |
23 | 23 | { |
24 | - /// | |
25 | - /// Navigation Views | |
26 | - /// | |
24 | + // | |
25 | + // Navigation Views | |
26 | + // | |
27 | 27 | |
28 | 28 | containerRegistry.RegisterForNavigation<FolderTreeView>(); |
29 | 29 | |
30 | - /// | |
31 | - /// Dialogs | |
32 | - /// | |
30 | + // | |
31 | + // Dialogs | |
32 | + // | |
33 | 33 | |
34 | 34 | containerRegistry.RegisterDialog<UserPromptView, IUserPromptViewModel>(); |
35 | 35 | containerRegistry.RegisterDialog<CategorizePromptView, ICategorizePromptViewModel>(); |
36 | 36 | |
37 | - /// | |
38 | - /// Repositories | |
39 | - /// | |
37 | + // | |
38 | + // Repositories | |
39 | + // | |
40 | 40 | |
41 | 41 | containerRegistry.RegisterSingleton<ILocalFileSystemRepository, LocalFileSystemRepository>(); |
42 | 42 | containerRegistry.RegisterSingleton<IShellRepository, ShellRepository>(); |
43 | 43 | containerRegistry.RegisterSingleton<IClipboardRepository, ClipboardRepository>(); |
44 | 44 | |
45 | - /// | |
46 | - /// Translator | |
47 | - /// | |
45 | + // | |
46 | + // Translator | |
47 | + // | |
48 | 48 | |
49 | 49 | containerRegistry.RegisterSingleton<IFileEntryTypeTranslator, FileEntryTypeTranslator>(); |
50 | 50 | containerRegistry.RegisterSingleton<IDirectoryEntryTranslator, DirectoryEntryTranslator>(); |
@@ -1,5 +1,4 @@ | ||
1 | -using CleanAuLait.Core.IO; | |
2 | -using FolderCategorizer2.Domain.Boundary.Repository; | |
1 | +using FolderCategorizer2.Domain.Boundary.Repository; | |
3 | 2 | using FolderCategorizer2.Domain.Model.Const; |
4 | 3 | using FolderCategorizer2.Domain.Service.Dto; |
5 | 4 | using FolderCategorizer2.OuterEdge.Translator; |
@@ -13,9 +13,9 @@ namespace FolderCategorizer2.Infra | ||
13 | 13 | |
14 | 14 | public void RegisterTypes(IContainerRegistry containerRegistry) |
15 | 15 | { |
16 | - /// | |
17 | - /// Resources | |
18 | - /// | |
16 | + // | |
17 | + // Resources | |
18 | + // | |
19 | 19 | |
20 | 20 | containerRegistry.RegisterSingleton<IAppCaptionFormatter, AppCaptionFormatter>(); |
21 | 21 |