Пример #1
0
        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();
        }
Пример #2
0
 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();
     }
 }
Пример #3
0
        private void buttonIncluir_Click(object sender, EventArgs e)
        {
            TelaCadastroFuncoes form = new TelaCadastroFuncoes();

            form.ShowDialog();
        }