Advances the FileNavigator to the preceding or following file,
depending upon the specified
IComparer.
Namespace: CleanCode.IO
Assembly: CleanCode (in CleanCode.dll) Version: 1.2.3.0 (1.2.03)
Syntax
Parameters
- comparer
- Type:
System.Collections IComparer
The IComparer to use for ordering files.
Return Value
0 if successful, -1 if no directory selected, -2 if no files found, or -3 if the current file is not found (in which case the first file in the directory will be returned).Remarks

Examples
private void prevFileButton_Click(object sender, EventArgs e) { fileNavigator.Advance(new CleanCode.IO.DateComparerAscending()); } private void nextFileButton_Click(object sender, EventArgs e) { fileNavigator.Advance(new CleanCode.IO.DateComparerDescending()); }
See Also