Exemplo n.º 1
0
 /// <summary>
 /// Carrega os dados de um ficheiro binario
 /// </summary>
 public static bool Load(string fileAuditorias, string fileVulnerabilidades, string fileColaboradores, string fileEquipamentos)
 {
     try
     {
         Auditorias.Load(fileAuditorias);
         Colaboradores.Load(fileColaboradores);
         Vulnerabilidades.Load(fileVulnerabilidades);
         Equipamentos.Load(fileEquipamentos);
         return(true);
     }
     catch (FileLoadException e)
     {
         throw new FileLoadException("Erro: " + e.Message);
     }
     catch (IOException e)
     {
         throw new IOException("Erro: " + e.Message);
     }
     catch (Exception e)
     {
         throw new Exception("ERRO! " + e.Message);
     }
 }