Пример #1
0
 private void Add_infected_file_to_report(ScanBuilder scanBuilder, ScanReport scn_report)
 {
     foreach (KeyValuePair <string, string> record in scanBuilder.infected_files)
     {
         scn_report.Add_record(true, record.Key, record.Value);
     }
 }
Пример #2
0
        public void Start_scaning(Signature sgntr)
        {
            string virus_name            = "",
                   path_to_infected_file = "";
            ScanReport  scn_report       = new ScanReport();
            ScanBuilder scanBuilder      = new ScanBuilder(scn_report);

            scanBuilder.Object_builder(this.path_to_file, sgntr, ref virus_name, ref path_to_infected_file);
            Add_infected_file_to_report(scanBuilder, scn_report);
            scaning_time        = scn_report.Get_time_scaning_and_complite_scaning();
            count_infected_file = scanBuilder.infected_files.Count;
            count_scaning_file  = scn_report.total_checked_file;
        }
Пример #3
0
 public ScanBuilder(ScanReport scn_report)
 {
     this.scn_report = scn_report;
 }