private void dataGridViewFuncoes_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            id = Convert.ToInt32(dataGridViewFuncoes["ID", e.RowIndex].Value);
            FuncaoController funcaoController = new FuncaoController();
            Funcao           funcao           = funcaoController.BuscaPorId(id);
            var form = new TelaCadastroFuncoes(funcao);

            form.ShowDialog();
            configuraDataGridView();
        }
 private void buttonAlterar_Click(object sender, EventArgs e)
 {
     if (verificaId())
     {
         FuncaoController funcaoController = new FuncaoController();
         Funcao           funcao           = funcaoController.BuscaPorId(id);
         var form = new TelaCadastroFuncoes(funcao);
         form.ShowDialog();
         configuraDataGridView();
     }
 }
        private void buttonIncluir_Click(object sender, EventArgs e)
        {
            TelaCadastroFuncoes form = new TelaCadastroFuncoes();

            form.ShowDialog();
        }