Codaxy.Dox.Viewer.Application.InstallBookWatcher C# (CSharp) Method

InstallBookWatcher() private method

private InstallBookWatcher ( ) : void
return void
        private void InstallBookWatcher()
        {
            bookFilesWatcher = new FileSystemWatcher(DextopUtil.MapPath("~/books"), "*.dox")
            {
                EnableRaisingEvents = true,
                IncludeSubdirectories = false
            };

            bookFilesWatcher.Created += OnDoxFileChanged;
            bookFilesWatcher.Changed += OnDoxFileChanged;
            bookFilesWatcher.Renamed += OnDoxFileChanged;
            bookFilesWatcher.Deleted += OnDoxFileChanged;
        }