public MostRecentUsedFoldersRepository(IUiExecution uiExecution) { _uiExecution = uiExecution; _mruFile = Path.Combine(AppEnvironment.DataFolder, "mru.json"); Load(); _fileSystemWatcher = new FileSystemWatcher { Path = AppEnvironment.DataFolder, Filter = "mru.json", NotifyFilter = NotifyFilters.LastWrite, IncludeSubdirectories = false }; _fileSystemWatcher.Changed += OnMruFileChanged; _fileSystemWatcher.EnableRaisingEvents = true; }