• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

ファイル整理用ツールのWinFormサンプル実装


Commit MetaInfo

Revisãod19c9a5c86ce0f1b3c3485a0be892a9b46bba277 (tree)
Hora2018-12-27 11:47:31
Autoryoshy <yoshy@user...>
Commiteryoshy

Mensagem de Log

リファクタ- 抽象クラスにAbstract接頭辞を付与

Mudança Sumário

Diff

--- a/FolderCategorizer/Presentation/View/MainForm.cs
+++ b/FolderCategorizer/Presentation/View/MainForm.cs
@@ -1643,14 +1643,14 @@ namespace FolderCategorizer.Presentation.View
16431643 ABORTED = 2,
16441644 }
16451645
1646- public FileSystemOperationRequest Request { get; private set; }
1646+ public AbstractFileSystemOperationRequest Request { get; private set; }
16471647
16481648 public ResultType Result { get; set; }
16491649 = ResultType.SUCCESS;
16501650
16511651 public string Message { get; set; } = string.Empty;
16521652
1653- public FileSystemOperationResult(FileSystemOperationRequest request)
1653+ public FileSystemOperationResult(AbstractFileSystemOperationRequest request)
16541654 {
16551655 Request = request;
16561656 }
@@ -1706,12 +1706,12 @@ namespace FolderCategorizer.Presentation.View
17061706 public List<string> TargetPathsForMsg1 { get; private set; } = new List<string>();
17071707 public List<string> TargetPathsForMsg2 { get; private set; } = new List<string>();
17081708
1709- public FileSystemCreateNewTargetListOperationResult(FileSystemOperationRequest request) : base(request)
1709+ public FileSystemCreateNewTargetListOperationResult(AbstractFileSystemOperationRequest request) : base(request)
17101710 {
17111711 }
17121712 }
17131713
1714- public abstract class FileSystemOperationRequest
1714+ public abstract class AbstractFileSystemOperationRequest
17151715 {
17161716 public MainForm Form { get; private set; }
17171717 public FileSystemOperationUIInfo UIInfo { get; private set; }
@@ -1720,7 +1720,7 @@ namespace FolderCategorizer.Presentation.View
17201720
17211721 public FileSystemOperationResult Result { get; set; }
17221722
1723- public FileSystemOperationRequest(MainForm form, FileSystemOperationUIInfo uiInfo)
1723+ public AbstractFileSystemOperationRequest(MainForm form, FileSystemOperationUIInfo uiInfo)
17241724 {
17251725 Form = form;
17261726 UIInfo = uiInfo;
@@ -1755,7 +1755,7 @@ namespace FolderCategorizer.Presentation.View
17551755 }
17561756 }
17571757
1758- public abstract class FileSystemTargetOperationRequest : FileSystemOperationRequest
1758+ public abstract class AbstractFileSystemTargetOperationRequest : AbstractFileSystemOperationRequest
17591759 {
17601760 public string TargetTopPath1 { get; private set; }
17611761
@@ -1763,7 +1763,7 @@ namespace FolderCategorizer.Presentation.View
17631763
17641764 public string RefreshPath { get; private set; }
17651765
1766- public FileSystemTargetOperationRequest(
1766+ public AbstractFileSystemTargetOperationRequest(
17671767 MainForm form, FileSystemOperationUIInfo uiInfo, string targetTopPath1, string targetTopPath2, string refreshPath)
17681768 : base(form, uiInfo)
17691769 {
@@ -1783,7 +1783,7 @@ namespace FolderCategorizer.Presentation.View
17831783 }
17841784 }
17851785
1786- public abstract class FileSystemSrcDstOperationRequest : FileSystemOperationRequest
1786+ public abstract class AbstractFileSystemSrcDstOperationRequest : AbstractFileSystemOperationRequest
17871787 {
17881788 public string DstFullPath1 { get; private set; }
17891789
@@ -1797,7 +1797,7 @@ namespace FolderCategorizer.Presentation.View
17971797
17981798 public string SrcRefreshPath { get; private set; }
17991799
1800- public FileSystemSrcDstOperationRequest(
1800+ public AbstractFileSystemSrcDstOperationRequest(
18011801 MainForm form, FileSystemOperationUIInfo uiInfo,
18021802 string dstFullPath1, string dstFullPath2, string srcTopPath1, string srcTopPath2,
18031803 string dstRefreshPath, string srcRefreshPath)
@@ -1826,11 +1826,11 @@ namespace FolderCategorizer.Presentation.View
18261826 }
18271827 }
18281828
1829- public abstract class FileSystemSingleTargetOperationRequest : FileSystemTargetOperationRequest
1829+ public abstract class AbstractFileSystemSingleTargetOperationRequest : AbstractFileSystemTargetOperationRequest
18301830 {
18311831 public FileListEntry TargetEntry { get; private set; }
18321832
1833- public FileSystemSingleTargetOperationRequest(
1833+ public AbstractFileSystemSingleTargetOperationRequest(
18341834 MainForm form, FileSystemOperationUIInfo uiInfo,
18351835 string targetTopPath1, string targetTopPath2, FileListEntry targetEntry, string refreshPath)
18361836 : base(form, uiInfo, targetTopPath1, targetTopPath2, refreshPath)
@@ -1839,11 +1839,11 @@ namespace FolderCategorizer.Presentation.View
18391839 }
18401840 }
18411841
1842- public abstract class FileSystemMultiTargetOperationRequest : FileSystemTargetOperationRequest
1842+ public abstract class AbstractFileSystemMultiTargetOperationRequest : AbstractFileSystemTargetOperationRequest
18431843 {
18441844 public List<FileListEntry> TargetEntries { get; private set; }
18451845
1846- public FileSystemMultiTargetOperationRequest(
1846+ public AbstractFileSystemMultiTargetOperationRequest(
18471847 MainForm form, FileSystemOperationUIInfo uiInfo,
18481848 string targetTopPath1, string targetTopPath2, List<FileListEntry> targetEntries, string refreshPath)
18491849 : base(form, uiInfo, targetTopPath1, targetTopPath2, refreshPath)
@@ -1852,11 +1852,11 @@ namespace FolderCategorizer.Presentation.View
18521852 }
18531853 }
18541854
1855- public abstract class FileSystemMultiSrcDstOperationRequest : FileSystemSrcDstOperationRequest
1855+ public abstract class AbstractFileSystemMultiSrcDstOperationRequest : AbstractFileSystemSrcDstOperationRequest
18561856 {
18571857 public List<FileListEntry> SrcEntries { get; private set; }
18581858
1859- public FileSystemMultiSrcDstOperationRequest(
1859+ public AbstractFileSystemMultiSrcDstOperationRequest(
18601860 MainForm form, FileSystemOperationUIInfo uiInfo,
18611861 string dstFullPath1, string dstFullPath2, string srcTopPath1, string srcTopPath2, List<FileListEntry> srcEntries,
18621862 string dstRefreshPath, string srcRefreshPath)
@@ -1866,7 +1866,7 @@ namespace FolderCategorizer.Presentation.View
18661866 }
18671867 }
18681868
1869- public class FileSystemDeleteOperationRequest : FileSystemMultiTargetOperationRequest
1869+ public class FileSystemDeleteOperationRequest : AbstractFileSystemMultiTargetOperationRequest
18701870 {
18711871 private const string OPERATION = "削除";
18721872
@@ -1878,7 +1878,7 @@ namespace FolderCategorizer.Presentation.View
18781878 }
18791879 }
18801880
1881- public class FileSystemRenameOperationRequest : FileSystemSingleTargetOperationRequest
1881+ public class FileSystemRenameOperationRequest : AbstractFileSystemSingleTargetOperationRequest
18821882 {
18831883 private const string TARGET_SUB_TYPE = "名";
18841884 private const string OPERATION = "変更";
@@ -1895,13 +1895,13 @@ namespace FolderCategorizer.Presentation.View
18951895 }
18961896 }
18971897
1898- public abstract class FileSystemOverwriteTimeOperationRequest : FileSystemMultiTargetOperationRequest
1898+ public abstract class AbstractFileSystemOverwriteTimeOperationRequest : AbstractFileSystemMultiTargetOperationRequest
18991899 {
19001900 protected const string OPERATION = "削除";
19011901
19021902 public FileSystemOperationType OpType { get; set; }
19031903
1904- public FileSystemOverwriteTimeOperationRequest(
1904+ public AbstractFileSystemOverwriteTimeOperationRequest(
19051905 MainForm form, FileSystemOperationUIInfo uiInfo,
19061906 string targetTopPath1, string targetTopPath2, List<FileListEntry> targetEntries,
19071907 FileSystemOperationType opType, string refreshPath)
@@ -1911,7 +1911,7 @@ namespace FolderCategorizer.Presentation.View
19111911 }
19121912 }
19131913
1914- public class FileSystemOverwriteCreationTimeOperationRequest : FileSystemOverwriteTimeOperationRequest
1914+ public class FileSystemOverwriteCreationTimeOperationRequest : AbstractFileSystemOverwriteTimeOperationRequest
19151915 {
19161916 private const string SUB_TYPE_NAME = "作成日時";
19171917
@@ -1925,7 +1925,7 @@ namespace FolderCategorizer.Presentation.View
19251925 }
19261926 }
19271927
1928- public class FileSystemOverwriteLastWriteTimeOperationRequest : FileSystemOverwriteTimeOperationRequest
1928+ public class FileSystemOverwriteLastWriteTimeOperationRequest : AbstractFileSystemOverwriteTimeOperationRequest
19291929 {
19301930 private const string SUB_TYPE_NAME = "更新日時";
19311931
@@ -1939,7 +1939,7 @@ namespace FolderCategorizer.Presentation.View
19391939 }
19401940 }
19411941
1942- public class FileSystemExchangeCreationAndLastWriteTimeOperationRequest : FileSystemMultiTargetOperationRequest
1942+ public class FileSystemExchangeCreationAndLastWriteTimeOperationRequest : AbstractFileSystemMultiTargetOperationRequest
19431943 {
19441944 private const string SUB_TYPE_NAME = "作成/更新日時";
19451945 private const string OPERATION = "交換";
@@ -1956,7 +1956,7 @@ namespace FolderCategorizer.Presentation.View
19561956 }
19571957 }
19581958
1959- public class FileSystemAutoFixFolderTimeOperationRequest : FileSystemMultiTargetOperationRequest
1959+ public class FileSystemAutoFixFolderTimeOperationRequest : AbstractFileSystemMultiTargetOperationRequest
19601960 {
19611961 private const string SUB_TYPE_NAME = "作成/更新日時";
19621962 private const string OPERATION = "自動修正";
@@ -1973,7 +1973,7 @@ namespace FolderCategorizer.Presentation.View
19731973 }
19741974 }
19751975
1976- public class FileSystemCreateNewFolderOperationRequest : FileSystemSingleTargetOperationRequest
1976+ public class FileSystemCreateNewFolderOperationRequest : AbstractFileSystemSingleTargetOperationRequest
19771977 {
19781978 private const string TARGET_TYPE = "フォルダ";
19791979 private const string OPERATION = "作成";
@@ -1995,13 +1995,13 @@ namespace FolderCategorizer.Presentation.View
19951995 }
19961996 }
19971997
1998- public abstract class FileSystemMoveOrCopyOperationRequest : FileSystemMultiSrcDstOperationRequest
1998+ public abstract class AbstractFileSystemMoveOrCopyOperationRequest : AbstractFileSystemMultiSrcDstOperationRequest
19991999 {
20002000 public FileListEntry NewFolderEntry { get; set; }
20012001
20022002 public FileSystemOperationType OpType { get; set; }
20032003
2004- public FileSystemMoveOrCopyOperationRequest(
2004+ public AbstractFileSystemMoveOrCopyOperationRequest(
20052005 MainForm form, FileSystemOperationUIInfo uiInfo,
20062006 string dstFullPath1, string dstFullPath2, string srcTopPath1, string srcTopPath2,
20072007 List<FileListEntry> srcEntries, FileListEntry newFolderEntry, FileSystemOperationType opType,
@@ -2015,7 +2015,7 @@ namespace FolderCategorizer.Presentation.View
20152015 }
20162016 }
20172017
2018- public class FileSystemMoveOperationRequest : FileSystemMoveOrCopyOperationRequest
2018+ public class FileSystemMoveOperationRequest : AbstractFileSystemMoveOrCopyOperationRequest
20192019 {
20202020 private const string OPERATION = "移動";
20212021
@@ -2039,7 +2039,7 @@ namespace FolderCategorizer.Presentation.View
20392039 }
20402040 }
20412041
2042- public class FileSystemCopyOperationRequest : FileSystemMoveOrCopyOperationRequest
2042+ public class FileSystemCopyOperationRequest : AbstractFileSystemMoveOrCopyOperationRequest
20432043 {
20442044 private const string OPERATION = "コピー";
20452045
@@ -2063,7 +2063,7 @@ namespace FolderCategorizer.Presentation.View
20632063 }
20642064 }
20652065
2066- private FileSystemOperationResult DoFileSystemOperation(FileSystemOperationRequest req)
2066+ private FileSystemOperationResult DoFileSystemOperation(AbstractFileSystemOperationRequest req)
20672067 {
20682068 FileSystemOperationResult res = req.Handle();
20692069
@@ -2147,7 +2147,7 @@ namespace FolderCategorizer.Presentation.View
21472147 return req.Result;
21482148 }
21492149
2150- private static FileSystemOperationResult MoveOrCopySelectedFiles(FileSystemMoveOrCopyOperationRequest req)
2150+ private static FileSystemOperationResult MoveOrCopySelectedFiles(AbstractFileSystemMoveOrCopyOperationRequest req)
21512151 {
21522152 string dstPath1 = req.DstFullPath1;
21532153 string dstPath2 = req.DstFullPath2;
@@ -2316,7 +2316,7 @@ namespace FolderCategorizer.Presentation.View
23162316 return req.Result;
23172317 }
23182318
2319- private static FileSystemOperationResult OverwriteTimeSelectedFiles(FileSystemOverwriteTimeOperationRequest req)
2319+ private static FileSystemOperationResult OverwriteTimeSelectedFiles(AbstractFileSystemOverwriteTimeOperationRequest req)
23202320 {
23212321 List<string> targetPaths = new List<string>();
23222322 List<string> targetPathsForMsg1 = new List<string>();
@@ -2652,7 +2652,7 @@ namespace FolderCategorizer.Presentation.View
26522652 return FileSystemRawOperationResult.SUCCESS;
26532653 }
26542654
2655- private static FileSystemRawOperationResult OverwriteTimeFile(string path, FileSystemOverwriteTimeOperationRequest req)
2655+ private static FileSystemRawOperationResult OverwriteTimeFile(string path, AbstractFileSystemOverwriteTimeOperationRequest req)
26562656 {
26572657 Retry:
26582658 try
@@ -3130,7 +3130,7 @@ namespace FolderCategorizer.Presentation.View
31303130
31313131 private static bool CreateModifyMultiTargetFileList(
31323132 List<string> outTargetPaths, List<string> outTargetPathsForMsg1, List<string> outTargetPathsForMsg2,
3133- FileSystemMultiTargetOperationRequest req)
3133+ AbstractFileSystemMultiTargetOperationRequest req)
31343134 {
31353135 return CreateModifyMultiTargetFileList(
31363136 outTargetPaths, outTargetPaths, outTargetPathsForMsg1, outTargetPathsForMsg2,
@@ -3141,7 +3141,7 @@ namespace FolderCategorizer.Presentation.View
31413141 private static bool CreateModifyMultiTargetFileList(
31423142 List<string> outTargetPaths1, List<string> outTargetPaths2,
31433143 List<string> outTargetPathsForMsg1, List<string> outTargetPathsForMsg2,
3144- FileSystemMultiSrcDstOperationRequest req)
3144+ AbstractFileSystemMultiSrcDstOperationRequest req)
31453145 {
31463146 return CreateModifyMultiTargetFileList(
31473147 outTargetPaths1, outTargetPaths2, outTargetPathsForMsg1, outTargetPathsForMsg2,
@@ -3191,7 +3191,7 @@ namespace FolderCategorizer.Presentation.View
31913191 private static CreateExistsSingleTargetResult CreateExistsSingleTargetFileList(
31923192 List<string> outTargetPaths1, List<string> outTargetPaths2,
31933193 List<string> outTargetPathsForMsg1, List<string> outTargetPathsForMsg2,
3194- FileSystemSingleTargetOperationRequest req, bool ignoreAllNotFoundErrorTarget2 = false)
3194+ AbstractFileSystemSingleTargetOperationRequest req, bool ignoreAllNotFoundErrorTarget2 = false)
31953195 {
31963196 return CreateExistsSingleTargetFileList(
31973197 outTargetPaths1, outTargetPaths2, outTargetPathsForMsg1, outTargetPathsForMsg2,
@@ -3363,7 +3363,7 @@ namespace FolderCategorizer.Presentation.View
33633363
33643364 private static bool CreateNewTargetFileList(List<string> outTargetPaths1, List<string> outTargetPaths2,
33653365 List<string> outTargetPathsForMsg1, List<string> outTargetPathsForMsg2,
3366- FileSystemSingleTargetOperationRequest req)
3366+ AbstractFileSystemSingleTargetOperationRequest req)
33673367 {
33683368 if (!string.IsNullOrEmpty(req.TargetTopPath1))
33693369 {