コード例 #1
0
 /// <summary>
 /// Regista um Colaborador
 /// </summary>
 /// <param name="c">Colaborador Completo </param>
 /// <returns> false se já existir esse colaborador
 /// true se for inserido o colaborador</returns>
 public static bool RegistaColaborador(Colaborador c)
 {
     try
     {
         return(Colaboradores.RegistaColaborador(c));
     }
     catch (IndexOutOfRangeException x)
     {
         throw new FormatException("ERRO: " + x.Message);
     }
     catch (Exception x)
     {
         throw new Exception("ERRO: " + x.Message);
     }
 }