public Funcionario BuscarFuncionario(String cpf)
        {
            FactoryConnection conn = new FactoryConnection();
            Funcionario       func = new Funcionario();

            try
            {
                String query = "SELECT * FROM Funcionario WHERE cpf = '" + cpf + "'";

                SqlCommand comand = new SqlCommand(query, conn.AbrirConnexao());

                SqlDataReader reader = comand.ExecuteReader();

                while (reader.Read())
                {
                    func.Nome           = (String)reader["nome"];
                    func.Cpf            = (String)reader["cpf"];
                    func.DataNascimento = (String)reader["dataNascimento"];
                    func.Porcentagem    = (double)reader["porcentagem"];
                    func.Endereco       = (String)reader["endereco"];
                    func.Telefone       = (String)reader["telefone"];
                    func.Ativo          = (bool)reader["ativo"];
                }
                reader.Close();
            }
            catch (Exception e)
            {
                MessageBox.Show("Não foi possível conectar-se ao banco de dados!");
            }
            finally
            {
                conn.FecharConnecxao();
            }

            return(func);
        }