예제 #1
0
        private void dgvFomacoes_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            try
            {
                using (var bo = new FormacaoTaticaBO())
                {
                    var id = dgvFomacoes.Rows[e.RowIndex].Cells["Id"].Value.ToString().ToInt();

                    var formacao = bo.Get(id);

                    var form = new CadastroFormacoesForm(this, formacao);
                    form.Show();
                }
            }
            catch (Exception)
            {
                throw;
            }
        }
예제 #2
0
        private void adicionarToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var form = new CadastroFormacoesForm(this);

            form.Show();
        }