private static void OnChanged(object source, FileSystemEventArgs e) { try { AVEngine.EventsManager.CallFileChanged(); if (FileFormat.GetRTSF(e.FullPath) == "SCAN") { if (!files.Contains(e.FullPath) && !e.FullPath.Contains(AVEngine.TempDir)) { if (SettingsManager.OneTimeScan) { if (used == 999) { used = 0; } files.Add(e.FullPath); Scanner.ScanFile(e.FullPath); used++; } else { Scanner.ScanFile(e.FullPath); } if (SettingsManager.SmartBackup) { BackupIt(e); } } } } catch { } finally { } }