ARKBreedingStats.FileSync.updateProperties C# (CSharp) Метод

updateProperties() приватный Метод

private updateProperties ( ) : void
Результат void
        private void updateProperties()
        {
            if (currentFile != "" && Properties.Settings.Default.syncCollection)
            {
                // Update the path notify filter and filter of the watcher
                file_watcher.Path = Directory.GetParent(currentFile).ToString();
                file_watcher.NotifyFilter = NotifyFilters.LastWrite | NotifyFilters.Size;
                file_watcher.Filter = Path.GetFileName(currentFile);
                file_watcher.EnableRaisingEvents = true;
            }
            else
            {
                file_watcher.EnableRaisingEvents = false;
            }
        }