//Constructor public Analyzer() { Virus_DB = new Virus[5]; //Initialize DB Virus_DB[0] = new Virus("Usama", new byte[] { 0x15, 0x30, 0x15, 0x49 }); Virus_DB[1] = new Virus("Amtrax", new byte[] { 0x72, 0x72, 0x15, 0x29 }); Virus_DB[2] = new Virus("éBola", new byte[] { 0x29, 0x32, 0x53, 0x29 }); Virus_DB[3] = new Virus("AH1N1", new byte[] { 0x72, 0x32, 0x32, 0x20 }); Virus_DB[4] = new Virus("Covid19", new byte[] { 0x30, 0x25, 0x20, 0x19 }); }
//Inicializa el Campo Virus con la secuencia de bytes obtenida del archivo cargado public void loadVirus(string file_path) { try { Possible_Virus = new Virus("Unknown", FileReader.readFile(file_path)); } catch (Exception) { throw new Exception("File Not Found"); } }