public Main() { InitializeComponent(); engine = new AnalysisEngine(this); StartRealtimeProtection(); quarantine = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + "\\QuarantinePDFAnalyze\\"; if (!Directory.Exists(quarantine)) { Directory.CreateDirectory(quarantine); } try { string dir = quarantine; string[] files = Directory.GetFiles(dir, "*.blocked", SearchOption.AllDirectories); foreach (var f in files) { listBox1.Items.Add(f); } } catch (IOException e) { MessageBox.Show(e.Message); } reportMain = new ReportMain(); reportMain.Show(); reportMain.Visible = false; reportWindow = new Report(); reportWindow.Show(); reportWindow.Visible = false; }
public AnalysisEngine(Main main) { this.main = main; reportMain = new ReportMain(); reportMain.Show(); reportMain.Visible = false; reportWindow = new Report(); reportWindow.Show(); reportWindow.Visible = false; }