This is a collection of helpers and data binding utillities for WinForms development. Please see the Wiki for latest info.
There's also a separate Nuget package AO.FileSystem that removes the WinForms dependency, and provides several file search methods:
WinForms.Library.FileSystem FileSystem_DotNetSearch.cs
- void EnumFiles (string path, string searchPattern, Func<FileInfo, EnumFileResult> fileFound)
- void EnumDirectories (string path, [ Func<DirectoryInfo, EnumFileResult> starting ], [ Func<DirectoryInfo, EnumFileResult> ending ])
- Task<IEnumerable<FileInfo>> FindFilesAsync (string path, string searchPattern, [ Func<FileInfo, bool> filter ])
- IEnumerable<string> FindFolders (string rootPath, string query, [ int minQueryLength ], [ int maxResults ], [ IProgress progress ], [ CancellationTokenSource cancellationTokenSource ])
- Task<IEnumerable<string>> FindFoldersAsync (string rootPath, string query, [ int minQueryLength ], [ int maxResults ], [ IProgress progress ], [ CancellationTokenSource cancellationTokenSource ])
WinForms.Library.PathUtil PathUtil.cs
- string GetCommonPath (IEnumerable fileNames, [ char separator ], [ bool samePathReturnsParent ])
- Dictionary<string, string> UniquifyFiles (IEnumerable fileNames)
- string GetParentFolder (string path)
- string ReplaceExtension (string fileName, string newExtension)
- string EnvironmentPath (SpecialFolder specialFolder, params string[] parts)