public static void ExcluirSetor(SetorView tela)
        {
            int codigo = Convert.ToInt32(tela.tbCodigo.Text);

            Setor obj = new Setor();

            obj.SetCodSetor(codigo);

            SetorDAO dao       = new SetorDAO();
            int      resultado = dao.ExcluiSetor(obj);

            if (resultado == 1)
            {
                MessageBox.Show("A exclusão foi realizada com sucesso.");
                PreencherTabela(tela);
            }
            else
            {
                MessageBox.Show("Houve um erro ao excluir o setor. Tente novamente.");
            }
        }