private void mnuNovo_Click(object sender, EventArgs e) { var frm = new FormCadastroMovimentacao(); if (frm.ShowDialog() != DialogResult.OK) { return; } CarregarGridView(); }
private void btnEditar_Click(object sender, EventArgs e) { if (gridView.SelectedRows.Count > 0) { var id = Convert.ToInt32(gridView.SelectedRows[0].Cells[0].Value); var obj = new MovimentacaoDAO().BuscarPorId(id); var frm = new FormCadastroMovimentacao(obj); if (frm.ShowDialog() != DialogResult.OK) { return; } CarregarGridView(); } }