mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 19:57:07 +02:00
27 lines
724 B
C#
27 lines
724 B
C#
|
|
using System.Collections.ObjectModel;
|
|||
|
|
using System.IO;
|
|||
|
|
|
|||
|
|
namespace Wox.Infrastructure.Storage
|
|||
|
|
{
|
|||
|
|
// File System Watcher Wrapper class which implements the IFileSystemWatcherWrapper interface
|
|||
|
|
public class FileSystemWatcherWrapper : FileSystemWatcher, IFileSystemWatcherWrapper
|
|||
|
|
{
|
|||
|
|
public FileSystemWatcherWrapper() { }
|
|||
|
|
|
|||
|
|
Collection<string> IFileSystemWatcherWrapper.Filters
|
|||
|
|
{
|
|||
|
|
get => this.Filters;
|
|||
|
|
set
|
|||
|
|
{
|
|||
|
|
if(value != null)
|
|||
|
|
{
|
|||
|
|
foreach(string filter in value)
|
|||
|
|
{
|
|||
|
|
this.Filters.Add(filter);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|