private static IDiffFileModeItemViewModel CreateCompareFileModes( IList <IDiffFileModeItemViewModel> diffFileModes) { DiffFileModeItemViewModel defaultItem = null; diffFileModes.Add( new DiffFileModeItemViewModel("File Length", "Compare the byte length of each file", DiffDirFileMode.ByteLength)); diffFileModes.Add( new DiffFileModeItemViewModel("Last Change", "Compare last modification time of change of each file", DiffDirFileMode.LastUpdate)); defaultItem = new DiffFileModeItemViewModel("File Length + Last Change", "Compare the byte length and last modification time of each file", DiffDirFileMode.ByteLength_LastUpdate); diffFileModes.Add(defaultItem); diffFileModes.Add(new DiffFileModeItemViewModel("Last Change + File Length + All Bytes", "Compare each file by their length, last modification time, and byte-by-byte sequence", DiffDirFileMode.ByteLength_LastUpdate_AllBytes)); diffFileModes.Add(new DiffFileModeItemViewModel("Byte Length + All Bytes", "Compare each file by their length and byte-by-byte sequence", DiffDirFileMode.ByteLength_AllBytes)); diffFileModes.Add(new DiffFileModeItemViewModel("All Bytes", "Compare each file by their Byte-by-byte sequence only", DiffDirFileMode.ByteLength_AllBytes)); return(defaultItem); }
private static IDiffFileModeItemViewModel CreateCompareFileModes( IList <IDiffFileModeItemViewModel> diffFileModes) { DiffFileModeItemViewModel defaultItem = null; diffFileModes.Add( new DiffFileModeItemViewModel("File Length", "Compare the byte length of each file", DiffDirFileMode.ByteLength)); diffFileModes.Add( new DiffFileModeItemViewModel("Last Change", "Compare last modification time of change of each file", DiffDirFileMode.LastUpdate)); defaultItem = new DiffFileModeItemViewModel("File Length + Last Change", "Compare the byte length and last modification time of each file", DiffDirFileMode.ByteLength_LastUpdate); diffFileModes.Add(defaultItem); diffFileModes.Add(new DiffFileModeItemViewModel("Last Change + File Length + All Bytes", "Compare each file by their length, last modification time, and byte-by-byte sequence", DiffDirFileMode.ByteLength_LastUpdate_AllBytes)); //// This is technically a duplicate with AllBytes //// diffFileModes.Add(new DiffFileModeItemViewModel("Byte Length + All Bytes", //// "Compare each file by their length and byte-by-byte sequence", //// DiffDirFileMode.ByteLength_AllBytes)); diffFileModes.Add(new DiffFileModeItemViewModel("All Bytes", "Compare each file by their length and byte-by-byte sequence", DiffDirFileMode.AllBytes)); diffFileModes.Add(new DiffFileModeItemViewModel("All Bytes without LineFeeds (experimental)", "Compare each file by their byte-by-byte sequence but ignoring different LineFeeds in text files.", DiffDirFileMode.ByteLength_AllBytes_IgnoreLf)); diffFileModes.Add(new DiffFileModeItemViewModel("All Bytes without LineFeeds and White-Spaces (experimental)", "Compare each file by their byte-by-byte sequence but ignoring different LineFeeds and usage of space and tabs in text files.", DiffDirFileMode.ByteLength_AllBytes_IgnoreLf_WSP)); return(defaultItem); }