private void btnNovaPergunta_Click(object sender, EventArgs e) { var objFrmPergunta = new FrmPergunta(); objFrmPergunta.ShowDialog(); CarregarGrids(); }
private void grdPerguntas_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e) { if (grdPerguntas.Rows[e.RowIndex].IsNewRow) { return; } var objFrmPergunta = new FrmPergunta(grdPerguntas.Rows[e.RowIndex].Cells[0].Value as Questao); objFrmPergunta.ShowDialog(); CarregarGrids(); }